Skip to content

Commit

Permalink
Fix pod build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkistner committed Sep 5, 2023
1 parent 5e5c105 commit 71c3d6d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
16 changes: 16 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,19 @@ rustflags = [
rustflags = [
"-C", "link-arg=-lgcc_eh",
]


[target.aarch64-apple-ios]
rustflags = [
"-C", "link-arg=-mios-version-min=14.0",
]

[target.aarch64-apple-ios-sim]
rustflags = [
"-C", "link-arg=-miphonesimulator-version-min=14.0",
]

[target.x86_64-apple-ios]
rustflags = [
"-C", "link-arg=-miphonesimulator-version-min=14.0",
]
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ inherits = "release"
lto = false

[workspace.package]
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["JourneyApps"]
keywords = ["sqlite", "powersync"]
Expand Down
4 changes: 3 additions & 1 deletion build-pod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ EOF
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"

cp -Rf "${BUILD_DIR}/powersync-sqlite-core.xcframework" "powersync-sqlite-core.xcframework"
tar -cJvf powersync-sqlite-core.xcframework.tar.xz powersync-sqlite-core.xcframework
tar -cJvf powersync-sqlite-core.xcframework.tar.xz powersync-sqlite-core.xcframework LICENSE README.md
rm -rf ${BUILD_DIR}
}

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

rm -r powersync-sqlite-core.xcframework

cargo build -p powersync_loadable --release --target aarch64-apple-ios -Zbuild-std
cargo build -p powersync_loadable --release --target aarch64-apple-ios-sim -Zbuild-std
cargo build -p powersync_loadable --release --target x86_64-apple-ios -Zbuild-std
Expand Down
10 changes: 6 additions & 4 deletions powersync-sqlite-core.podspec
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
Pod::Spec.new do |s|
s.name = 'powersync-sqlite-core'
s.version = '0.1.0'
s.version = '0.1.2'
s.summary = 'PowerSync SQLite Extension'
s.description = <<-DESC
PowerSync extension for SQLite.
DESC

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

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

s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.10'

s.ios.deployment_target = '14.0'
# osx not supported yet
# s.osx.deployment_target = '10.13'
end

0 comments on commit 71c3d6d

Please sign in to comment.