It is important to enable Bitcode in all libraries if the app is going to enable Bitcode. These scripts check each static library for Bitcode and echo a string which shows up as a warning in the build log. It is an easy way to always check that the dependencies have what is needed.
Place check_bitcode.sh
in your project directory. Then add a Run Script
in Build Phasese
with the script named RunScript.sh
. Name that new section as Check Bitcode
and run the build. It may be necessary to make the shell script executble using chmod u+x check_bitcode.sh
on the command-line.
It is preferable to use frameworks over static libraries. Since Xcode 8 and Swift was released use of frameworks have been encouraged by Apple. Frameworks support a lot of the new functionality supported by Xcode and iOS.
try to give answer to my STO question about creating framework from terminal.
https://stackoverflow.com/q/46808851/6285383