question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Podspec with wrong tag

See original GitHub issue

https://github.com/rmrs/react-native-settings/blob/master/ios/RNSettings.podspec#L14 s.source = { :git => "https://github.com/rmrs/react-native-settings.git", :tag => "master" }

There are two way to define source pod

  • Use tag: change master to the lastest tag: v0.0.1-alpha7
  • Use branch: replace tag -> branch

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
erezrokahcommented, Dec 13, 2018

Lucky you 😃 You can bump it to 0.1.0

1reaction
tiendncommented, Dec 13, 2018

Yep, thanks for your response. Npm link also work well, but my project uses Pods. So I need your support.

I think we should use tag for dynamic releases, like this

require 'json'
version = JSON.parse(File.read('package.json'))["version"]

Pod::Spec.new do |s|
  s.version         = version
  s.source          = { :git => "https://github.com/rmrs/react-native-settings.git", :tag => "v" + s.version.to_s }
  ...
end

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pod with tag incorrectly resolves to branch #2775 - GitHub
I ran across this today when someone accidentally pushed a branch with the same name as a tag to the repo, unfortunately the...
Read more >
cocoapods - Pod install installs pod from wrong spec repository
We created a private pod called ListKit und put it into our private cocoapods repository. The Cocoapod Documentation says:.
Read more >
Specs and the Specs Repo - CocoaPods Guides
A Podspec, or Spec, describes a version of a Pod library. One Pod, over the course of time, will have many Specs. It...
Read more >
Developing Private In-House Libraries with CocoaPods
By executing “pod-dev release”, this command will tag the version in the library's GitHub repository, validate the podspec, ...
Read more >
Update/delete an existing podspec version using Cocoapods ...
I have a podspec that has a wrong source_files section (a dot was missing in the regex and some crucial files aren't loaded)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found