How do I xcodebuild a static library with Bitcode enabled?

后端 未结 4 619
野性不改
野性不改 2020-11-30 17:13

Xcode 7 introduces Bitcode, which is some sort of LLVM intermediate binary that means Apple\'s servers can recompile my app for different architectures without my involvemen

4条回答
  •  情歌与酒
    2020-11-30 17:42

    Select project On Build Settings -> Other C flags, set Debug to -fembed-bitcode-marker and Release to -fembed-bitcode

    On Build Settings, click on the + sign at the top to add a user-defined build setting with the name BITCODE_GENERATION_MODE, and set Debug to marker, Release to bitcode

    Edit schema as Release Then click the desired library. A file and get the build path. Get the library form Release folder.

提交回复
热议问题