Skip to content

Authentication Error publishing to AppStoreConnect using Apple app specific password. #4898

Closed
@ibnYusrat

Description

@ibnYusrat

Environment

  • CLI: 6.0.1

Describe the bug
If we run tns publish ios (and provide it a path to the ipa) on the CLI 6.0.1 it fails and complains that the username/password are incorrect (when we are using app-specific-password, in our case).

The exact command we usually run to publish (which is part of a shell scrip) is:
tns publish ios --ipa /Users/aurangseb/Documents/fdbk/mobile/platforms/ios/build/Release-iphoneos/mobile.ipa

And the error it comes back with is:
{ "serviceErrors" : [ { "code" : "-20283", "message" : "Your Apple ID or password was incorrect." } ] }

This has been like that since {N} cli versions >5.3.1 on wards.

Workaround
Our current work around (a really nasty one) is to build the ipa file with the distribution certificate using {N} Cli 6.0.1, once we have the path to the ipa, we go ahead and uninstall {N} Cli with npm remove -g nativescript and then install npm install -g nativescript@5.3.1. At this point I push the app to AppStoreConnect using tns publish ios which works just fine with the exact same credentials. Once its successfully published I remove {N} cli 5.3.1 and install {N} cli 6.0.1 again (doesn't get more painful than this).

To Reproduce
Try to publish any app to AppStoreConnect using app-specific-password.

Expected behavior
Publish the app to App Store Connect successfully.

Sample project
Would behave the same with even a blank project.

Additional context
It took me quite sometime to migrate everything from {N} 5.x to {N} 6 so completely downgrading the project to 5.3.1 is not an option at the moment.

Edit:
Come to think of it.. since now 2 factor authentication is a must with Apple accounts, and the ONLY way we can publish application to the AppStoreConnect by using the CLI is through the use of application specific passwords, it seems pretty much impossible to use CLI for this purpose.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions