Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

195
Views
Unrecognized `swift_version` key

I can’t push a new version of my pod to the CocoaPods specs repository.

Running pod trunk push MyPod.podspec results in the following error:

[!] The Pod Specification did not pass validation.
The following validation failed:
- Warnings: Unrecognized `swift_version` key.

Here’s my podspec:

Pod::Spec.new do |spec|

  spec.name = "MyPod"
  spec.version = "0.1.1"
  spec.summary = "[REDACTED]"
  spec.homepage = "[REDACTED]"
  spec.license = "Apache License, version 2"
  spec.author = "[REDACTED]"
  spec.social_media_url = "[REDACTED]"
  spec.module_name = "MyPod"
  spec.swift_version = "5.0"
  spec.platform = :ios, "8.0"
  spec.source = { :git => "https://github.com/[REDACTED].git", :tag => "v#{spec.version}" }
  spec.source_files = "MyPod/**/*.{h,m,swift}"

end

What am I doing wrong?

I first noticed these errors before updating to Swift 5 and Xcode 10.2.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

It seems to be a server-side bug. It’s been reported on GitHub.

However, since it’s a warning, not an error (despite it’s in red font color, which is confusing), it can be ignored with the --allow-warnings argument.

over 4 years ago · Santiago Trujillo Report

0

Summary, to update a pod:

Update the version and the tag in podspec beforehand Commit, push code to git Create new tag with the current code, make sure it's the same tag as the one in podspec

git tag 0.1.1

git push origin 0.1.1 Call pod spec lint to check and pod trunk push to update it on repo master list

pod lib lint YourSDK.podspec

pod trunk push YourSDK.podspec It appears that your podfile is using the tag v0.1.1, however the tag in your repository is 0.1.1 without the v. This would also cause linting to fail.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!