"The ”Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value"

Hello everyone ,

I am trying to run my project using travis ci and GitHub , and this is first time use Travis CI. show me this error like in the image.

  • My YML File
os: osx

osx_image: xcode 13.1

language: swift

script: xcodebuild clean build test -project EssentialFeed.xcodeproj -scheme "CI" CODE_SIGNING_IDENTITY="" CODE_SIGNING_REQUIRED= **NO**
  • Xcode version is 13.1
  • Mac OS target is 11.5
  • Swift version is 5

The error is: “The ”Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor."

According to ios - Xcode 9 Swift Language Version (SWIFT_VERSION) - Stack Overflow, this error means that your version of Swift isn’t supported by this version of XCode.

Indeed, according to Xcode - Support - Apple Developer, XCode 11.3 supports Swift 4, 4.2 and 5.5.

Imprint