uber / ios-snapshot-test-case

Snapshot view unit tests for iOS
MIT License
1.79k stars 214 forks source link

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

Closed brainbicycle closed 2 months ago

brainbicycle commented 6 months ago

:wave: hello there and thanks for the library!

I was attempting to publish this pod: https://github.com/dblock/ios-snapshot-test-case-expecta which has ios-snapshot-test-case 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: https://github.com/CocoaPods/CocoaPods/issues/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

alanzeino commented 2 months ago

We no longer support CocoaPods, SPM integration is the path forward, if you see issues with that let me know.

brainbicycle commented 2 months ago

thanks for the reply, we will probably need to drop since we are stuck on Cocoapods due to react native and don't want 2 package managers but understand it is not a priority. Have a good day!