-
-
Notifications
You must be signed in to change notification settings - Fork 196
publish ios fails because of hsa2 #4586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Try with CLI 5.3.1 - the latest one looks buggy. |
@erjdriver I am sure that issue reason not in CLI version - current source base does not have functionality which process Apple two-factor authentication. |
You are totally right NativeScript CLI doesn't have the functionality to publish applications to AppStore for accounts with two-factor authentication. I marked this as a bug and we'll investigate it for one of our next releases. Meanwhile, you can use Sidekick to publish your apps. It has support for accounts with two-factor authentication and also has support for local and cloud builds. More info can be found here. |
@Fatme thank you for your clarification, I will try Sidekick for publishing. |
fyi - if you use app-specific-password - that works in CLI 5.3.1
|
But app-specific passwords don't work in CLI 5.4.0 though. |
Yeah - roll it back to 5.3.1 |
Considering Apple required all developer accounts in the Account Holder role to enable 2FA earlier this year (https://developer.apple.com/news/?id=02202019a), I expect many {N} developers will start hitting this with the CLI. Happy to see this is high priority to address. |
High priority, but tomorrow going to be 30 days since it's reported with no fix. |
Hey @toddanglin , @maxorlovsky ,
I fully understand the mentioned workarounds are not ideal and we'll do our best to provide a fix, but at the moment I cannot give you an estimate for it. |
Thanks for the update, @rosen-vladimirov! FWIW, I was able to use Sidekick to build and publish my iOS app with 2FA. Only challenge I had was getting Sidekick to use the expected certificate and provisioning profile for local builds. I eventually just used a cloud build and everything build and uploaded. 🤷♂ |
Acceptance criteria:
|
Is this functionality available in cli v6.4.0? With two factor auth enabled on my account, I'm trying to publish but getting error msg: Although response from Apple indicated activated Two-step Verification or Two-factor Authentication, NativeScript CLI don't know how to handle this response: [object Object] |
Environment
Describe the bug
During executing
tns publish ios
command does not execute and regular help output with the previous message:when executing the same command with
--log trace
option the real fails reason can be seen:And yes my Apple ID account has TWO-FACTOR AUTHENTICATION enabled.
To Reproduce
Enable TWO-FACTOR AUTHENTICATION in your Apple ID and try to execute
tns publish ios
for your NS project.Expected behavior
tns publish ios
must ask two-factor code in the same way as it asks to enter Apple ID account and password.Additional context
I found implementation of this functionality in fastlane project on GitHub (409 error response handling and handle_two_step_or_factor implementation).
The text was updated successfully, but these errors were encountered: