{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3091","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3091/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3091/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3091/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3091","id":56026651,"number":3091,"title":"Bundles inside Bundles","user":{"login":"KrauseFx","id":869950,"avatar_url":"https://avatars.githubusercontent.com/u/869950?v=3","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/t2:defect","name":"t2:defect","color":"6902E1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-30T12:12:50Z","updated_at":"2015-09-30T12:29:02Z","closed_at":null,"body":":rainbow:\r\n\r\nRunning `pod install` with the latest release:\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 0.36.0.beta.1\r\n        Ruby : ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-darwin13.1.0]\r\n    RubyGems : 2.2.2\r\n        Host : Mac OS X 10.10.1 (14B25)\r\n       Xcode : 6.1.1 (6A2008a)\r\n         Git : git version 2.2.1\r\nRuby lib dir : /Users/felixkrause/.rvm/rubies/ruby-2.0.0-p481/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ 52a5b86c95ff99d6233d3f7b214f15b21bcc0201\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### Error\r\n\r\n```\r\nNoMethodError - undefined method `new_file' for #<Xcodeproj::Project::Object::PBXFileReference:0x007f7fc98b1a78>\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/project.rb:173:in `add_file_reference'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/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/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:166:in `each'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/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/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:162:in `each'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/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/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:104:in `block in add_resources'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/user_interface.rb:110:in `message'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:102:in `add_resources'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer/file_references_installer.rb:38:in `install!'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:427:in `install_file_references'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:127:in `block in generate_pods_project'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/user_interface.rb:49:in `section'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:125:in `generate_pods_project'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/installer.rb:93:in `install!'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/command/project.rb:71:in `run_install_with_update'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/command/project.rb:101:in `run'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/claide-0.8.0/lib/claide/command.rb:312:in `run'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/lib/cocoapods/command.rb:45:in `run'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/gems/cocoapods-0.36.0.beta.1/bin/pod:43:in `<top (required)>'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/bin/pod:23:in `load'\r\n/Users/felixkrause/.rvm/gems/ruby-2.0.0-p481/bin/pod:23:in `<main>'\r\n\r\n```\r\n\r\n\r\n### My Podfile:\r\n```ruby\r\nPod::Spec.new do |s|\r\n  s.name         = \"Core\"\r\n  s.version      = \"1.0\"\r\n  s.homepage     = \"http://sunapps.net\"\r\n\r\n  s.platform     = :ios, '7.0'\r\n  \r\n  s.requires_arc = true\r\n\r\n  s.subspec 'Core' do |core|\r\n    # Resources\r\n    core.resource_bundles = {\r\n      'GCCore' => [\r\n        \"Resources/**/*.{lproj,png,jpg,zip,json,html,plist,sql}\"\r\n      ]\r\n    }\r\n   core.source_files = 'Classes/**/*.{h,m}', \r\n                          'Views/**/*.{h,m}', \r\n                          \"AppSpecific/#{app_id.to_s}/*\"\r\n\r\n   core.frameworks = 'QuartzCore', 'MessageUI', 'CoreLocation', 'SystemConfiguration'\r\n   core.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '\"$(PODS_ROOT)/../..\" \"$(PODS_ROOT)/..\" \"$(SRCROOT)/..\"' }\r\n   core.xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }\r\n\r\n   core.resources = [ \"Resources/**/*.bundle\" ]\r\nend\r\n```\r\n\r\nThe line causing this problem is:\r\n```ruby\r\n    core.resource_bundles = {\r\n      'GCCore' => [\r\n        \"Resources/**/*.{lproj,png,jpg,zip,json,html,plist,sql}\"\r\n      ]\r\n    }\r\n```\r\n\r\nInside `Resources` is a `bundle` named `Settings.bundle`, containing the app's settings. If I remove the `bundle` or remove this line from my `Podfile`, it works just fine.\r\n\r\nThe `Settings.bundle` looks like this: \r\n![screenshot 2015-01-30 12 05 37](https://cloud.githubusercontent.com/assets/869950/5975411/5ecc13a6-a878-11e4-8bc2-5a1eb4cf9cab.png)\r\n\r\nIt has been working until now, and broke just recently. It probably makes sense, not having the bundle inside a bundle (not sure if that's even possible) but the error message is cryptic and should probably state a problem with bundles containing bundles. \r\n\r\nWhat do you think? "},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/144381583","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3091#issuecomment-144381583","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3091","id":144381583,"user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T12:29:02Z","updated_at":"2015-09-30T12:29:02Z","body":"If you want us to be able to look into this, we need an example project that demonstrates the issue. "}}