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