-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Description
This is a next step of an issue described here #47930 and all preparation steps is the same.
But now before building .xcframework
just add to my_flutter
module some plugin dependencies.
I added most popular shared_preferences plugin to pubspec.yaml
and added example code to main.dart
file.
Next
flutter build ios-framework --output=../host_ios/embed/ --xcframework --no-universal
produce
App.framework
Flutter.xcframework
FlutterPluginRegistrant.xcframework
shared_preferences.xcframework
Applying them to xcode pbxproj -> build -> error
ld: bitcode bundle could not be generated because '/Users/n/Library/Developer/Xcode/DerivedData/host_ios-bnbwehcmdjzqgydxspnsnfifvdyh/Build/Intermediates.noindex/ArchiveIntermediates/host_ios/BuildProductsPath/Release-iphoneos/shared_preferences.framework/shared_preferences' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/n/Library/Developer/Xcode/DerivedData/host_ios-bnbwehcmdjzqgydxspnsnfifvdyh/Build/Intermediates.noindex/ArchiveIntermediates/host_ios/BuildProductsPath/Release-iphoneos/shared_preferences.framework/shared_preferences' for architecture arm64
I checked this situation with another plugin - path_provider - result the same.
If I try to disable bitcode I get another error:
with this logs:
IDEDistribution.critical.log
IDEDistribution.standard.log
IDEDistribution.verbose.log