practicalswift/swift-compiler-crashes — pull request #20 by fluidsonic (2014-09-30 12:36:44+00:00)
Title: Always specifying -sdk for xcrun.

Some tests using `import Foundation` erroneously pass because they cannot compile:

```
:0: error: cannot load underlying module for 'CoreGraphics'
:0: note: did you forget to set an SDK using -sdk or SDKROOT?
:0: note: use "xcrun -sdk macosx swift" to select the default OS X SDK installed with Xcode
```

Always specifying an SDK for `xcrun` ensures the availability of necessary libraries.