Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brainbicycle opened this issue Apr 10, 2024 · 0 comments

Comments

@brainbicycle
Copy link

👋 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant