adamwaite / iOS-Build-Kit

☠️ BuildKit is a modular command line interface for automating iOS project builds. Bundled build tasks include: Increment app version • Xcode build • Overlay version number on icon files • Run unit tests • Create .ipa artefact.
MIT License
568 stars 54 forks source link

Hi #6

Closed antoniocasero closed 10 years ago

antoniocasero commented 10 years ago

First of all, thanks for sharing this.

I followed the steps according with the documentation, http://rubydoc.info/gems/ios_build_kit/0.0.1/frames, but when I try to execute the example project I get this error: /Users/casero/.rvm/gems/ruby-2.0.0-p353/gems/ios_build_kit-0.0.1/lib/ios_build_kit/task_runner.rb:52:in prepare_task_queue!': private method select' called for nil:NilClass (NoMethodError) from /Users/casero/.rvm/gems/ruby-2.0.0-p353/gems/ios_build_kit-0.0.1/lib/ios_build_kit/task_runner.rb:15:in initialize' from /Users/casero/.rvm/gems/ruby-2.0.0-p353/gems/ios_build_kit-0.0.1/lib/ios_build_kit.rb:8:in new' from /Users/casero/.rvm/gems/ruby-2.0.0-p353/gems/ios_build_kit-0.0.1/lib/ios_build_kit.rb:8:in start_with_configuration' from /Users/casero/.rvm/gems/ruby-2.0.0-p353/gems/ios_build_kit-0.0.1/bin/buildkit:17:in <top (required)>' from /Users/casero/.rvm/gems/ruby-2.0.0-p353/bin/buildkit:23:in load' from /Users/casero/.rvm/gems/ruby-2.0.0-p353/bin/buildkit:23:in <main>'

I'm new in ruby, any suggestion is welcome!.

Thanks

adamwaite commented 10 years ago

Hi, I'm away in Spain at the moment. Will be back home soon and will help out as soon as I am. In the meantime if you could format the error into a full block that would be great, sort of hard to read above. Put the code between and to do a block code comment. Thanks!

WoodySlum commented 10 years ago

Have the same issue than described below :

BuildKit Run Started
--------------------
/Library/Ruby/Gems/2.0.0/gems/ios_build_kit-0.0.1/lib/ios_build_kit/task_runner.rb:52:in `prepare_task_queue!': private method `select' called for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/2.0.0/gems/ios_build_kit-0.0.1/lib/ios_build_kit/task_runner.rb:15:in `initialize'
    from /Library/Ruby/Gems/2.0.0/gems/ios_build_kit-0.0.1/lib/ios_build_kit.rb:8:in `new'
    from /Library/Ruby/Gems/2.0.0/gems/ios_build_kit-0.0.1/lib/ios_build_kit.rb:8:in `start_with_configuration'
    from /Library/Ruby/Gems/2.0.0/gems/ios_build_kit-0.0.1/bin/buildkit:17:in `<top (required)>'
    from /usr/bin/buildkit:23:in `load'
    from /usr/bin/buildkit:23:in `<main>'

Did I miss something ?

[EDIT] : Ok found the issue, it was in the yaml configuration file, I did a bad copy/paste. The first ':' was missing. Issue is resolved for me.

adamwaite commented 10 years ago

Great - glad you found the fix. I'll update the YAML parsing to throw a friendly exception if the key isn't a symbol on the next update. I'll leave this open until it's done.