Getting bitcode error while archiving my framework for apple tv.
Following is the error coming up
bitcode bundle could not be generated because was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file for architecture arm64
Related
I have created a binary iOS framework (framework with source obfuscated), and after jumping through hoops to get it to run, it gives an error on archive
bitcode bundle could not be generated because framework was built without full bitcode
bitcode bundle could not be generated because framework was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file -framework path- for architecture arm64
I set validate workspace to YES, and set the framework to sign & embed
I tried setting enable bitcode to NO and YES,
I tried setting skip install to YES and NO
I tried setting enable bitcode to yes and no, and I tried what this comment suggested:
https://stackoverflow.com/a/60265097/15266127
And I still have the same error. It's actually driving me insane.
This feels like I'm working through some dystopian level bureaucracy. Help me out here I'm suffering.
I'm trying to build a dynamic framework (Module scheme) that needs to have bitcode enabled. I have set the Enable bitcode option from Build Settings section to YES for both the framework project and target.
In the Other C Flags section I have set the value -fembed-bitcode-marker for Debug and -fembed-bitcode for Release but the error still occurs when I try to archive the iOS project that uses my framework.
I've also tried to add a new user defined setting BITCODE_GENERATION_MODE having the following values:
marker for Debug
bitcode for Release
The following error still persists
bitcode bundle could not be generated because ... framework was built without full bitcode. All frameworks and dylibs for bitcode must be generated from XCode Archive or Install build file...
Any idea how to solve this ?
I am using Xcode 7.3.1.
My project runs perfectly on both iOS Simulator as well as my own iPhone. However, when archiving my project, I get the warnings and errors:
ld: warning: ignoring file /Users/parthsaxena/Desktop/Vantage/Vantage/Vantage/TextFieldEffects/TextFieldEffects.framework/TextFieldEffects, file was built for arm64 which is not the architecture being linked (armv7): /Users/parthsaxena/Desktop/Vantage/Vantage/Vantage/TextFieldEffects/TextFieldEffects.framework/TextFieldEffects
ld: bitcode bundle could not be generated because '/Users/parthsaxena/Desktop/Vantage/Vantage/Pods/FirebaseAppIndexing/Frameworks/FirebaseAppIndexing.framework/FirebaseAppIndexing(FIRAppIndexing.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
You may have noticed that I am using both the Firebase and TextFieldEffects frameworks in my project.
Is there any solution to this problem?
Your library was compiled without bitcode, but the bitcode option is enabled in your project settings. Say NO to Enable Bitcode in your target Build Settings and the Library Build Settings to remove the warnings.
For those wondering if enabling bitcode is required:
Note: For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.
https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html
Firebase doesn't support bitcode at the moment (the situation should change in a short time). You should set Build Settings -> Enable Bitcode to NO.
I was getting this error because i didn't have enough free space on my mac
We are using HERE iOS SDK Premium Edition with Swift in Xcode 7.3 but when we try to exportArchive with the command:
xcodebuild -exportArchive -exportOptionsPlist exportOptions.plist -archivePath build/App.xcarchive -exportPath build
The exportArchive fails and we run into the error:
ld: bitcode bundle could not be generated because '<path to workspace>/HEREMaps/NMAKit.framework/NMAKit(NMAApplicationContext.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Does Here maps support Swift with Xcode 7.3? Is there a project setting we need to set to get it to work?
We are able to run the app in simulator without issue.
Bitcode is a new feature introduces with Xcode 7.
Bitcode is an intermediate representation of a compiled program. Apps
you upload to iTunes Connect that contain bitcode will be compiled and
linked on the store. Including bitcode will allow Apple to re-optimize
your app binary in the future without the need to submit a new version
of your app to the store.
Reference AppThinning Documentation
From the error it seems that the HERE SDK is not bitcode enabled and in your project settings bitcode is enabled. For fixing the issue, there are two possible options:
Use bitcode enabled version of Here SDK (If the vendor provided a bitcode enabled version)
Disable the bitcode in your Build Settings
I installed the latest ScoutMaps-iOS-SDK pod and tried to archive to estimate the resulting application's size. Yet, clang was not quite happy:
ld: bitcode bundle could not be generated because '/Users/[redacted]/git/[redacted]/Pods/ScoutMaps-iOS-SDK/SKMaps.framework/SKMaps(SKRequestDataFactory.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7
Is there a bitcode version of the SDK or am I stuck not using bitcode?