Swiftlint: Please update 'IPHONEOS_DEPLOYMENT_TARGET'

Created on 6 Jan 2020  路  6Comments  路  Source: realm/SwiftLint

New Issue Checklist

Describe the bug

Can someone please update the Deployment target. I am getting following warning on my jenkins logs The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.2.99. (in target 'SwiftLint' from project 'SwiftLint'

Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint

Environment

  • SwiftLint version (run swiftlint version to be sure)? -> 0.37.0
  • Installation method used (Homebrew, CocoaPods, building from source, etc)? -> cocoapods
  • Paste your configuration file:
pod 'SwiftLint'
  • Are you using nested configurations? -> No
    If so, paste their relative paths and respective contents.
  • Which Xcode version are you using (check xcodebuild -version)? -> XCode 11.3

All 6 comments

SwiftLint can't run on iOS. Not sure how you're getting that error.

It is integrated via cocoapods

This seems to be a configuration issue with your project, not something wrong with SwiftLint's podspec.

I'm guessing it is due to a lack of specifying the iOS deployment target in the podspec... Maybe Cocoapods defaults to 4.3 if nothing is specified?

Maybe just update the podspec to call out a version?

https://github.com/CocoaPods/Specs/blob/master/Specs/4/0/1/SwiftLint/0.39.2/SwiftLint.podspec.json#L18

hey, is there any workaround for this warning?

SwiftLint doesn't support building on the iOS platform. Please build on macOS or Linux.

Was this page helpful?
0 / 5 - 0 ratings