Skip to content

Eror running pod install. `uninitialized constant Xcodeproj::Project::Object::PBXReferenceProxy` #612

Closed
tonyxiao opened this Issue Oct 22, 2012 · 5 comments

4 participants

@tonyxiao

Report

  • What did you do?

I ran pod install --no-clean

Stack

   CocoaPods : 0.16.0.rc2
        Ruby : ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.0.0]
    RubyGems : 1.8.24
        Host : Mac OS X 10.8.2 (12C60)
       Xcode : 4.5.1 (4G1004)
Ruby lib dir : /Users/Tony/.rvm/rubies/ruby-1.9.3-p194/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 70dbb9102f69c37847ffd7129bfde6345d04b5a7

Podfile

          # Default target gets auto created by Cocoapods
# target :default, :exclusive => true do

platform :osx, '10.7'
# 
# pod do |s|
#   s.name     = 'ObjectiveFlickr'
#   s.version  = '0.0.0.2012.10.22'
#   s.license  = 'MIT'
#   s.summary  = 'ObjectiveFlickr, a Flickr API framework for Objective-C.'
#   s.homepage = 'http://lukhnos.org'
#   s.author   = { 'Lukhnos D. Liu' => 'lukhnos@lukhnos.org' }
#   s.source   = { :git => 'git://github.com/lukhnos/objectiveflickr.git' }
#   s.source_files = 'Source/*.{h,m}' , 'LFWebAPIKit/*.{h,m}'
#   s.resources = 'BridgeSupport'
#   s.framework = 'SystemConfiguration'
# end

pod do |s|
  s.name     = 'iMedia'
  s.version  = '0.0.0.2012.10.22'
  s.license  = 'BSD'
  s.summary  = 'An extensible browser for your media'
  s.homepage = 'http://www.karelia.com/imedia/'
  s.authors  = [{ 'Mike Abdullah' => 'mike@karelia.com' }, { 'Dan Wood' => 'dan@karelia.com'}]
  s.source   = { :git => 'git://github.com/karelia/iMedia.git' }
  s.source_files = '*.{h,m}'
  s.resources = '*'
  s.frameworks = 'Carbon', 'Cocoa', 'Quartz', 'QTKit', 'QuickLook', 'WebKit'
  s.libraries = 'sqlite3'

end

# end

Error

uninitialized constant Xcodeproj::Project::Object::PBXReferenceProxy
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project.rb:179:in `const_get'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project.rb:179:in `new_from_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:185:in `block in configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:182:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:182:in `configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project.rb:183:in `new_from_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:195:in `block (2 levels) in configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:194:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:194:in `block in configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:191:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:191:in `configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project.rb:183:in `new_from_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:195:in `block (2 levels) in configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:194:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:194:in `block in configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:191:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:191:in `configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project.rb:183:in `new_from_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:195:in `block (2 levels) in configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:194:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:194:in `block in configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:191:in `each'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project/object.rb:191:in `configure_with_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project.rb:183:in `new_from_plist'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/xcodeproj-0.4.0.rc2/lib/xcodeproj/project.rb:96:in `initialize'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/podfile.rb:46:in `new'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/podfile.rb:46:in `project'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/podfile.rb:50:in `build_configurations'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/podfile.rb:546:in `block in user_build_configurations'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/podfile.rb:546:in `map'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/podfile.rb:546:in `user_build_configurations'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/installer.rb:21:in `project'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/installer.rb:118:in `block (2 levels) in install!'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/user_interface.rb:77:in `message'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/installer.rb:117:in `block in install!'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/user_interface.rb:37:in `section'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/installer.rb:112:in `install!'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/command/install.rb:46:in `run_install_with_update'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/command/install.rb:51:in `run'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/lib/cocoapods/command.rb:75:in `run'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/gems/cocoapods-0.16.0.rc2/bin/pod:16:in `<top (required)>'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `load'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/bin/pod:19:in `<main>'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/Users/Tony/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
@alloy
CocoaPods member
alloy commented Oct 22, 2012

This type of object is used for a Xcodeproj inside a Xcodeproj. The class is probably missing in the release candidate of the ‘xcodeproj’ lib.

/cc @irrationalfab

@fabiopelosin
CocoaPods member

I'm investigating it.

@fabiopelosin fabiopelosin was assigned Oct 23, 2012
@fabiopelosin
CocoaPods member

Xcodeproj (0.4.0.rc3) is out and should fix the issue $ [sudo] gem install xcodeproj --pre.

@martijnwalraven

I also have a project with a subproject and I'm receiving an error mentioning PBXReferenceProxy when running pod install (using cocoapods 0.16.0.rc2 and xcodeproj 0.4.0.rc4):

[Xcodeproj] Type checking error: 'PBXBuildFile' expected ["PBXFileReference", "PBXVariantGroup", "XCVersionGroup"] got PBXReferenceProxy for attribute: #<name: 'file_ref', type: 'to_one', classes: '[Xcodeproj::Project::Object::PBXFileReference, Xcodeproj::Project::Object::PBXVariantGroup, Xcodeproj::Project::Object::XCVersionGroup]', owner class: 'PBXBuildFile'>

Not sure if I should open a new issue, but it seemed it might be related to this one.

@fabiopelosin
CocoaPods member

Xcodeproj (0.4.0.rc5) is out and should fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.