Carthage / Commandant

Type-safe command line argument handling
MIT License
422 stars 48 forks source link

🍫 Podspec: Unrecognized `swift_version` key. #149

Open phatblat opened 5 years ago

phatblat commented 5 years ago

The error below does not appear when running pod lib lint but it does appear while attempting to push a new spec version to trunk.

$ pod trunk push Commandant.podspec
...
[!] The Pod Specification did not pass validation.
The following validation failed:
- Warnings: Unrecognized `swift_version` key.

This is using CocoaPods 1.6.1.

phatblat commented 5 years ago

Worked around this for now by allowing warnings during publishing.

$ pod trunk push Commandant.podspec --allow-warnings
...
--------------------------------------------------------------------------------
 🎉  Congrats

 🚀  Commandant (0.16.0) successfully published
 📅  April 10th, 21:01
 🌎  https://cocoapods.org/pods/Commandant
 👍  Tell your friends!
--------------------------------------------------------------------------------

CocoaPods 1.7.0 changes this key to swift_versions for multiple version support. Perhaps updating the gem (after beta) will resolve this warning.