Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AFNetworking was built without full bitcode

I am getting error "AFNetworking was built without full bitcode" when i enable bitcode in a project. There is a open issue also there.

If anyone have solve the issue please help me.

AFNetworking version : 3.2.1

Detailed error : "ld: bitcode bundle could not be generated because '/Users/Library/Developer/Xcode/DerivedData/ServiceSDK-hkwcndktudaxkjebecaqimswckgp/Build/Products/Release-iphoneos/AFNetworking/AFNetworking.framework/AFNetworking' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file '/Users/Library/Developer/Xcode/DerivedData/ServiceSDK-hkwcndktudaxkjebecaqimswckgp/Build/Products/Release-iphoneos/AFNetworking/AFNetworking.framework/AFNetworking' for architecture armv7"

like image 989
MadLeo Avatar asked May 03 '26 10:05

MadLeo


1 Answers

Ok, so i fixed the issue by adding following in podfile

    post_install do |installer|
         installer.pods_project.targets.each do |target|
             target.build_configurations.each do |config|
                 config.build_settings['BITCODE_GENERATION_MODE'] = 'bitcode'
                 config.build_settings['ENABLE_BITCODE'] = 'YES'
             end
         end
     end

May be it will help others.

Thanks

like image 181
MadLeo Avatar answered May 05 '26 00:05

MadLeo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!