[MacPorts] #62816: Buildbot: building XCode project on 10.14.4 fails with: Swift does not support the SDK 'MacOSX10.14.sdk'

MacPorts noreply at macports.org
Fri May 7 13:24:20 UTC 2021


#62816: Buildbot: building XCode project on 10.14.4 fails with: Swift does not
support the SDK 'MacOSX10.14.sdk'
------------------------+----------------------
  Reporter:  lhaeger    |      Owner:  lhaeger
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.4
Resolution:             |   Keywords:
      Port:  AutoRaise  |
------------------------+----------------------

Comment (by lhaeger):

 So adding code to force matching Xcode and SDK versions solved this issue
 for Xcode 11.3.1 on 10.14.6:

 {{{
 # fail if Swift 5 is not supported
 if {[vercmp ${xcodeversion} 10.2] < 0} {
     known_fail yes
     pre-fetch {
         ui_error "${name} @${version} requires at least Xcode 10.2 with
 support for Swift 5."
         ui_error "See
 https://guide.macports.org/chunked/installing.xcode.html for download
 links."
         return -code error "incompatible Xcode version"
     }
 }

 # use the SDK version that came with the Xcode version in use, even if
 that does not match the macOS version
 # see https://trac.macports.org/ticket/62816 for more details
 if {[vercmp ${xcodeversion} 11.0] < 0} {
     configure.sdk_version 10.14
 } elseif {[vercmp ${xcodeversion} 12.2] < 0} {
     configure.sdk_version 10.15
 } elseif {[vercmp ${xcodeversion} 12.3] < 0} {
     configure.sdk_version 11
 } elseif {[vercmp ${xcodeversion} 12.5] < 0} {
     configure.sdk_version 11.1
 }

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62816#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list