Merge pull request #117 from x2on/framework-bitcode-check

Add check for bitcode
This commit is contained in:
Felix Schulze 2016-09-18 21:43:44 +02:00 committed by GitHub
commit 0b6aaa865a
1 changed files with 8 additions and 0 deletions

View File

@ -26,3 +26,11 @@ cp -r include/$FWNAME/* $FWNAME.framework/Headers/
DIR="$(cd "$(dirname "$0")" && pwd)" DIR="$(cd "$(dirname "$0")" && pwd)"
cp $DIR/"OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist" $FWNAME.framework/Info.plist cp $DIR/"OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist" $FWNAME.framework/Info.plist
echo "Created $FWNAME.framework" echo "Created $FWNAME.framework"
check_bitcode=`otool -arch arm64 -l $FWNAME.framework/$FWNAME | grep __bitcode`
if [ -z "$check_bitcode" ]
then
echo "INFO: $FWNAME.framework doesn't contains Bitcode"
else
echo "INFO: $FWNAME.framework contains Bitcode"
fi