Skip to content

Add2App [Option A&B] with plugins failed to build because plugins was built without full bitcode #48092

@nailgilaziev

Description

@nailgilaziev

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:
headerr
with this logs:
IDEDistribution.critical.log
IDEDistribution.standard.log
IDEDistribution.verbose.log

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowplatform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions