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.
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:
fonts:
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?
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)
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.
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