forked from GameAnalytics/GA-SDK-GODOT
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgenerate_xcframework.sh
More file actions
executable file
·18 lines (15 loc) · 1007 Bytes
/
generate_xcframework.sh
File metadata and controls
executable file
·18 lines (15 loc) · 1007 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
cd godot-cpp
scons ios_simulator=yes platform=ios disable_exceptions=false target=$1 $2
scons platform=ios disable_exceptions=false target=$1 $2
cd ..
scons ios_simulator=yes platform=ios disable_exceptions=false target=$1 $2
scons platform=ios disable_exceptions=false target=$1 $2
rm -rf ./lib/libgameanalytics.ios.$1.xcframework
rm -rf ./lib/libgodot-cpp.ios.$1.xcframework
xcodebuild -create-xcframework -library ./lib/libgameanalytics.ios.$1.a -library ./lib/libgameanalytics.ios.$1.simulator.a -output ./lib/libgameanalytics.ios.$1.xcframework
xcodebuild -create-xcframework -library ./godot-cpp/bin/libgodot-cpp.ios.$1.arm64.a -library ./godot-cpp/bin/libgodot-cpp.ios.$1.universal.simulator.a -output ./lib/libgodot-cpp.ios.$1.xcframework
rm -rf ./example/lib/ios/libgameanalytics.ios.$1.xcframework
rm -rf ./example/lib/ios/libgodot-cpp.ios.$1.xcframework
cp -r ./lib/libgameanalytics.ios.$1.xcframework ./example/lib/ios
cp -r ./lib/libgodot-cpp.ios.$1.xcframework ./example/lib/ios