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.
This is a neat little script. Thanks for sharing! One minor improvement that I made:
exit 1when the script is not found inRunScript.sh. Otherwise, the script will fail, but the build will still show as having succeeded.Final
RunScript.shlooks like: