DeployGate / deploygate-cli

A command-line interface for DeployGate
https://deploygate.com
Other
42 stars 9 forks source link

Commands::AddDevices Error: NoMethodError #242

Closed KentyK closed 5 years ago

KentyK commented 6 years ago

Status

deploygate-cli ver 0.6.4

Error message

undefined method `build_configuration_list' for nil:NilClass

Backtrace

/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/xcode/analyze.rb:145:in `target_build_configration'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/xcode/analyze.rb:91:in `target_xcode_setting_provisioning_profile_uuid'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/commands/deploy/build.rb:50:in `ios'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/commands/deploy/build.rb:22:in `run'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/commands/add_devices.rb:75:in `build!'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/commands/add_devices.rb:57:in `device_register'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/commands/add_devices.rb:29:in `run'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/command_builder.rb:91:in `block (2 levels) in run'
/Library/Ruby/Gems/2.3.0/gems/commander-4.4.5/lib/commander/command.rb:182:in `call'
/Library/Ruby/Gems/2.3.0/gems/commander-4.4.5/lib/commander/command.rb:153:in `run'
/Library/Ruby/Gems/2.3.0/gems/commander-4.4.5/lib/commander/runner.rb:446:in `run_active_command'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.57.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:64:in `run!'
/Library/Ruby/Gems/2.3.0/gems/commander-4.4.5/lib/commander/delegates.rb:15:in `run!'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/lib/deploygate/command_builder.rb:128:in `run'
/Library/Ruby/Gems/2.3.0/gems/deploygate-0.6.4/bin/dg:6:in `<top (required)>'
/usr/local/bin/dg:22:in `load'
/usr/local/bin/dg:22:in `<main>'
yajamon commented 6 years ago

I had the same problem.

The reason was that "*.xcscheme" was not generated.

I solved it when I opened [Xcode menubar]> [Product]> [Scheme]> [Manage Schemes ...] and closed it.