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

"No such file or directory - VERSION" when doing pod install on example project #53

Closed
robmaceachern opened this issue Jun 16, 2014 · 3 comments

Comments

@robmaceachern
Copy link

When I run pod install within the /Example directory to setup my example project, I get an error:

Analyzing dependencies
Fetching podspec for `RMCoreDataStack` from `../`

[!] Invalid `RMCoreDataStack.podspec` file: No such file or directory - VERSION. Updating CocoaPods might fix the issue.

 #  from /Users/robmaceachern/workspace/personal/RMCoreDataStack/Example/Pods/Local Podspecs/RMCoreDataStack.podspec:3
 #  -------------------------------------------
 #    s.name             = "RMCoreDataStack"
 >    s.version          = File.read('VERSION')
 #    s.summary          = "Hit the ground running with a sane Core Data stack."
 #  -------------------------------------------

Here's my /Example/podfile

target "BasicDemo" do
  pod "RMCoreDataStack", :path => "../"
end

I just noticed that there is a bit of discussion about this issue here #50.

@neonichu
Copy link
Member

Did you try the workaround proposed in #50?

@robmaceachern
Copy link
Author

It failed the first time I tried but after manually deleting the /Example/Pods directory and doing a pod install, it worked. Initial error below:

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

- `RMCoreDataStack (from `../`)` required by `Podfile`

Here's the workaround for anyone else running into this problem:

s.version          = begin; File.read('VERSION'); rescue; '9000.0.0'; end

@orta
Copy link
Member

orta commented Jun 26, 2014

VERSION file is killed by #54.

@orta orta closed this as completed Jun 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants