Closed camilo-v closed 8 years ago
Waited until I updated to the latest Xcode and command line update to be sure, but not seeing any issue with the latest version. What sort of error does it return?
The error happens when you run a script using "command-R". In TextMate's command output window, the error displayed in red is:
<unknown>:0: error: unknown argument: '--sdk'
Interestingly, if you type the same set of arguments before starting Swift in Terminal.app, everything works fine (Swift starts with no problems):
xcrun --sdk macosx swift
I'm running the latest version of XCode, Version 6.3.1 (6D1002), from the Mac App Store; and the "Command Line Tools" in XCode's preferences is pointing to the same. Swift is reporting itself as:
Apple Swift version 1.2 (swiftlang-602.0.49.6 clang-602.0.49)
Target: x86_64-apple-darwin14.3.0
And I'm running OS X Yosemite, Version 10.10.3
Sorry for the delay here, pulled as b3cb4372f2e63175c72eaa6e94af2eb52bb6a9db.
A Swift "shebang" script would fail when using the run parameters "macosx" and "--sdk". Also removed the "xcrun" parameter as it is no longer needed. Modified the Run Command (command-R) to work with Swift version 1.2 and OS X Yosemite 10.10.3.