HipByte / motion-appstore

A RubyMotion plugin to provide 'validate' and 'upload' commands for iTunes Connect.
MIT License
52 stars 12 forks source link

Unable to upload, required option: p #12

Closed caramdache closed 8 years ago

caramdache commented 8 years ago

Dear Watson, I am no longer able to upload apps using motion upload. The error returned is as follows:

Upload: ./build/iPhoneOS-9.2-Release/TarotPoints.ipa
✗ Error: Errors uploading './build/iPhoneOS-9.2-Release/TarotPoints.ipa': (
✗ Please specify a value for required option: p
Watson1978 commented 8 years ago

I can't reproduce your issue.

$ motion upload sfujita04@gmail.com
Upload: ./build/AppleTVOS-9.1-Release/HelloTV.ipa
✓ No errors uploading './build/AppleTVOS-9.1-Release/HelloTV.ipa'

I need more information to reproduce the issue.

1) motion-appstore version which you've used

You can get it like following

$ gem list | grep motion-appstore
motion-appstore (1.0.9)

2) Xcode version

$ xcodebuild -version
Xcode 7.2.1
Build version 7C1002

3) Can you upload it via Application Loader.app ?

caramdache commented 8 years ago

Hi Watson,

My output is similar to yours:

carthage:tarot jj$ gem list | grep motion-appstore motion-appstore (1.0.9, 1.0.7) carthage:tarot jj$ xcodebuild -version Xcode 7.2.1 Build version 7C1002

Le 20 mars 2016 à 23:20, Watson notifications@github.com a écrit :

xcodebuild -version

Watson1978 commented 8 years ago

1) you can be able to upload your app with v1.0.7 (you were using before) ?

You can try it like

$ gem uninstall moition-appstore
$ gem install motion-appstore -v '1.0.7'
$ motion upload ...

2) Can you tell me your Apple ID ? Maybe, we needed a better way to escape Apple ID in https://github.com/HipByte/motion-appstore/pull/11 if you can upload app with v1.0.7

caramdache commented 8 years ago

Nope, same issue with 1.0.7.

Is there any way to get increase debugging information?

Le 21 mars 2016 à 19:56, Watson notifications@github.com a écrit :

gem install motion-appstore -v '1.0.7'

Watson1978 commented 8 years ago

I added debug log print at https://github.com/HipByte/motion-appstore/commit/a33d75fbcc7427f6cfcb1640bdd792f317f7e5eb

$ git clone https://github.com/HipByte/motion-appstore.git
$ cd motion-appstore
$ rake install

then, you can see debug logs if you add --verbose option in command, like

$ motion validate sfujita04@gmail.com --verbose

I think wrong or empty password was retrived from Keychain. Maybe, you need to add valid password into Keychain.

https://github.com/HipByte/motion-appstore#password-management

caramdache commented 8 years ago

Thanks Watson!

Here is the log. Seems to be related to a réinstalle of itmstransporter.

COMMAND :

"/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool" --upload-app -f "./build/iPhoneOS-9.2-Release/TarotPoints.ipa" -u "jjmoreau@gmail.com" -p « ????????"

RETURN :
2016-03-22 09:01:29.116 altool[1223:30486] Error: [2016-03-22 08:57:50 CET]

INFO: Transporter is searching for updated software components. [2016-03-22 08:57:55 CET]
INFO: Transporter has detected that new software components exist; updating. [2016-03-22 08:57:55 CET]
DEBUG: Analyzing remote bundle resource org.apache.httpcomponents.httpclient... [2016-03-22 08:58:02 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 08:58:02 CET]
DEBUG: Analyzing remote bundle resource org.apache.httpcomponents.httpcore... [2016-03-22 08:58:05 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.beanutils... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.codec... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.collections... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.cli... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.digester... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.discovery... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.io... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.logging... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.commons.net... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource org.apache.felix.bundlerepository... [2016-03-22 08:58:05 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:05 CET]
DEBUG: Analyzing remote bundle resource org.apache.felix.configadmin... [2016-03-22 08:58:06 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 08:58:06 CET]
DEBUG: Analyzing remote bundle resource org.apache.sanselan.sanselan... [2016-03-22 08:58:06 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:06 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.apache.xml.resolver... [2016-03-22 08:58:06 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:06 CET]
DEBUG: Analyzing remote bundle resource com.asperasoft.faspmanager... [2016-03-22 08:58:13 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 08:58:13 CET]
DEBUG: Analyzing remote bundle resource com.apple.transporter.asperasupport... [2016-03-22 08:58:13 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:13 CET]
DEBUG: Analyzing remote bundle resource com.apple.transporter... [2016-03-22 08:58:16 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 08:58:16 CET]
DEBUG: Analyzing remote bundle resource com.apple.transporter.softwaresupport... [2016-03-22 08:58:36 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 08:58:36 CET]
DEBUG: Analyzing remote bundle resource com.apple.transporter.updater... [2016-03-22 08:58:37 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.activation... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.media.jai.core... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.media.jai.codec... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.mail... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.servlet... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.xml.soap... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.xml.rpc... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.javax.xml.stream... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.jaxen... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.springsource.org.jdom... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource org.json.simple... [2016-03-22 08:58:37 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 08:58:37 CET]
DEBUG: Analyzing remote bundle resource com.apple.jingle.leghorn... [2016-03-22 09:01:20 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 09:01:20 CET]
DEBUG: Analyzing remote bundle resource org.osgi.service.obr... [2016-03-22 09:01:20 CET]
DEBUG: ... resource is same as system bundle, skipping download. [2016-03-22 09:01:20 CET]
DEBUG: Analyzing remote bundle resource com.signiant.interactivetransfer... [2016-03-22 09:01:27 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 09:01:27 CET]
DEBUG: Analyzing remote bundle resource com.apple.transporter.resources... [2016-03-22 09:01:28 CET]
DEBUG: ... updated bundle successfully retrieved. [2016-03-22 09:01:28 CET]
INFO: Transporter has been successfully updated. The updated components will be available the next time Transporter runs. [2016-03-22 09:01:28 CET]
ERROR: Please specify a value for required option: p 2016-03-22 09:01:29.117 altool[1223:30486] Out: 2016-03-22 09:01:29.167 altool[1223:30362] *\ Error: Errors uploading './build/iPhoneOS-9.2-Release/TarotPoints.ipa': ( "Error Domain=ITunesTransporterErrorDomain Code=-18000 \"Please specify a value for required option: p\" UserInfo={NSLocalizedRecoverySuggestion=Please specify a value for required option: p, NSLocalizedDescription=Please specify a value for required option: p, NSLocalizedFailureReason=Please specify a value for required option: p}" ) ✗ Error: Errors uploading './build/iPhoneOS-9.2-Release/TarotPoints.ipa': ( ✗ Please specify a value for required option: p

Le 21 mars 2016 à 22:02, Watson notifications@github.com a écrit :

cd motion-appstore

Watson1978 commented 8 years ago

Application Loader tool requires p option to pass your password. Can you check that your password will be passed as expected ?

caramdache commented 8 years ago

The password seems to be passed correctly to altool. When I run altool manually, the same issue occurs.

When I run ‘motion validate’, there is no error.

Le 22 mars 2016 à 10:32, Watson notifications@github.com a écrit :

Application Loader tool requires p option to pass your password. Can you check that your password will be passed as expected ?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/HipByte/motion-appstore/issues/12#issuecomment-199715991

caramdache commented 8 years ago

$ /usr/local/itms/bin/iTMSTransporter --version iTMSTransporter, version 1.7.6

Le 22 mars 2016 à 20:18, John Morrow caramdache@gmail.com a écrit :

The password seems to be passed correctly to altool. When I run altool manually, the same issue occurs.

When I run ‘motion validate’, there is no error.

Le 22 mars 2016 à 10:32, Watson <notifications@github.com mailto:notifications@github.com> a écrit :

Application Loader tool requires p option to pass your password. Can you check that your password will be passed as expected ?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/HipByte/motion-appstore/issues/12#issuecomment-199715991

caramdache commented 8 years ago

Solved !

Somehow I was mislead by a SO post to install v1.7.6 after a clean OS install. I’ve relinked to /Applications/etc. and it’s working again.

Thanks for your help, and sorry for the trouble.

Le 22 mars 2016 à 20:19, John Morrow caramdache@gmail.com a écrit :

$ /usr/local/itms/bin/iTMSTransporter --version iTMSTransporter, version 1.7.6

Le 22 mars 2016 à 20:18, John Morrow <caramdache@gmail.com mailto:caramdache@gmail.com> a écrit :

The password seems to be passed correctly to altool. When I run altool manually, the same issue occurs.

When I run ‘motion validate’, there is no error.

Le 22 mars 2016 à 10:32, Watson <notifications@github.com mailto:notifications@github.com> a écrit :

Application Loader tool requires p option to pass your password. Can you check that your password will be passed as expected ?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/HipByte/motion-appstore/issues/12#issuecomment-199715991

Watson1978 commented 8 years ago

I’m glad to hear that you solved the issue