Uploaded image for project: 'Swift'
  1. Swift
  2. SR-9216

Don't honor SDKROOT in interpreter mode

    XMLWordPrintable

    Details

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jrose Jordan Rose
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: