@@ -16,9 +16,9 @@ function createXcframework() {
16
16
<key>CFBundleDevelopmentRegion</key>
17
17
<string>en</string>
18
18
<key>CFBundleExecutable</key>
19
- <string>powersync</string>
19
+ <string>powersync-sqlite-core </string>
20
20
<key>CFBundleIdentifier</key>
21
- <string>co.powersync</string>
21
+ <string>co.powersync.sqlitecore </string>
22
22
<key>CFBundleInfoDictionaryVersion</key>
23
23
<string>6.0</string>
24
24
<key>CFBundlePackageType</key>
@@ -30,25 +30,23 @@ function createXcframework() {
30
30
EOF
31
31
)
32
32
printf " \n\n\t\t===================== create ios device framework =====================\n\n"
33
- mkdir -p " ${BUILD_DIR} /ios-arm64/powersync.framework"
34
- echo " ${plist} " > " ${BUILD_DIR} /ios-arm64/powersync.framework/Info.plist"
35
- cp -f " ./target/aarch64-apple-ios/release/libpowersync.dylib" " ${BUILD_DIR} /ios-arm64/powersync.framework/powersync"
36
- install_name_tool -id " @rpath/powersync.framework/powersync" " ${BUILD_DIR} /ios-arm64/powersync.framework/powersync"
33
+ mkdir -p " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core .framework"
34
+ echo " ${plist} " > " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core .framework/Info.plist"
35
+ cp -f " ./target/aarch64-apple-ios/release/libpowersync.dylib" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core .framework/powersync"
36
+ install_name_tool -id " @rpath/powersync-sqlite-core .framework/powersync" " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core .framework/powersync"
37
37
38
38
printf " \n\n\t\t===================== create ios simulator framework =====================\n\n"
39
- mkdir -p " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync.framework"
40
- echo " ${plist} " > " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync.framework/Info.plist"
41
- cp -p " ./target/powersync-universal-ios-sim.dylib" " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync.framework/powersync"
42
- install_name_tool -id " @rpath/powersync.framework/powersync" " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync.framework/powersync"
39
+ mkdir -p " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core .framework"
40
+ echo " ${plist} " > " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core .framework/Info.plist"
41
+ cp -p " ./target/powersync-universal-ios-sim.dylib" " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core .framework/powersync"
42
+ install_name_tool -id " @rpath/powersync-sqlite-core .framework/powersync" " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core .framework/powersync"
43
43
44
44
printf " \n\n\t\t===================== create ios xcframework =====================\n\n"
45
- rm -rf " ${BUILD_DIR} /powersync.xcframework"
46
- xcodebuild -create-xcframework -framework " ${BUILD_DIR} /ios-arm64/powersync.framework" -framework " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync.framework" -output " ${BUILD_DIR} /powersync.xcframework"
45
+ rm -rf " ${BUILD_DIR} /powersync-sqlite-core .xcframework"
46
+ xcodebuild -create-xcframework -framework " ${BUILD_DIR} /ios-arm64/powersync-sqlite-core .framework" -framework " ${BUILD_DIR} /ios-arm64_x86_64-simulator/powersync-sqlite-core .framework" -output " ${BUILD_DIR} /powersync-sqlite-core .xcframework"
47
47
48
- mkdir -p ${DIST_PACKAGE_DIR}
49
- cp -Rf " ${BUILD_DIR} /powersync.xcframework" " ${DIST_PACKAGE_DIR} /powersync.xcframework"
50
- cd ${DIST_PACKAGE_DIR}
51
- tar -czvf powersync-ios-dylib.xcframework.tar.gz powersync.xcframework
48
+ cp -Rf " ${BUILD_DIR} /powersync-sqlite-core.xcframework" " powersync-sqlite-core.xcframework"
49
+ tar -cJvf powersync-sqlite-core.xcframework.tar.gz powersync-sqlite-core.xcframework
52
50
rm -rf ${BUILD_DIR}
53
51
}
54
52
0 commit comments