Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7 gives linker error for existing Parse supported project "does not contain bitcode"

I have just installed new Xcode 7 and the project which which I was developing already in Xcode 6.4 tried to run and found this error.

ld:'/Users/aliasadullah/Dropbox/DetectPhoneCall 2/DetectPhoneCall/parse.framework/parse(PFAnalytics.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)

like image 284
Asadullah Ali Avatar asked Dec 02 '22 14:12

Asadullah Ali


2 Answers

Just select your target Build Settings and change the Enable Bitcode option to No.

enter image description here

like image 94
Dheeraj Singh Avatar answered Dec 16 '22 01:12

Dheeraj Singh


I was going to post this as a comment, but I am surprised that people are just posting workarounds or explanation of what Bitcode is without addressing the question. Hence I am posting it as an answer.

Bitcode is something that the SDK provider needs to enable in the SDK itself. Until that happens, you will not be able to do a build with the Enable Bitcode flag in the Build Settings of Xcode set to Yes. Your best option is to check if the latest version of Parse SDK is updated to support Bitcode. You can either check the release notes, or brute force check by using the new SDK in your project and then try to compile it, or contact the library provider directly to check if Bitcode is enabled in a particular version. If all these result negative, then you will have to disable bitcode for the time-being. You can do this by: Build Settings > Enable Bitcode > No.

like image 20
rgamber Avatar answered Dec 16 '22 02:12

rgamber