Commandant icon indicating copy to clipboard operation
Commandant copied to clipboard

🍫 Podspec: Unrecognized `swift_version` key.

Open phatblat opened this issue 5 years ago • 1 comments

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 avatar Apr 11 '19 03:04 phatblat

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.

phatblat avatar Apr 11 '19 03:04 phatblat