Hi,
Trying out the newly announced native mobile app shell, which could be a game changer for me. I was going to start development on another platform when I saw this. I figured I should try it out because if Backendless allows me to build both back- and frontend in the same place, it seems better. I really need to validate that this can and will work, though, because my target is a mobile app and a web app is not my objective.
However, I am having one or more issues (don’t know if they’re linked and if they are specific to Backendless or not).
I followed the steps at https://github.com/Backendless/native-mobile-app-shell , starting with seting up my IDE. I got the Flutter demo app to work fine on Android emulator and hardware, and on iOS simulator and hardware
Issue 1
when running flutter build ios
or flutter run
with an iPhone connected
Failed to build iOS app
Error output from Xcode build:
↳
objc[48382]: Class AMSupportURLConnectionDelegate is implemented in both
/usr/lib/libauthinstall.dylib (0x1f7c56b90) and
/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x107bb02c8). One of the two will be used. Which one is undefined.
objc[48382]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib
(0x1f7c56be0) and
/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x107bb0318). One of the two will be used. Which one is undefined.
** BUILD FAILED **
I understand that something comes as a duplicate. Any clue as to what ?
Issue 2
I get warnings about
/Dev/backendless/native-mobile-app-shell/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 15.2.99. (in target 'Starscream' from project 'Pods')
/Dev/backendless/native-mobile-app-shell/ios/Pods/Pods.xcodeproj: warning: The iOS
deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 15.2.99. (in target 'OrderedSet' from project 'Pods')
Even when I try to change the value from 8.0 to 9.0 in the files, it seems to come back next time. I suppose these files are rebuilt automatically and not persistent.
Issue 3
Could not build the precompiled application for the device.
Error (Xcode): No profiles for 'com.backendless.native-app-shell' were found: Xcode couldn't find
any iOS App Development provisioning profiles matching 'com.backendless.native-app-shell'. Automatic
signing is disabled and unable to generate a profile. To enable automatic signing, pass
-allowProvisioningUpdates to xcodebuild.
It appears that there was a problem signing your application prior to installation on the device.
Verify that the Bundle Identifier in your project is your signing id in Xcode
open ios/Runner.xcworkspace
Also try selecting 'Product > Build' to fix the problem:
Error launching application on iPhone.
For this one, I understand that building with the Backendless bundle identifier is probably not allowed since my Apple profile is not part of that team. Could you provide guidance as to whether it would be appropriate to change the references to that bundle to my own ? I have found them in the ios/Runner.xcodeproj file.
Issue 4
when running flutter run
with an Android connected
../../flutter/.pub-cache/hosted/pub.dartlang.org/platform-3.0.2/lib/src/interface/local_platform.dart:46:19: Error: Member not found: 'packageRoot'.
io.Platform.packageRoot; // ignore: deprecated_member_use
^^^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script '/Users/bibou/Dev/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1102
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/bibou/Dev/flutter/bin/flutter'' finished with non-zero exit value 1
I don’t have any clue about this one.
Note : I am running a MacBook with an Apple Silicon M1 ARM chip if that has anything to do with it.
Thanks for any help which could get me to build and run a simple app in order to prove that this new possibility is indeed an opportunity.