xcode-tools

How can I remove or ignore arguments from the swift compiler

可紊 提交于 2019-12-25 00:05:42
问题 Im trying to use an older xcode toolchain (3.1) with my latest xcode version (10). Starting with a blank project and trying to build I get the following error. <unknown>:0: error: unknown argument: '-enable-batch-mode' <unknown>:0: error: unknown argument: '-enforce-exclusivity=checked' <unknown>:0: error: unknown argument: '-index-store-path' Command CompileSwiftSources failed with a nonzero exit code When I look at the compiler output I can clearly see these parameters being passed (cropped

Run Swift 3 from command line using Xcode 8 Beta

旧巷老猫 提交于 2019-12-07 05:15:33
问题 Can I run Swift 3 from the command line after installing the Xcode 8 beta? I see that /usr/bin/swift is still the May 5th Swift 2.2. I was hoping to see something like /usr/bin/swift3 but no such luck. swift.org downloads says that "Swift 3.0 Preview 1 is available as part of Xcode 8.0 beta." But I haven't found instructions on running a command line Swift 3 using the Xcode 8 beta. Ideally, I would like to use the interactive REPL ... as well as do command-line compilation of Swift Package

Run Swift 3 from command line using Xcode 8 Beta

↘锁芯ラ 提交于 2019-12-05 10:03:35
Can I run Swift 3 from the command line after installing the Xcode 8 beta? I see that /usr/bin/swift is still the May 5th Swift 2.2. I was hoping to see something like /usr/bin/swift3 but no such luck. swift.org downloads says that "Swift 3.0 Preview 1 is available as part of Xcode 8.0 beta." But I haven't found instructions on running a command line Swift 3 using the Xcode 8 beta. Ideally, I would like to use the interactive REPL ... as well as do command-line compilation of Swift Package Manager code. sudo xcode-select -s /Applications/Xcode-beta.app swift Run Xcode-Beta and change Command