Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode project build successfully but when archiving: bitcode bundle could

Tags:

xcode

ios

unity3d

My XCode project was generated by Unity so I was able to build the project without errors.

But when I try to archive it for ad hoc, I get this:

ld: bitcode bundle could not be generated because '/Users/myuser/Desktop/device3/Libraries/Plugins/iOS/AdmobPlugin.a(UnityEncoder.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64

What is needed in this case?

like image 474
mirzahat Avatar asked Apr 07 '16 15:04

mirzahat


3 Answers

AdmobPlugin.a does not support bitcode try updating that library if its still showing this error you can disable bitcode from your Xcode project goto target setting -> Enable bitcode = NO.

like image 73
iOS77 Avatar answered Oct 07 '22 23:10

iOS77


Just got this error message. Went to Target -> Settings -> Enable Bitcode = NO Works perfectly, No issues.

like image 6
Vikrant Avatar answered Oct 08 '22 01:10

Vikrant


On Build Settings -> Other C flags, set Debug to -fembed-bitcode-marker, and Release to -fembed-bitcode. Make sure that is set for your project, and not the targets. More details check here.

like image 3
SaRaVaNaN DM Avatar answered Oct 07 '22 23:10

SaRaVaNaN DM