aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

AWS devicefarm create-upload requires a .ipa name

Open otusweb opened this issue 10 years ago • 4 comments

Running aws devicefarm create-upload --name appTest --type IOS_APP --project-arn arn:aws:devicefarm:xxx

will cause the upload to fail with an invalid file error:

{ "upload": { "status": "FAILED", "name": "appTest", "created": 1474632694.157, "type": "IOS_APP", "arn": "arn:aws:devicefarm:us-west-2:xxxx", "metadata": "{\"errorMessage\":\"Invalid file uploaded.\"}" } }

where running aws devicefarm create-upload --name evaneosAppTest.ipa --type IOS_APP --project-arn arn:aws:devicefarm:us-west-2:xxxxxx will create an upload that can successfully complete.

Note the added extension in the name parameter. I did not see anything in the doc stating that the name parameter needed to end in .ipa

otusweb avatar Sep 23 '16 12:09 otusweb

Is the name the only thing that has changed? I think it's reasonable to expect an ipa file, but I agree the docs could be more explicit.

JordonPhillips avatar Sep 23 '16 17:09 JordonPhillips

yes, that was the only thing I changed from what i can remember. Especially that there is nothing in the doc that say that the --name parameter is anything related to the name of the file.

otusweb avatar Oct 04 '16 19:10 otusweb

Resolved.

jschwarzwalder avatar Dec 17 '18 20:12 jschwarzwalder

@jschwarzwalder - Thanks for the update. Our API reference documentation now shows:

name

The upload's file name. The name should not contain the '/' character. If uploading an iOS app, the file name needs to end with the .ipa extension. If uploading an Android app, the file name needs to end with the .apk extension. For all others, the file name must end with the .zip file extension.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 256.

Required: Yes

Closing issue.

justnance avatar Dec 18 '18 00:12 justnance