Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 71c3d6d

Browse files
committedSep 5, 2023
Fix pod build issues.
1 parent 5e5c105 commit 71c3d6d

File tree

5 files changed

+30
-10
lines changed

5 files changed

+30
-10
lines changed
 

‎.cargo/config

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,19 @@ rustflags = [
1717
rustflags = [
1818
"-C", "link-arg=-lgcc_eh",
1919
]
20+
21+
22+
[target.aarch64-apple-ios]
23+
rustflags = [
24+
"-C", "link-arg=-mios-version-min=14.0",
25+
]
26+
27+
[target.aarch64-apple-ios-sim]
28+
rustflags = [
29+
"-C", "link-arg=-miphonesimulator-version-min=14.0",
30+
]
31+
32+
[target.x86_64-apple-ios]
33+
rustflags = [
34+
"-C", "link-arg=-miphonesimulator-version-min=14.0",
35+
]

‎Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inherits = "release"
2525
lto = false
2626

2727
[workspace.package]
28-
version = "0.1.1"
28+
version = "0.1.2"
2929
edition = "2021"
3030
authors = ["JourneyApps"]
3131
keywords = ["sqlite", "powersync"]

‎build-pod.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ EOF
4646
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"
4747

4848
cp -Rf "${BUILD_DIR}/powersync-sqlite-core.xcframework" "powersync-sqlite-core.xcframework"
49-
tar -cJvf powersync-sqlite-core.xcframework.tar.xz powersync-sqlite-core.xcframework
49+
tar -cJvf powersync-sqlite-core.xcframework.tar.xz powersync-sqlite-core.xcframework LICENSE README.md
5050
rm -rf ${BUILD_DIR}
5151
}
5252

5353
# Make all the non-simulator libs
5454
# Package into a universal ios lib
5555

56+
rm -r powersync-sqlite-core.xcframework
57+
5658
cargo build -p powersync_loadable --release --target aarch64-apple-ios -Zbuild-std
5759
cargo build -p powersync_loadable --release --target aarch64-apple-ios-sim -Zbuild-std
5860
cargo build -p powersync_loadable --release --target x86_64-apple-ios -Zbuild-std

‎powersync-sqlite-core.podspec

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
Pod::Spec.new do |s|
22
s.name = 'powersync-sqlite-core'
3-
s.version = '0.1.0'
3+
s.version = '0.1.2'
44
s.summary = 'PowerSync SQLite Extension'
55
s.description = <<-DESC
66
PowerSync extension for SQLite.
77
DESC
88

99
s.homepage = 'https://github.com/journeyapps/powersync-sqlite-core'
10-
s.license = { :type => 'Commercial', :file => 'LICENSE' }
10+
s.license = { :type => 'Commercial' }
1111
s.author = 'Journey Mobile, Inc'
1212

1313
s.source = { :http => "https://github.com/journeyapps/powersync-sqlite-core/releases/download/v#{s.version}/powersync-sqlite-core.xcframework.tar.xz" }
1414
s.vendored_frameworks = 'powersync-sqlite-core.xcframework'
1515

16-
s.ios.deployment_target = '11.0'
17-
s.osx.deployment_target = '10.10'
16+
17+
s.ios.deployment_target = '14.0'
18+
# osx not supported yet
19+
# s.osx.deployment_target = '10.13'
1820
end

0 commit comments

Comments
 (0)
Please sign in to comment.