[X] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
Any operation in the CLI which requires an authentication to apple fails with a 401.
What is the new behavior?
Apple authentication changed to a srp implementation, which resulted in the exiting code breaking with an error of 401 on anything that required authentication.
This PR uses a SRP implementation to perform the authentication in the apple way (it is not standard SRP) it consumes a new dependency (@foxt/js-srp) which performs the SRP calculations.
In addition to the authentication, this PR also Fixes:
ns appstore list a further change in the apple api was causing this to fail.
ns publish when providing a profile, changed it to use the buildForAppStore flag which results in the correct behaviour, also adding signingStyle manual to the export plist.
ns publish without specifying a profile. Added -allowProvisioningUpdates to the export archive command when no profiles were specified.
Replaced the depreciated app-store with app-store-connectmethod in distribution plist. ( which requires xcode > 14.3 but 15 needed now to publish anyway)
PR Checklist
What is the current behavior?
Any operation in the CLI which requires an authentication to apple fails with a 401.
What is the new behavior?
Apple authentication changed to a srp implementation, which resulted in the exiting code breaking with an error of 401 on anything that required authentication.
This PR uses a SRP implementation to perform the authentication in the apple way (it is not standard SRP) it consumes a new dependency (@foxt/js-srp) which performs the SRP calculations.
In addition to the authentication, this PR also Fixes:
ns appstore list
a further change in the apple api was causing this to fail.ns publish
when providing a profile, changed it to use thebuildForAppStore
flag which results in the correct behaviour, also addingsigningStyle manual
to the export plist.ns publish
without specifying a profile. Added-allowProvisioningUpdates
to the export archive command when no profiles were specified.app-store
withapp-store-connect
method
in distribution plist. ( which requires xcode > 14.3 but 15 needed now to publish anyway)Fixes/Implements/Closes #5818.