diff --git a/ci/scripts/swift_test.sh b/ci/scripts/swift_test.sh index b523e3891d93c..aba90f31e50d5 100755 --- a/ci/scripts/swift_test.sh +++ b/ci/scripts/swift_test.sh @@ -34,10 +34,14 @@ popd source_dir=${1}/swift/Arrow pushd ${source_dir} +sed 's/\/\/ build://g' Package.swift > Package.swift.build +mv Package.swift.build Package.swift swift test popd source_dir=${1}/swift/ArrowFlight pushd ${source_dir} +sed 's/\/\/ build://g' Package.swift > Package.swift.build +mv Package.swift.build Package.swift swift test popd diff --git a/swift/Arrow/Package.swift b/swift/Arrow/Package.swift index 6944d7b910656..85407ea1b96b8 100644 --- a/swift/Arrow/Package.swift +++ b/swift/Arrow/Package.swift @@ -46,8 +46,9 @@ let package = Package( name: "ArrowC", path: "Sources/ArrowC", swiftSettings: [ - .unsafeFlags(["-warnings-as-errors"]) + // build: .unsafeFlags(["-warnings-as-errors"]) ] + ), .target( name: "Arrow", @@ -56,14 +57,14 @@ let package = Package( .product(name: "Atomics", package: "swift-atomics") ], swiftSettings: [ - .unsafeFlags(["-warnings-as-errors"]) + // build: .unsafeFlags(["-warnings-as-errors"]) ] ), .testTarget( name: "ArrowTests", dependencies: ["Arrow", "ArrowC"], swiftSettings: [ - .unsafeFlags(["-warnings-as-errors"]) + // build: .unsafeFlags(["-warnings-as-errors"]) ] ) ] diff --git a/swift/ArrowFlight/Package.swift b/swift/ArrowFlight/Package.swift index f4d6485d1bb28..8366ccceb7a59 100644 --- a/swift/ArrowFlight/Package.swift +++ b/swift/ArrowFlight/Package.swift @@ -47,14 +47,14 @@ let package = Package( .product(name: "SwiftProtobuf", package: "swift-protobuf") ], swiftSettings: [ - .unsafeFlags(["-warnings-as-errors"]) + // build: .unsafeFlags(["-warnings-as-errors"]) ] ), .testTarget( name: "ArrowFlightTests", dependencies: ["ArrowFlight"], swiftSettings: [ - .unsafeFlags(["-warnings-as-errors"]) + // build: .unsafeFlags(["-warnings-as-errors"]) ] ) ]