8000 Running script in iOS project as build-script fails · Issue #113 · mxcl/swift-sh · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Running script in iOS project as build-script fails #113
Open
@Jeehut

Description

@Jeehut

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      2AA0
      0