Open
Description
I've just tried to run a Swift script using swift-sh
in the Xcode build scripts step in an iOS project and it failed with the following output:
using sysroot for 'iPhoneSimulator' but targeting 'MacOSX'
'Swift' was created for incompatible target x86_64-apple-ios13.0: /var/folders/c_/pt8g6s3x3h5gg4gznvyqthmc0000gn/C/org.llvm.clang.user/ModuleCache/Swift-3LLGH9HFMRPI6.swiftmodule
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.
Metadata
Metadata
Assignees
Labels
No labels