@@ -80,23 +80,23 @@ function createXcframework() {
80
80
81
81
echo " ===================== create ios device framework ====================="
82
82
mkdir -p " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework"
83
- echo " ${ios_plist} " > " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Info.plist"
83
+ echo " ${ios_plist} " > " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Info.plist"
84
84
cp -f " ./target/aarch64-apple-ios/release_apple/libpowersync.dylib" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/powersync-sqlite-core"
85
85
install_name_tool -id " @rpath/powersync-sqlite-core.framework/powersync-sqlite-core" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/powersync-sqlite-core"
86
86
# Generate dSYM for iOS Device
87
87
dsymutil " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/powersync-sqlite-core" -o " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework.dSYM"
88
88
89
89
echo " ===================== create ios simulator framework ====================="
90
90
mkdir -p " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework"
91
- echo " ${ios_plist} " > " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Info.plist"
91
+ echo " ${ios_plist} " > " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Info.plist"
92
92
lipo ./target/aarch64-apple-ios-sim/release_apple/libpowersync.dylib ./target/x86_64-apple-ios/release_apple/libpowersync.dylib -create -output " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/powersync-sqlite-core"
93
93
install_name_tool -id " @rpath/powersync-sqlite-core.framework/powersync-sqlite-core" " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/powersync-sqlite-core"
94
94
# Generate dSYM for iOS Simulator
95
95
dsymutil " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/powersync-sqlite-core" -o " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework.dSYM"
96
96
97
97
echo " ===================== create macos framework ====================="
98
98
mkdir -p " ${BUILD_DIR} /macos-arm64_x86_64/powersync-sqlite-core.framework/Versions/A/Resources"
99
- echo " ${ios_plist} " > " ${BUILD_DIR} /macos-arm64_x86_64/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
99
+ echo " ${ios_plist} " > " ${BUILD_DIR} /macos-arm64_x86_64/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
100
100
lipo ./target/x86_64-apple-darwin/release_apple/libpowersync.dylib ./target/aarch64-apple-darwin/release_apple/libpowersync.dylib -create -output " ${BUILD_DIR} /macos-arm64_x86_64/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
101
101
install_name_tool -id " @rpath/powersync-sqlite-core.framework/powersync-sqlite-core" " ${BUILD_DIR} /macos-arm64_x86_64/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
102
102
ln -sf A " ${BUILD_DIR} /macos-arm64_x86_64/powersync-sqlite-core.framework/Versions/Current"
@@ -107,7 +107,7 @@ function createXcframework() {
107
107
108
108
echo " ===================== create watchos device framework ====================="
109
109
mkdir -p " ${BUILD_DIR} /watchos-arm64_arm64_32_armv7k/powersync-sqlite-core.framework/Versions/A/Resources"
110
- echo " ${watchos_plist} " > " ${BUILD_DIR} /watchos-arm64_arm64_32_armv7k/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
110
+ echo " ${watchos_plist} " > " ${BUILD_DIR} /watchos-arm64_arm64_32_armv7k/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
111
111
lipo ./target/aarch64-apple-watchos/release_apple/libpowersync.a ./target/arm64_32-apple-watchos/release_apple/libpowersync.a -create -output " ${BUILD_DIR} /watchos-arm64_arm64_32_armv7k/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
112
112
# install_name_tool isn't necessary, we use a statically-linked library
113
113
ln -sf A " ${BUILD_DIR} /watchos-arm64_arm64_32_armv7k/powersync-sqlite-core.framework/Versions/Current"
@@ -116,7 +116,7 @@ function createXcframework() {
116
116
117
117
echo " ===================== create watchos simulator framework ====================="
118
118
mkdir -p " ${BUILD_DIR} /watchos-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/Resources"
119
- echo " ${watchos_plist} " > " ${BUILD_DIR} /watchos-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
119
+ echo " ${watchos_plist} " > " ${BUILD_DIR} /watchos-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
120
120
lipo ./target/aarch64-apple-watchos-sim/release_apple/libpowersync.a ./target/x86_64-apple-watchos-sim/release_apple/libpowersync.a -create -output " ${BUILD_DIR} /watchos-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
121
121
# install_name_tool isn't necessary, we use a statically-linked library
122
122
ln -sf A " ${BUILD_DIR} /watchos-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/Current"
0 commit comments