From 0562fc6c61396dd75230f9db7fb307348104c81f Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Sun, 18 Sep 2016 20:07:59 +0200 Subject: [PATCH] Add check for bitcode --- create-openssl-framework.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/create-openssl-framework.sh b/create-openssl-framework.sh index 1f703db..5e65d65 100755 --- a/create-openssl-framework.sh +++ b/create-openssl-framework.sh @@ -26,3 +26,11 @@ cp -r include/$FWNAME/* $FWNAME.framework/Headers/ DIR="$(cd "$(dirname "$0")" && pwd)" cp $DIR/"OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist" $FWNAME.framework/Info.plist 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