keithpitt / vendor

Dependency management for iOS and OSX development
http://www.vendorkit.com
MIT License
99 stars 7 forks source link

Error adding libraries to a project with an Aggregate target #5

Closed sgriner closed 12 years ago

sgriner commented 12 years ago

When running vendor install on a project with an aggregate target, I get the following error:

/Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/xcode/project.rb:50:in const_get': uninitialized constant Vendor::XCode::Proxy::PBXAggregateTarget (NameError) from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/xcode/project.rb:50:inreload' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/xcode/project.rb:39:in map' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/xcode/project.rb:49:ineach' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/xcode/project.rb:49:in map' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/xcode/project.rb:49:inreload' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/xcode/project.rb:29:in initialize' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/cli/app.rb:89:innew' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/lib/vendor/cli/app.rb:89:in install' from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:insend' from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/task.rb:22:in run' from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/invocation.rb:118:ininvoke_task' from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor.rb:263:in dispatch' from /Library/Ruby/Gems/1.8/gems/thor-0.14.6/lib/thor/base.rb:389:instart' from /Library/Ruby/Gems/1.8/gems/vendor-0.1.4/bin/vendor:14 from /usr/bin/vendor:19:in `load' from /usr/bin/vendor:19

keithpitt commented 12 years ago

I think I have a fix in master for this. Could you try?

cd ~/repos
git clone git://github.com/keithpitt/vendor.git
sudo ln -s /Users/you/repos/vendor/bin/vendor /usr/bin/vendor_dev

Then vendor_dev install to use the development copy.

sgriner commented 12 years ago

It's closer. Now I get:

Installing JSONKit 1.4
Could not find 'Vendor::XCode::Proxy::PBXSourcesBuildPhase' build phase for target 'GenGitVersion'
keithpitt commented 12 years ago

Hrm.. Could you upload your XCode project somewhere and send me the link privately? I think there is a file type in your project that I don't know about.

keithpitt commented 12 years ago

Fixed in 92c5701cf751ff87b981c245291d254df5050053

sgriner commented 12 years ago

Works great. Thanks!

keithpitt commented 12 years ago

I have found another small bug with this when adding a library that has a framework, I'm going to repoen until I fix that issue.

keithpitt commented 12 years ago

Fixed in 4a885c8