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

Already on GitHub? Sign in to your account

Pod install is not ran from the pod files directory #5

Closed
orta opened this Issue Dec 21, 2013 · 9 comments

Comments

Projects
None yet
5 participants
Owner

orta commented Dec 21, 2013

Adding p Dir.pwd to the install_pod(spec, dir) shows the current working dir is the current folder, instead of /tmp/CocoaPods/Try/BRYSerialAnimationQueue/Examples for example.

~/spiel pod try BRYSerialAnimationQueue --verbose

Updating spec repositories

Updating spec repo `master`
  $ /usr/local/bin/git pull
  Already up-to-date.

Trying BRYSerialAnimationQueue

 > GitHub download
     $ /usr/local/bin/git config core.bare
     true
     $ /usr/local/bin/git config core.bare
     true
 > Updating cache git repo (/Users/orta/Library/Caches/CocoaPods/GitHub/683df0f1cbe73f97b91fbe53ed8304b81cb88d06)
       $ /usr/local/bin/git remote update
       Fetching origin
     $ /usr/local/bin/git clone '/Users/orta/Library/Caches/CocoaPods/GitHub/683df0f1cbe73f97b91fbe53ed8304b81cb88d06' '/tmp/CocoaPods/Try/BRYSerialAnimationQueue'
     Cloning into '/tmp/CocoaPods/Try/BRYSerialAnimationQueue'...
     done.
     Checking connectivity... done
     $ /usr/local/bin/git fetch origin tags/1.0.0 2>&1
     From /Users/orta/Library/Caches/CocoaPods/GitHub/683df0f1cbe73f97b91fbe53ed8304b81cb88d06
      * tag               1.0.0      -> FETCH_HEAD
     $ /usr/local/bin/git reset --hard FETCH_HEAD
     HEAD is now at 5f79b2d Initial
     $ /usr/local/bin/git checkout -b activated-pod-commit 2>&1
     Switched to a new branch 'activated-pod-commit'
Analyzing dependencies
Fetching podspec for `BRYSerialAnimationQueue` from `..`
[!] Unable to satisfy the following requirements:
- `BRYSerialAnimationQueue (from `..`)` required by `Podfile`
Opening '/tmp/CocoaPods/Try/BRYSerialAnimationQueue/Examples/BRYSerialAnimationExample.xcworkspace'
Owner

alloy commented Dec 25, 2013

I’ve been looking at this, but it turns out to be an issue with the Podfile. It should be:

pod 'BRYSerialAnimationQueue', :path => '../BRYSerialAnimationQueue.podspec'

@irace Did this actually work? If so, which CP version were you using?

@alloy alloy closed this Dec 25, 2013

Owner

alloy commented Dec 25, 2013

Ok, then this needs to be fixed there. It’s either a full path, or just a name.

irace commented Dec 26, 2013

Hey @alloy @orta, just catching up on this. Pretty sure my Podfile for that small example project worked when I tested it. Am I reading this thread correctly that the way I did it is or should be supported?

Owner

orta commented Dec 26, 2013

We took it offline- in general the default of pod lib create is wrong but it works in a bunch of cases on 0.29

Sent from my iPhone

On 26 Dec 2013, at 16:06, Bryan Irace notifications@github.com wrote:

Hey @alloy @orta, just catching up on this. Pretty sure my Podfile for that small example project worked when I tested it. Am I reading this thread correctly that the way I did it is or should be supported?


Reply to this email directly or view it on GitHub.

irace commented Dec 26, 2013

OK, so I should use the fully qualified :path => '../BRYSerialAnimationQueue.podspec' path even though it works on 0.29 without the file name. Thank you!

Owner

alloy commented Jan 8, 2014

I was completely wrong… The pod directive with :path needs a dir, I was thinking of the podspec directive.

So this means there’s definitely a bug.

@alloy alloy reopened this Jan 8, 2014

Contributor

kylef commented Sep 30, 2014

This isn't actually a bug in CocoaPods, it's because the lock file references a different podspec. These files are not in sync.

$ pod install
Analyzing dependencies
Fetching podspec for `BRYSerialAnimationQueue` from `..`
[!] Unable to satisfy the following requirements:

- `BRYSerialAnimationQueue (from `..`)` required by `Podfile`


$ pod update
Analyzing dependencies
Fetching podspec for `BRYSerialAnimationQueue` from `..`
Downloading dependencies
Installing BRYSerialAnimationQueue (1.0.0)
Generating Pods project
Integrating client project


$ git diff
diff --git a/Examples/Podfile.lock b/Examples/Podfile.lock
index b04bb61..16a322e 100644
--- a/Examples/Podfile.lock
+++ b/Examples/Podfile.lock
@@ -1,5 +1,5 @@
 PODS:
-  - BRYSerialAnimationQueue (0.0.1)
+  - BRYSerialAnimationQueue (1.0.0)

 DEPENDENCIES:
   - BRYSerialAnimationQueue (from `..`)
@@ -9,6 +9,6 @@ EXTERNAL SOURCES:
     :path: ..

 SPEC CHECKSUMS:
-  BRYSerialAnimationQueue: 05ac5a4eddf2f9018090a2f1db650b1d96893e9d
+  BRYSerialAnimationQueue: dfba7bdc49c717cd4aedf4e7e2cfc213086744b0

@kylef kylef closed this Sep 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment