Static Libraries, Frameworks, and Bitcode

I just have to change `Enable Bitcode` to YES on my Project Settings, awesome!

Ways to use libraries

Extra Bitcode settings

# Debug
xcodebuild … OTHER_CFLAGS=”-fembed-bitcode-marker” …
# Release
xcodebuild … OTHER_CFLAGS=”-fembed-bitcode” …
ld: bitcode bundle could not be generated because ‘{project dir}/path/to/SomeLib.a’ 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 about CocoaPods and Carthage/Frameworks?



Community Content Lead @Runscope, Founder of devbeers, former developer evangelist at SendGrid & Azuki, love burgers/coffee/hackathon!

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store