Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod install fails #293

Closed
draperunner opened this issue Apr 14, 2020 · 0 comments · Fixed by #300
Closed

Pod install fails #293

draperunner opened this issue Apr 14, 2020 · 0 comments · Fixed by #300
Assignees
Labels
bug This points to a verified bug in the code

Comments

@draperunner
Copy link

Description

pod install fails because it tries to install from a branch called "2.3.0" (version name), which does not exist.

Reproduction

We are using monorepo setup which gives us some trouble with React Native auto-linking, and therefore we manually add an entry for the podspec in our Podfile like so:

pod 'A0Auth0', :podspec => modules_path + '/react-native-auth0/ios'

When running pod install, it fails with the following message:

[!] Error installing A0Auth0
[!] /usr/local/bin/git clone https://github.com/auth0/react-native-auth0.git /var/folders/sm/vzqhm2g13xq_jwlc96qrgty56lgyy2/T/d20200414-71770-1deqwc7 --template= --single-branch --depth 1 --branch 2.3.0

Cloning into '/var/folders/sm/vzqhm2g13xq_jwlc96qrgty56lgyy2/T/d20200414-71770-1deqwc7'...
warning: Could not find remote branch 2.3.0 to clone.
fatal: Remote branch 2.3.0 not found in upstream origin

Resolution

I checked out the podspec (node_modules/react-native-auth0/ios/A0Auth0.podspec) and saw that there is a v missing, which makes CocoaPods install from a branch instead of the tag version. It works when I add the v.

-  s.source       = { :git => "https://github.com/auth0/react-native-auth0.git", :tag => "#{s.version}" }
+  s.source       = { :git => "https://github.com/auth0/react-native-auth0.git", :tag => "v#{s.version}" }

The v was removed in this refactor commit: 18826cd. I don't know if it was intentional or not?

Environment

Please provide the following:

  • Version of this library used: 2.3.0
  • Version of the platform or framework used, if applicable: 0.61.4
  • Other relevant versions (language, server software, OS, browser):
  • Other modules/plugins/libraries that might be involved:
@Widcket Widcket added the needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue label Apr 14, 2020
@Widcket Widcket self-assigned this Apr 14, 2020
@Widcket Widcket mentioned this issue Apr 29, 2020
5 tasks
@Widcket Widcket added bug This points to a verified bug in the code and removed needs investigation An issue that has more questions to answer or otherwise needs work to fully understand the issue labels Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants