Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRunning script in iOS project as build-script fails #113
Comments
|
I'm having the same problem after updating to Xcode 11.4 |
|
Any update? |
|
Try using |
|
Hi everyone, I have finally got some time together to fix this. I’m pretty sure the fix is a one liner. It's depressing to me that my open source is totally dependent on what time I have to give it I'm not sure really what I could do to have made any of you felt confident enough to submit a PR. |
|
So, in theory #113 fixes it, but I could use a test-case. |
|
2.0.1 has the fix. Please try! |
|
@mxcl I just ugpraded to 2.0.1 but I'm still having the same issue: /Users/Jeehut/Library/Developer/swift-sh.cache/6cfae87d4ff40300d031fc7f93264221: error: manifest parse error(s):
<unknown>:0: warning: using sysroot for 'iPhoneSimulator' but targeting 'MacOSX'
<unknown>:0: error: unable to load standard library for target 'x86_64-apple-macosx10.15'
error: 1 <(/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift build -Xswiftc -suppress-warnings)The funny thing is, when I switch to my macOS target, build (same build script there, running |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

I've just tried to run a Swift script using
swift-shin the Xcode build scripts step in an iOS project and it failed with the following output:This seems to be a known issue (SR-9216 – feel free to click the "Vote for this issue" button) but it's open for over a year now, so I suggest we add a workaround into swift-sh and don't wait for it to be fixed.
The simplest workaround seems to be using
#!/usr/bin/xcrun --sdk macosx swift, so we might want to use that to execute Swift as well somehow. See also this Swift Forums thread.