Error on the iOS SImulator

The Xcode build was successful but after the login which is the first screen to show up. An error occurred (by referring to the console log) while loading the second screen.

Please see the screenshot.

Thanks in advance.

If you need the App ID its AE2DDCEC-B9FE-840C-FF14-F909F857AE00.

Hi @Ramon_Reyes

Make sure you didn’t miss the 6.2 step from the guide GitHub - Backendless/native-mobile-app-shell: Mobile native app shell is a native wrapper for a UI Builder application. It can be used to package a UI Builder app so it can run on a mobile device in a hybrid mode. The app can be published to the Apple and Google Play stores.

6.2. If you are using custom or reusable components, then you need to include them in the list of assets in the pubspec.yaml file.

Regards, Vlad

Thanks for your reply. I did not skip that. The pubspec.yaml has the reusable components in it already. See below:

name: native_app_shell_mobile
description: Native App Shell for UI Builder applications

publish_to: ‘none’ # Remove this line if you wish to publish to pub.dev

version: 1.0.0+1

environment:
sdk: “>=2.12.0 <3.0.0”

dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
permission_handler: ^8.1.6
flutter_inappwebview: ^5.4.3+7
url_launcher: ^6.0.10
backendless_sdk: ^7.2.6
overlay_support: ^2.0.1
audioplayers: ^0.20.1
geolocator: ^8.0.5
sign_in_with_apple: ^3.3.0
google_sign_in: ^5.4.1
flutter_facebook_auth: ^3.5.7

dev_dependencies:
flutter_test:
sdk: flutter

flutter:
uses-material-design: true
assets:

  • images/
  • assets/notification_sounds/push_sound.wav
  • assets/ui_builder_app/
  • assets/ui_builder_app/library/sdk/
  • assets/ui_builder_app/components/reusable/r_0096fca1af83b7d24ca864663a09fe4d/
  • assets/ui_builder_app/components/reusable/r_a62877fc6ae47079bf07826a196b8b1a/
  • assets/ui_builder_app/components/reusable/r_01bf4c2cc34a792c57a9f7c39a74c5d4/
  • assets/ui_builder_app/components/reusable/r_aeb431a6a4875b029068c5de8a5efe35/
  • assets/ui_builder_app/components/reusable/r_24c3eacfa455e483854321cc10bbb7c4/
  • assets/ui_builder_app/components/reusable/r_c93d94f6474c4707b39459063038f7eb/
  • assets/ui_builder_app/components/reusable/r_27b8bde7cbbd82789fcb18d51ecde458/
  • assets/ui_builder_app/components/reusable/r_cc1af0b4b9ad85d14bcc9502f79a0a2a/
  • assets/ui_builder_app/components/reusable/r_3d44a7ddf79a7de287b5a09caaf2613c/
  • assets/ui_builder_app/components/reusable/r_e3dcc187bb18247c25a8922150658d25/
  • assets/ui_builder_app/components/reusable/r_4975f57f30f4eb6ffccbcb2899aa44cc/
  • assets/ui_builder_app/components/reusable/r_e5b130b5ad1a84034e9f67d2bc4c402c/
  • assets/ui_builder_app/components/reusable/r_a35e65e56e889ae92aa5ff8d2c4ea04b/

fonts:

  • family: CustomAssets

The simulator was able to display the login screen without error but on the next screen that uses the reusable component e71928d6041ce34ef7a1f5b940186365/bundle.js runs into a script error.

but the e71928d6041ce34ef7a1f5b940186365 is not in the pubspec.yaml file.
have you tried to add it?

Thanks. I added the entries in the /logic folders. So it seems that it moved forward a bit but it ran into another error – TypeError: Local Network Error,

I have the Xcode screenshot here:

The error on the simulator reads like this:

Can not render page due to error: “Local Network Error”
@file:///Users/work/Library/Developer/CoreSimulator/Devices/DB13E656-A4A9-4BAD-9B01-56D991F36E0C/data/Containers/Bundle/Application/70D0BBAF-7998-46EF-9425-C8CCA8A3424D/Runner.app/Frameworks/App.framework/flutter_assets/assets/ui_builder_app/library/sdk/sdk.js:14:561124

Hi Guys— can someone help me on this errors?

our flatter engineer @Nikita_Fedorishchev will take a look as soon as possible

It has been 2 days and I’m still stuck here. Can someone help me out today?

Hi @Ramon_Reyes

Sorry for the long wait. Nikita will be here on Monday and will answer you

Regards,
Viktor

Hello, @Ramon_Reyes.

Can you open your project and run these commands:

flutter clean
flutter pub get
cd ios
pod install
cd ..
flutter doctor -v

If you are still getting the error please show me your result log after the last command.
Additionally share with me your pubspec.yaml(the one you posted above was incomplete).

Best Regards, Nikita.

Hi Nikita, and thanks for your e-mail. I did the flutter and pod commands. However I still got the same error on the iOS sim. I attached the log here.

log-11-17.txt (27.8 KB)

This is the pubspec

pubspec.yaml.zip (2.1 KB)

Okay, I checked. Files look like right.
I added myself to your app. Could you please clarify where I can get a valid archive with the application.

Best Regards, Nikita.

The archieve that is used by current Runner project is this:

web(1).zip (3.3 MB)

Can you for better accuracy of test publish your app to empty folder(for example create subfolder in web folder)? Then send me it.

If you want me to publish the container to a new folder, then this the zip (app.zip)

app.zip (968.3 KB)

Hello again, @Ramon_Reyes.

I was successfully able to run your project. You forgot to add a few lines of reusable components to the pubspec.yaml file.
There is a correct version of this file:
pubspec.yaml.zip (2.0 KB)

Sincerely, Nikita.

Hi Nikita,

Yes it is. Thanks so much for your help.

Regards,
Ramon Reyes