forked from holzschu/python3_ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompilePython.sh
More file actions
executable file
·21 lines (16 loc) · 866 Bytes
/
compilePython.sh
File metadata and controls
executable file
·21 lines (16 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
xcodebuild -project Python3_ios/Python3_ios.xcodeproj -alltargets -sdk iphoneos -arch arm64 -configuration Release -quiet
xcodebuild -project Python3_ios/Python3_ios.xcodeproj -alltargets -arch x86_64 -sdk iphonesimulator -configuration Release -quiet
# xcframeworks creation
for framework in python3_ios pythonA pythonB pythonC pythonD pythonE
do
rm -rf $framework.xcframework
xcodebuild -create-xcframework -framework Python3_ios/build//Release-iphoneos/$framework.framework -framework Python3_ios/build//Release-iphonesimulator/$framework.framework -output $framework.xcframework
done
for framework in python3_ios pythonA pythonB pythonC pythonD pythonE
do
echo $framework
rm -f $framework.xcframework.zip
zip -rq $framework.xcframework.zip $framework.xcframework
swift package compute-checksum $framework.xcframework.zip
done