/Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/command.rb:164:in parse_options_and_call_procs': invalid option: --xcargs (OptionParser::InvalidOption) from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/command.rb:153:inrun'
from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/runner.rb:428:in run_active_command' from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/runner.rb:68:inrun!'
from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/delegates.rb:15:in run!' from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/import.rb:5:inblock in <top (required)>'
PS: For some reason I have to hide app name, replacing app name with demoApp
I'm using the below command to build:
ipa build -t --verbose --project demoApp.xcodeproj --configuration QA --scheme demoApp_QA --embed "/Users/demouser/Library/MobileDevice/Provisioning Profiles/demoApp_QA_Distribution.mobileprovision" --destination /private/workspace/iOS-QA/ios/build/QA-iphoneos --xcargs "-derivedDataPath ./BuildDerivedData" --ipa demoApp.ipa
It produced this error:
/Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/command.rb:164:in
parse_options_and_call_procs': invalid option: --xcargs (OptionParser::InvalidOption) from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/command.rb:153:in
run' from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/runner.rb:428:inrun_active_command' from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/runner.rb:68:in
run!' from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/delegates.rb:15:inrun!' from /Users/demouser/.rvm/gems/ruby-2.2.3/gems/commander-4.3.5/lib/commander/import.rb:5:in
block in <top (required)>'PS: For some reason I have to hide app name, replacing app name with demoApp