mrackwitz / MRProgress

Collection of iOS drop-in components to visualize progress
MIT License
2.55k stars 305 forks source link

Cannot install pods and launch example #62

Closed antonc27 closed 10 years ago

antonc27 commented 10 years ago

Hello,

I am trying to launch example. But after pod install, I always get this error:

Fetching podspec for `MRProgress` from `.`

[!] Invalid `MRProgress.podspec` file: [!] A subspec can't require one of its parents specifications. Updating CocoaPods might fix the issue.

 #  from /Users/genimac/Downloads/MRProgress-master/Pods/Local Podspecs/MRProgress.podspec:66
 #  -------------------------------------------
 #        subspec spec_name do |subs|
 >          subs.dependency 'MRProgress/AFNetworking/Base'
 #          subs.dependency "MRProgress/#{spec_name}"
 #  -------------------------------------------

My version of CocoaPods is 0.33.1

Any help will be appreciated. Thanks in advance.

P.S. I also tried to change Local Podspecs file, but each time it is replaced by autogenerated one...

mrackwitz commented 10 years ago

@antonc27: Can you show me how you include the library in your podfile?

antonc27 commented 10 years ago

@mrackwitz , I am trying to launch Example from MRProgress.xcworkspace, so Podfile is default:

workspace 'MRProgress.xcworkspace'
xcodeproj 'MRProgress.xcodeproj'
platform :ios, '7.0'

pod 'AFNetworking'

target 'Example' do
  xcodeproj 'Example.xcodeproj'
  pod 'MRProgress', :path => '.'
  pod 'MRProgress/AFNetworking'
end
mrackwitz commented 10 years ago

This is surprising as it is working locally for me as well as on Travis-CI. Could you please run gem which cocoapods in the same directory, where you executed pod install and paste the output here?

antonc27 commented 10 years ago

Sure:

$ gem which cocoapods
/Library/Ruby/Gems/1.8/gems/cocoapods-0.33.1/lib/cocoapods.rb
antonc27 commented 10 years ago

Actually I solved problem by updating Ruby to version 2.1.2.

mrackwitz commented 10 years ago

I just wanted to propose that. :+1: