unknown argument: '-remove-runtime-asserts'

Number:rdar://39239995 Date Originated:06/04/2018
Status:Closed Resolved:
Product: Product Version:
Classification: Reproducible:

When using https://swift.org/builds/swift-4.0.3-release/xcode/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-osx.pkg with Xcode 9.3, build system is trying to use an option that is (apparently) not available.

Steps to Reproduce:

1. Install Xcode 9.3
1. Install https://swift.org/builds/swift-4.0.3-release/xcode/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-osx.pkg
1. clone https://github.com/krzyzanowskim/CryptoSwift
1. Build CryptoSwift project

Expected Results:

Actual Results:
<unknown>:0: error: unknown argument: '-remove-runtime-asserts'
Command /Library/Developer/Toolchains/swift-4.0.3-RELEASE.xctoolchain/usr/bin/swiftc failed with exit code 1


Xcode Version 9.3 (9E145)
oolchain: Swift 4.0.3 Release 2017-12-05 (a)


There are no plans to address this based on the following:

Please use Swift 4.1 toolchains and/or the one provided with Xcode.

We are now closing this report.

If you have questions about the resolution, or if this is still a critical issue for you, then please update your bug report with that information.

Please be sure to regularly check new Apple releases for any updates that might affect this issue.

By marcin.krzyzanowski at April 11, 2018, 4:07 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!