DeployGate / deploygate-cli

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

'to_sym' error when I try. to run dg deploy #291

Closed tommy716 closed 3 years ago

tommy716 commented 3 years ago

I got this error when I try to run dg deploy on my iOS project. Could you please tell me how can I fix this problem...?

Error: undefined method `to_sym' for nil:NilClass

------------------------
DeployGate Error Report 

Title: undefined method `to_sym' for nil:NilClass
dg version: 0.8.3
Xcode version: 12.2

Stack trace:
/Library/Ruby/Gems/2.6.0/gems/deploygate-0.8.3/lib/deploygate/xcode/analyze.rb:88:in `target_provisioning_profile'
/Library/Ruby/Gems/2.6.0/gems/deploygate-0.8.3/lib/deploygate/commands/deploy/build.rb:49:in `ios'
/Library/Ruby/Gems/2.6.0/gems/deploygate-0.8.3/lib/deploygate/commands/deploy/build.rb:22:in `run'
/Library/Ruby/Gems/2.6.0/gems/deploygate-0.8.3/lib/deploygate/commands/deploy.rb:16:in `run'
/Library/Ruby/Gems/2.6.0/gems/deploygate-0.8.3/lib/deploygate/command_builder.rb:76:in `block (2 levels) in run'
and more ...
------------------------
khanhbk08t1 commented 3 years ago

Can u tell me know what is fix this bug?

d-nakajima commented 1 year ago

I faced this issue. And I fixes it by adding option. I'll note it for anyone coming this page. Try --configuration option and set value what you want to use. If you don't set this command, the Release configuration seems to be used.
(The default is defined on here and I cannot find override it without above option. )

I hope this will be of some help :)