c - iOS library to BitCode -
i downloaded xcode 7 beta, , xcode complains of c libraries not being compiled bitcode. how go telling clang produce bitcode compatible ios? i've seen similar answers on stackoverflow, don't know if apply producing bitcode libraries ios.
edit:
i using correct setting, -fembed-bitcode, when try archive, error: ld: warning: ignoring file xxxx/xxxx, file built archive not architecture being linked (arm64). when use -fembed-bitcode-marker, can archive, error: full bitcode bundle not generated because xx/xx built bitcode marker. library must generated xcode archive build bitcode enabled.
any ideas on going wrong? library compiling successfully, doesn't let me archive. created simple add function , made library, , same symptoms, not library i'm compiling.
edit 2: must build both arm64 , armv7 versions using bitcode , lipo them together. using bitcode doesn't take away need fat library when archiving. source : https://forums.developer.apple.com/message/25132#25132
when building static libraries must following bitcode generation:
-fembed-bitcode
note: command available xcode7+
in regards accepted answer of using -fembed-bitcode-marker
you should aware normal build -fembed-bitcode-marker option produce minimal size embedded bitcode sections without real content. done way of testing bitcode-related aspects of build without slowing down build process. actual bitcode content included when archive build.
bwilson apple staff. https://forums.developer.apple.com/thread/3971#12225
to more specific:
-fembed-bitcode-marker
marks bitcode in binary after archive build.-fembed-bitcode
full bitcode generation , embedding, need use building static libraries.- xcode builds
-fembed-bitcode-marker
regular builds (like deploy simulator) - xcode builds
-fembed-bitcode
archive builds / production builds (as needed apple).
Comments
Post a Comment