Add check for bitcode

This commit is contained in:
Felix Schulze 2016-09-18 20:07:59 +02:00
parent 48e6942d79
commit 0562fc6c61
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