ENABLE_BITCODE issue. Xcode 7 archiving issue - ios

ld: '....../Crashlytics.framework/Crashlytics(CLSInternalReport.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocati
on)
do I need to update version of Fabric? or just enable this?

Follow Step :
-> select your project,
->select the Build Settings tab,
-> then Search Bitcode
-> then look for "Enable Bitcode" =Yes option and set it NO
Clean And Make Archive May Be it's Work For you.

select your project, select the "Build Settings" tab, then look for "Enable Bitcode" option and set it to "No"

Mike from Crashlytics and Fabric here.
Fabric and Crashlytics both support Bitcode enabled apps. You need to be on version 1.5.1 of Fabric and 3.3.1 of Crashlytics. You can also disable Bitcode as mentioned in other answers.
Release notes are here for reference.

Related

WebRTC' does not contain bitcode You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE)

My app works on the simulator when I run: npx react-native run-ios
However when I try to get the ipa file by 'Archive'-ing it via the .xcworkspace
I get the following error regarding WebRTC and bitcode.
How to fix this issue?
ld:
'/Users/bliss/Library/Developer/Xcode/DerivedData/DanceConnectyCube-czcpkmpwkpsbethjfvbfindeabwg/Build/Intermediates.noindex/ArchiveIntermediates/DanceConnectyCube/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/react-native-webrtc/WebRTC.framework/WebRTC'
does not contain bitcode. You must rebuild it with bitcode enabled
(Xcode setting ENABLE_BITCODE), obtain an updated library from the
vendor, or disable bitcode for this target. file
'/Users/bliss/Library/Developer/Xcode/DerivedData/DanceConnectyCube-czcpkmpwkpsbethjfvbfindeabwg/Build/Intermediates.noindex/ArchiveIntermediates/DanceConnectyCube/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/react-native-webrtc/WebRTC.framework/WebRTC'
for architecture arm64 clang: error: linker command failed with exit
code 1 (use -v to see invocation)
you need to remove bitcode in your ios project setting in xcode target->build settings-> enable bitcode or use a custom webrtc build that enable it at compile time (huge build).
I made one here
edit:
a build with bitcode and swiftmodule support
This Repo also have sh script that explain the procedure.
For those came here with the same error:
If you are trying to debug your app in your iPhone you have to select bitcode=no in order to work.

Xcode 8.3 nvalid bitcode signature

My project use P2PCamera SDK,but not use Cocoapod,then need depend more lib
error: Invalid bitcode signature
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can build and run success in Xcode8.2,but is error when i use Xcode8.3
I have this issue when I tried to test with iOS device.The debug configuration with Build Active Architecture Only is set to NO. After I set to YES, I can test with my iPhone.
This will resolve the issue surely.
Maybe the issue because of a third party SDK integrated into your project using Cocoapods.
do the following:
Clear derived data & restart Xcode.
Clean & Build.
Or if you don't mind disabling bitcode: Go to build settings search bitcode and change "Enable Bitcode" to "No".
The problem might be with lAVCtrl_armv7 third party library, you can confirm this by editing valid Architecture to arm64 and re-compile.
For me it helped to "update project to recommended settings" & clean:
https://stackoverflow.com/a/47336130/1884907

ParseUI ... does not contain bitcode

Once I seem to have got rid of all the syntax errors, while converting my project to Swift 3.0.
I now hit this one:
ld: '/Users/......./ParseUI.framework/ParseUI(PFLogInViewController.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE),
obtain an updated library from the vendor, or disable bitcode for this
target. for architecture arm64
clang: error: linker command failed with exit code 1
(use -v to see invocation)
After trying a few option change in Xcode which did not have any effect, I don't see any clear solution to solve this issue.
Anyone has a simple and clear answer to that?
In XCode, Select your project in Explorer > Select your Target> Make "Enable Bitcode" to No. And recompile your code.
If you enable bitcode in your target, then all the pods need to have enabled bitcode. But in your case Alamofire looks to be not bitcode enabled. So as long as it is so, you can't go ahead with "Enable Bitcode" option as Yes for your code.

SDK does not contain bitcode ios

In one of my project i am integrating paytab ios sdk while integration error occurs that is
a(PayTabCardReaderViewController.o)' does not contain bitcode.
I have try with enable bitcode=No
but after enable bitcode=no it show me more 40 erros,any one know can we disable bitcode for only 1 sdk/library only ?
Error: a(PayTabCardReaderViewController.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Solution You have to disable bitcode option in the "Build Settings" tab on the workspace / project level. Do not forget CocoaPods if you use it. Manual : how to ENABLE_BITCODE in xcode 7?
What's the "Bitcode"? 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.

Weibo iOS SDK Bitcode error when archiving with Xcode7.1

Environment
Xcode 7.1
OS X 10.11.1
Archiving iOS with minimum target requirement 8.0
Podfile
pod "WeiboSDK", :head
Error Message
ld: bitcode bundle could not be generated because
'/Users/XX/code/iOS/Pods/WeiboSDK/libWeiboSDK/libWeiboSDK.a(WBSDKNormalWebViewController.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)
It's OK when building, but will fail when archiving
download latest version of WeiboSDK. It supported bitcode
weibo_ios_sdk
1.If your app doesn't need bitcode (for Apple Watch).you should check you settings:
PROJECT/TARGETS -> Build Settings -> Enable Bitcode -> NO
2.If you need the Bitcode enable in your project,you should import the newest SDK from Weibo which has been build by Bitcode enabled.
The problem you have met is that if you want to enable your Bitcode in your project,the library in your project must be build by "Enable Bitcode".
About Bitcode,the official documentation here:
https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html#//apple_ref/doc/uid/TP40012582-CH35-SW2
The "Bitcode" is one of the adaption details of iOS 9.0 or above.You should pay attention to this.Here is a good repository on Github for iOS 9 adaption details collection:
https://github.com/ChenYilong/iOS9AdaptationTips

Resources