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

NoMethodError when deleting mandatory configuration sush as :build_dir #12

Closed delebedev closed 10 years ago

delebedev commented 10 years ago

Steps:

  1. delete :build_dir
  2. run buildkit

Result:

Running Task: xcode_build
-------------------------
/Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/utils/assertions.rb:15:in `block in assert_required_config': undefined method `terminate_with_err' for #<BuildKit::Runner::TaskRunner:0x007fc613828828> (NoMethodError)
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/utils/assertions.rb:14:in `each'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/utils/assertions.rb:14:in `assert_required_config'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/tasks/xcode_build.rb:24:in `assert_requirements'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/task.rb:17:in `prepare_task_with_runner_and_options!'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/task.rb:10:in `initialize'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/tasks/xcode_build.rb:6:in `new'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/tasks/xcode_build.rb:6:in `xcode_build'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/task_runner.rb:25:in `block in run_tasks!'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/task_runner.rb:21:in `each'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit/task_runner.rb:21:in `run_tasks!'
    from /Users/dlebedev/src/git/iOS-Build-Kit/lib/ios_build_kit.rb:9:in `start_with_configuration'
    from /Users/dlebedev/src/git/iOS-Build-Kit/bin/buildkit:17:in `<main>'
[1]    11068 exit 1     ~/src/git/iOS-Build-Kit/bin/buildkit build_config.yml```
adamwaite commented 10 years ago

I'll fix this at the same time as this -> https://github.com/adamwaite/iOS-Build-Kit/issues/6.

Pretty busy with work work right now but will fix as soon as I get chance.

Thanks for reporting.