Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitcode bundle could not be generated (while archiving) because Static Framework (.framework) was built without full bitcode

We are trying to enable Bitcode fully in our Static Framework but we are receiving the following error while archiving the app when the framework is integrated with it though we are able to build it on the simulator or device.

ld: bitcode bundle could not be generated because '.framework/p-iOS(PTFWOperationPrepareTransaction.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file '.framework/p-iOS' for architecture armv7

We have verified Bitcode state through otool -l Versions/A/p-iOS | grep __bitcode and seems like it is enabled correctly enter image description here.

Following are our project settings for bitcode on framework's end, enter image description here

And following are our project settings for bitcode on app's end, enter image description here

A humble request: Please review our settings in the above screenshots as we have already checked all the related queries on SO so please do not give them as a reference. enter image description here

Also, we have already tried Static Libraries, Frameworks, and Bitcode to get our things fixed.

Thanks in advance.

like image 223
ihammys Avatar asked Jul 03 '18 09:07

ihammys


1 Answers

I also had this problem with a framework I built. This is what worked for me:

  1. In Build Settings of the framework project set Other C Flags to -fembed-bitcode

  2. In the Build Settings of the framework target add a user defined flag called BITCODE_GENERATION_MODE with the value of bitcode

  3. Both in the framework project and target, Enable Bitcode should be set on Yes

like image 127
Mihai Fischer Avatar answered Nov 03 '22 04:11

Mihai Fischer