@@ -28,30 +28,24 @@ function createXcframework() {
2828 <key>MinimumOSVersion</key>
2929 <string>11.0</string>
3030 <key>CFBundleVersion</key>
31- <string>0.3.3 </string>
31+ <string>0.3.4 </string>
3232 <key>CFBundleShortVersionString</key>
33- <string>0.3.3 </string>
33+ <string>0.3.4 </string>
3434</dict>
3535</plist>
3636EOF
3737)
3838 echo " ===================== create ios device framework ====================="
39- mkdir -p " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Versions/A/Resources"
40- echo " ${plist} " > " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
41- cp -f " ./target/aarch64-apple-ios/release/libpowersync.dylib" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
42- install_name_tool -id " @rpath/powersync-sqlite-core.framework/powersync-sqlite-core" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
43- ln -s A " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Versions/Current" # Symbolic link A to the current version directory
44- ln -s Versions/Current/powersync-sqlite-core " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/powersync-sqlite-core" # Symbolic link the binary
45- ln -s Versions/Current/Resources " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Resources" # Symbolic link the resources
39+ mkdir -p " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework"
40+ echo " ${plist} " > " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/Info.plist"
41+ cp -f " ./target/aarch64-apple-ios/release/libpowersync.dylib" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/powersync-sqlite-core"
42+ install_name_tool -id " @rpath/powersync-sqlite-core.framework/powersync-sqlite-core" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core.framework/powersync-sqlite-core"
4643
4744 echo " ===================== create ios simulator framework ====================="
48- mkdir -p " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/Resources"
49- echo " ${plist} " > " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/Resources/Info.plist"
50- lipo ./target/aarch64-apple-ios-sim/release/libpowersync.dylib ./target/x86_64-apple-ios/release/libpowersync.dylib -create -output " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
51- install_name_tool -id " @rpath/powersync-sqlite-core.framework/powersync-sqlite-core" " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/A/powersync-sqlite-core"
52- ln -s A " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Versions/Current"
53- ln -s Versions/Current/powersync-sqlite-core " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/powersync-sqlite-core"
54- ln -s Versions/Current/Resources " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Resources"
45+ mkdir -p " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework"
46+ echo " ${plist} " > " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/Info.plist"
47+ lipo ./target/aarch64-apple-ios-sim/release/libpowersync.dylib ./target/x86_64-apple-ios/release/libpowersync.dylib -create -output " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core.framework/powersync-sqlite-core"
48+ 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"
5549
5650 echo " ===================== create macos framework ====================="
5751 mkdir -p " ${BUILD_DIR} /macos-arm64_x86_64/powersync-sqlite-core.framework/Versions/A/Resources"
0 commit comments