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

ArgumentError - Illformed requirement " Source = 0.0.1" #2850

Closed
dbachrach opened this issue Nov 19, 2014 · 4 comments · Fixed by CocoaPods/Core#198
Closed

ArgumentError - Illformed requirement " Source = 0.0.1" #2850

dbachrach opened this issue Nov 19, 2014 · 4 comments · Fixed by CocoaPods/Core#198
Labels
s4:awaiting validation A Pull Request that is waiting for validation by a CocoaPods Core Team member t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!

Comments

@dbachrach
Copy link

Report

After a successful pod install, another pod install fails with ArgumentError - Illformed requirement " Source = 0.0.1". Removing the Podfile.lock and doing another pod install works successfully. It seems like Podfile.lock is being generated incorrectly.

  • What did you do?
    After a successful pod install, another pod install fails.
  • What did you expect to happen?
    The second pod install should succeed.
  • What happened instead?
    The pod install failed.

Stack

   CocoaPods : 0.35.0
        Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
    RubyGems : 2.0.14
        Host : Mac OS X 10.10 (14A389)
       Xcode : 6.1 (6A1052d)
         Git : git version 1.9.3 (Apple Git-50)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ da2ea7caa58de95205c67319fbd04ae54ea9fbf7

Plugins

cocoapods-plugins : 0.3.1
cocoapods-trunk   : 0.4.0
cocoapods-try     : 0.4.2

Podfile

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '7.0'
inhibit_all_warnings!

link_with 'mediaHound', 'mediaHound AppStore'

target 'Acceptance Tests', :exclusive => true do
  pod 'KIF'
end

pod 'AtSugar', :path => 'External/AtSugar'
pod 'MHLogger', :path => 'External/MHLogger'
pod 'ObjectiveMixin', :path => 'External/ObjectiveMixin'
pod 'DynamicInvoker', :path => 'External/DynamicInvoker'

pod 'AppUpdateManager', :path => 'External/AppUpdateManager'
pod 'Avenue', :path => 'External/Avenue'
pod 'CoreHound', :path => 'External/CoreHound'
pod 'CoreStore', :path => 'External/CoreStore'
pod 'DirectionPanGestureRecognizer', :path => 'External/DirectionPanGestureRecognizer'
pod 'UIButton+TintState', :path => 'External/UIButton+TintState'

pod 'AFNetworking'
pod 'Analytics/Segmentio'
pod 'castaway'
pod 'CHTCollectionViewWaterfallLayout'
pod 'CRToast'
pod 'CSNPlaceholderTextView'
pod 'ECSlidingViewController', :git => 'https://github.com/dbachrach/ECSlidingViewController.git'
pod 'FDTake', :git => 'https://github.com/dbachrach/FDTake.git'
pod 'FormatterKit'
pod 'FXBlurView'
pod 'iCarousel'
pod 'KVOController'
pod 'MarqueeLabel'
pod 'MBProgressHUD'
pod 'MZFormSheetController'
pod 'NAKPlaybackIndicatorView'
pod 'NGAParallaxMotion'
pod 'OCUDL'
pod 'pop'
pod 'PromiseKit/Promise'
pod 'RegExCategories'
pod 'Shimmer', :git => 'https://github.com/dbachrach/Shimmer.git'
pod 'TPKeyboardAvoiding'
pod 'TWRBorderedView', :git => 'https://github.com/chasseurmic/TWRBorderedView.git'
pod 'UAObfuscatedString', '0.3.1'
pod 'UIActionSheet+Blocks'
pod 'UIAlertView+Blocks'
pod 'uicontrol-blocks'
pod 'UIImageViewAligned', :git => 'https://github.com/dbachrach/UIImageViewAligned.git'
pod 'UIImage+MDContentColor', :git => 'https://github.com/dbachrach/uiimage-content-color.git'

post_install do |installer_representation|
    installer_representation.project.targets.each do |target|
        if target.name == "Pods-CoreHound"
            target.build_configurations.each do |config|
                if config.name == 'HoundFood'
                    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'HOUNDFOOD=1']
                elsif config.name == 'HoundFood Edge'
                    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'HOUNDFOOD=1', 'HOUNDFOOD_EDGE=1']
                elsif config.name == 'Release'
                    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'APPSTORE=1']
                end
            end
        end
    end
end

Error

ArgumentError - Illformed requirement `" Source = 0.0.1"`
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/requirement.rb:61:in `parse'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/vendor/requirement.rb:108:in `block in initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/vendor/requirement.rb:108:in `map!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/vendor/requirement.rb:108:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/requirement.rb:32:in `new'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/requirement.rb:32:in `create'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/dependency.rb:91:in `initialize'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/dependency.rb:338:in `new'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.35.0/lib/cocoapods-core/dependency.rb:338:in `from_string'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:55:in `add_child_vertex_to_graph'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:63:in `add_to_dependency_graph'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:67:in `block (2 levels) in add_to_dependency_graph'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:67:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:67:in `block in add_to_dependency_graph'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:65:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:65:in `add_to_dependency_graph'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:32:in `block in generate_version_locking_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:31:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer/locking_dependency_analyzer.rb:31:in `generate_version_locking_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer.rb:243:in `generate_version_locking_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer/analyzer.rb:54:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:184:in `analyze'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:106:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface.rb:49:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:105:in `resolve_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/installer.rb:90:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command/project.rb:101:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
@kylef kylef added the t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome! label Nov 19, 2014
@segiddins
Copy link
Member

@dbachrach since you point to the Podfile.lock as causing the problem, can you please share it?

@dbachrach
Copy link
Author

@segiddins segiddins added the s4:awaiting validation A Pull Request that is waiting for validation by a CocoaPods Core Team member label Nov 20, 2014
@dbachrach
Copy link
Author

Looks like you already tracked this down! I just uploaded a minimal case that shows the issue:
https://github.com/dbachrach/PodTestSpace

@segiddins
Copy link
Member

Thanks for the test case, but I was familiar with the issue and remember fixing something like it two months ago.

-Samuel E. Giddins

On Nov 20, 2014, at 8:52 AM, Dustin Bachrach notifications@github.com wrote:

Looks like you already tracked this down! I just uploaded a minimal case that shows the issue:
https://github.com/dbachrach/PodTestSpace


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s4:awaiting validation A Pull Request that is waiting for validation by a CocoaPods Core Team member t2:defect These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Projects
None yet
3 participants