Skip to content

Commit 0b6aaa8

Browse files
authored
Merge pull request x2on#117 from x2on/framework-bitcode-check
Add check for bitcode
2 parents ac9f3c2 + 1d27fe8 commit 0b6aaa8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

create-openssl-framework.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ cp -r include/$FWNAME/* $FWNAME.framework/Headers/
2626
DIR="$(cd "$(dirname "$0")" && pwd)"
2727
cp $DIR/"OpenSSL-for-iOS/OpenSSL-for-iOS-Info.plist" $FWNAME.framework/Info.plist
2828
echo "Created $FWNAME.framework"
29+
30+
check_bitcode=`otool -arch arm64 -l $FWNAME.framework/$FWNAME | grep __bitcode`
31+
if [ -z "$check_bitcode" ]
32+
then
33+
echo "INFO: $FWNAME.framework doesn't contains Bitcode"
34+
else
35+
echo "INFO: $FWNAME.framework contains Bitcode"
36+
fi

0 commit comments

Comments
 (0)