{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3054","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3054/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3054/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3054/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3054","id":54897937,"number":3054,"title":"Error running pod_update (undefined method `new_file')","user":{"login":"dougmcbride","id":101730,"avatar_url":"https://avatars.githubusercontent.com/u/101730?v=3","gravatar_id":"","url":"https://api.github.com/users/dougmcbride","html_url":"https://github.com/dougmcbride","followers_url":"https://api.github.com/users/dougmcbride/followers","following_url":"https://api.github.com/users/dougmcbride/following{/other_user}","gists_url":"https://api.github.com/users/dougmcbride/gists{/gist_id}","starred_url":"https://api.github.com/users/dougmcbride/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougmcbride/subscriptions","organizations_url":"https://api.github.com/users/dougmcbride/orgs","repos_url":"https://api.github.com/users/dougmcbride/repos","events_url":"https://api.github.com/users/dougmcbride/events{/privacy}","received_events_url":"https://api.github.com/users/dougmcbride/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/s1%3Aawaiting+input","name":"s1:awaiting input","color":"EDCE24"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T15:41:28Z","updated_at":"2015-01-20T15:56:54Z","closed_at":null,"body":":rainbow:\r\n\r\n### Report\r\n\r\n* What did you do?\r\n\r\nRan `pod update` in an existing project with pods\r\n\r\n* What did you expect to happen?\r\n\r\nsome of the pods should have been updated\r\n\r\n* What happened instead?\r\n\r\nthe crash below at the end, after it looked like all the pods had been downloaded / processed\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 0.36.0.beta.1\r\n        Ruby : ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-darwin13.0]\r\n    RubyGems : 2.2.2\r\n        Host : Mac OS X 10.9.5 (13F34)\r\n       Xcode : 6.1.1 (6A2008a)\r\n         Git : git version 1.9.3 (Apple Git-50)\r\nRuby lib dir : /Users/username/lib\r\nRepositories : companyname-companynameid-cocoapods - https://github.companyname.com/companynameID/Cocoapods.git @ 2a35e3da2d46259314b621483b3be3ae5afd97a4\r\n               master - https://github.com/CocoaPods/Specs.git @ 91bc84e50740a0e52162edee0a71829946337899\r\n               wdig-username2-cocoapods - https://github.wdig.com/username2/CocoaPods.git @ 6c5561ccbf57864ecd29744c325c5bd19f14a77f\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\ncocoapods-plugins : 0.4.0\r\ncocoapods-trunk   : 0.5.0\r\ncocoapods-try     : 0.4.3\r\n```\r\n\r\n### Podfile\r\n\r\n```ruby\r\nsource 'https://github.companyname.com/companynameID/Cocoapods.git'\r\nsource 'https://github.wdig.com/username2/CocoaPods.git'\r\nsource 'https://github.com/CocoaPods/Specs.git'\r\n\r\nplatform :ios, '7.0'\r\n\r\n#lets hide all compiler warnings from Pods since we can't fix them anyway\r\ninhibit_all_warnings!\r\n\r\npod 'AFNetworking', '~> 2.0'\r\npod 'DTCoreText'\r\npod 'SVPullToRefresh'\r\npod 'GPUImage'\r\npod 'HTMLReader'\r\npod 'ReactiveCocoa', '2.3.1'\r\npod 'AFNetworking-RACExtensions'\r\npod 'libextobjc/EXTScope'\r\npod 'Masonry'\r\npod 'youtube-ios-player-helper'\r\npod 'FLAnimatedImage'\r\npod 'CocoaLumberjack'\r\n\r\npod 'FormatterKit', '~> 1.7.2'\r\n#the following removes extra localizations of FormatterKit so you don't trip up the App Store sensors\r\npre_install do |installer|\r\n    supported_locales = ['base', 'en']\r\n\r\n    installer.pods.each do |pod|\r\n        if (pod.name == 'FormatterKit')\r\n            Dir.glob(File.join(pod.root, '**', '*.lproj')).each do |bundle|\r\n                if (!supported_locales.include?(File.basename(bundle, \".lproj\").downcase))\r\n                    puts \"Removing #{bundle}\"\r\n                    FileUtils.rm_rf(bundle)\r\n                end\r\n            end\r\n        end\r\n    end\r\nend\r\n\r\n# companynameID\r\n# pod repo add companynameID https://github.companyname.com/companynameID/Cocoapods.git\r\n# pod repo remove companynameID\r\n# \"FRAMEWORK_SEARCH_PATHS\" => '\"$(PODS_ROOT)/companynameIdSDK\"'\r\npod 'companynameIdSDK', '~> 2.0.7.0'\r\n```\r\n\r\n### Error\r\n\r\n```\r\nNoMethodError - undefined method `new_file' for #<Xcodeproj::Project::Object::PBXFileReference:0x007fb55cd0bc90>\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/project.rb:175:in `add_file_reference'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:168:in `block (2 levels) in add_file_accessors_paths_to_pods_group'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:166:in `each'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:166:in `block in add_file_accessors_paths_to_pods_group'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:162:in `each'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:162:in `add_file_accessors_paths_to_pods_group'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:103:in `block in add_resources'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/user_interface.rb:110:in `message'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:102:in `add_resources'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:38:in `install!'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:427:in `install_file_references'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:127:in `block in generate_pods_project'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/user_interface.rb:49:in `section'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:125:in `generate_pods_project'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:93:in `install!'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/command/project.rb:155:in `run'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/claide-0.8.0/lib/claide/command.rb:312:in `run'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/command.rb:45:in `run'\r\n/Users/username/lib/ruby/gems/2.1.0/gems/cocoapods-0.36.0.beta.1/bin/pod:43:in `<top (required)>'\r\n/Users/username/bin/pod:23:in `load'\r\n/Users/username/bin/pod:23:in `<main>'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/70676724","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3054#issuecomment-70676724","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3054","id":70676724,"user":{"login":"dougmcbride","id":101730,"avatar_url":"https://avatars.githubusercontent.com/u/101730?v=3","gravatar_id":"","url":"https://api.github.com/users/dougmcbride","html_url":"https://github.com/dougmcbride","followers_url":"https://api.github.com/users/dougmcbride/followers","following_url":"https://api.github.com/users/dougmcbride/following{/other_user}","gists_url":"https://api.github.com/users/dougmcbride/gists{/gist_id}","starred_url":"https://api.github.com/users/dougmcbride/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougmcbride/subscriptions","organizations_url":"https://api.github.com/users/dougmcbride/orgs","repos_url":"https://api.github.com/users/dougmcbride/repos","events_url":"https://api.github.com/users/dougmcbride/events{/privacy}","received_events_url":"https://api.github.com/users/dougmcbride/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T15:56:54Z","updated_at":"2015-01-20T15:56:54Z","body":"I removed it and got the same error, so yes."}}