From a6f3cca703061c229e35aa4245b3d09a0429e6df Mon Sep 17 00:00:00 2001 From: Matt Czech Date: Wed, 13 Sep 2023 10:36:54 -0500 Subject: [PATCH] Fix Swift build warnings (#231) --- languages/swift/Package.swift | 3 ++- languages/swift/build.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/languages/swift/Package.swift b/languages/swift/Package.swift index 40f8f0afd..817bdce11 100644 --- a/languages/swift/Package.swift +++ b/languages/swift/Package.swift @@ -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"]), diff --git a/languages/swift/build.sh b/languages/swift/build.sh index 655a49ebf..aebe458e3 100755 --- a/languages/swift/build.sh +++ b/languages/swift/build.sh @@ -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