Skip to content

Dependent pods fail linting due to very old deployment target on Xcode 15.3 #201

Open
@brainbicycle

Description

👋 hello there and thanks for the pod!

I was attempting to publish this pod: https://github.com/dblock/ios-snapshot-test-case-expecta
which has Expecta as a dependency.

However bundle exec pod lint fails to pass validation due to an incompatible minimum deployment target with the latest versions of Xcode:

 -> Expecta+Snapshots (3.2.0)
    - WARN  | [iOS] swift: The validator used Swift `4.0` by default because no Swift version was specified. To specify a Swift version during validation, add the `swift_versions` attribute in your podspec. Note that usage of a `.swift-version` file is now deprecated.
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  | xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | [iOS] xcodebuild:  note: Building targets in dependency order
    - NOTE  | [iOS] xcodebuild:  note: Target dependency graph (6 targets)
    - NOTE  | [iOS] xcodebuild:  clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
    - NOTE  | [iOS] xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 17.2.99. (in target 'iOSSnapshotTestCase' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 12.0 to 17.2.99. (in target 'Expecta' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 12.0 to 17.2.99. (in target 'Specta' from project 'Pods')

[!] Expecta+Snapshots did not pass validation, due to 1 error and 1 warning.
You can use the `--no-clean` option to inspect any issue.

There is an issue in cocoapods here: CocoaPods/CocoaPods#12033 around this but I think the short of it is that deployment targets need to be above 12 for Xcode 15+.

Any possibility of updating? I can also give it a shot.

Example update in another library: https://github.com/clemensg/sqlite3pod/pull/23/files

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions