ERROR! Building vendor project - how to get details?

179 views
Skip to first unread message

Deny Styler

unread,
Dec 16, 2012, 12:28:49 PM12/16/12
to rubym...@googlegroups.com

I am trying to build simple project cloned from github (cocosmotion), and I am continuosly getting the exactly same error - "ERROR! Building vendor project 'vendor\cocos2d-iphone' failed to create at least one '.a' library." I think that is not much of a problem if there is a way to get some details, logs or something similar information, which can help to solve this kind of problem. But all my tries and searches in google are not helpful at the moment.

So my question is - How can I get more detailed information about what is failing to build in that vendor project? Are there a way to turn on more verbose output?

Cory Preus

unread,
Dec 16, 2012, 2:08:21 PM12/16/12
to rubym...@googlegroups.com
I had the same issue with cocosmotion, not sure how to best debug the output. I, however, found success in using the cocos2d cocoapod...opted for that anyway, since the cocoasmotion project has a line item to build a cocoapod.

Follow the instructions to install rubymotion-cocopods, preferably with bundler.

2. My Gemfile looks like:

source :rubygems
gem 'motion-cocoapods'

3. My Rakefile for cocosmotion:

$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'

require 'bundler'
Bundler.require
require 'motion-cocoapods'

Motion::Project::App.setup do |app|
  app.name = 'cocosmotion'
  app.pods do
    pod 'cocos2d'
  end                                                                                                                             
end 

4. bundle install
5. rake

It will take a few minutes for the cocos2d cocoapod to pull down. Good luck!

Дмитрий Денисов

unread,
Dec 16, 2012, 2:24:45 PM12/16/12
to rubym...@googlegroups.com
Still have a problems:

You have already activated rake 10.0.2, but your Gemfile requires rake 0.9.6. Using bundle exec may solve this.
== this is what I have in my build logs now. 'bundle exec' does not solve the problem (it says 'bundle exec needs a command to run', but I don't have any clue about what command to run).

What am I doing wrong now?

16.12.2012, в 23:08, Cory Preus <co...@unsay.com> написал(а):

--
 
 
 

Cory Preus

unread,
Dec 16, 2012, 2:31:25 PM12/16/12
to rubym...@googlegroups.com
Sorry I left that out -- It's generally good practice to scope the rake command to the bundler project with bundle exec.

bundle exec rake

If you are using rvm or rbenv, there are ways to always ensure rake runs within the dependencies of a project -- which I have configured.

Дмитрий Денисов

unread,
Dec 16, 2012, 2:43:59 PM12/16/12
to rubym...@googlegroups.com
Terminal hangs up like it is waiting for me to do something)

16.12.2012, в 23:31, Cory Preus <co...@unsay.com> написал(а):

--
 
 
 

Cory Preus

unread,
Dec 16, 2012, 3:02:08 PM12/16/12
to rubym...@googlegroups.com

Terminal hangs up like it is waiting for me to do something

It took a few minutes for the cocos2d to pull down and compile before I saw anything on the console.  I couldn't tell you how long...had it on a different terminal tab. It's my first time using cocoapods too.

It is a good sign, I think.

Dmitry D

unread,
Dec 22, 2012, 7:46:00 AM12/22/12
to rubym...@googlegroups.com
Hey Cory!

  Who you doing after world end?)

  I am thinking about cocos2d and why do I need it. It turns out that it is more simple for me to have my own update cycle with my own drawing procedures. Taking into account that cocos uses standard timers, and OpenGL ES support is built in iOS itself, I can;t figure out why should I use cocos at all.
  Do you have any ideas or comments on this?

Regards, 
  Dmitry.


17.12.2012, в 0:02, Cory Preus <co...@unsay.com> написал(а):


Terminal hangs up like it is waiting for me to do something

It took a few minutes for the cocos2d to pull down and compile before I saw anything on the console.  I couldn't tell you how long...had it on a different terminal tab. It's my first time using cocoapods too.

It is a good sign, I think.

--
 
 
 

Reply all
Reply to author
Forward
0 new messages