-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfgood first issueGood for newcomersGood for newcomerslegacy driverArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver projectArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Description
| Previous ID | SR-9216 |
| Radar | rdar://problem/21819253 |
| Original Reporter | @belkadan |
| Type | Bug |
Additional Detail from JIRA
| Votes | 1 |
| Component/s | Compiler |
| Labels | Bug, Driver, StarterBug |
| Assignee | Jon (JIRA) |
| Priority | Medium |
md5: f3641cf6b439af1689bb8109248eccef
Issue Description:
People have tried to use Swift in Xcode Run Script build phases, but because Swift looks at the SDKROOT environment variable, the Run Script phase will fail when building a non-macOS target:
<unknown>:0: warning: using sysroot for 'iPhoneOS' but targeting 'MacOSX'
<unknown>:0: error: unable to load standard library for target 'x86_64-apple-macosx10.14'
We should just ignore SDKROOT when running the interpreter. Swift knows how to invoke xcrun to find the right SDK when it's not passed one explicitly.
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfgood first issueGood for newcomersGood for newcomerslegacy driverArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver projectArea → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project