nomad-cli / shenzhen

CLI for Building & Distributing iOS Apps (.ipa Files)
MIT License
4.65k stars 492 forks source link

ipa build failing with error "--xcagrs is an invalid option" #325

Closed H4rryp0tt3r closed 3 years ago

H4rryp0tt3r commented 8 years ago

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: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