Skip to content

Commit

Permalink
Fix Swift build warnings (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-livefront authored Sep 13, 2023
1 parent c707fc9 commit a6f3cca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion languages/swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "BitwardenSdk",
dependencies: ["BitwardenFFI"]),
dependencies: ["BitwardenFFI"],
swiftSettings: [.unsafeFlags(["-suppress-warnings"])]),
.testTarget(
name: "BitwardenSdkTests",
dependencies: ["BitwardenSdk"]),
Expand Down
2 changes: 2 additions & 0 deletions languages/swift/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ mkdir tmp
mkdir -p tmp/target/universal-ios-sim/release

# Build native library
export IPHONEOS_DEPLOYMENT_TARGET="13.0"
export RUSTFLAGS="-C link-arg=-Wl,-application_extension"
cargo build --package bitwarden-uniffi --target aarch64-apple-ios-sim --release
cargo build --package bitwarden-uniffi --target aarch64-apple-ios --release
cargo build --package bitwarden-uniffi --target x86_64-apple-ios --release
Expand Down

0 comments on commit a6f3cca

Please sign in to comment.