Discrepancy in private-key arg passed to app-store-connect publish #2952
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsIt should pass the correct keys, like this build (67941acc6ac40e778f30f713): app-store-connect publish --path /Users/builder/clone/build/ios/ipa/********_app.ipa --key-id @env:APP_STORE_CONNECT_KEY_IDENTIFIER --issuer-id @env:APP_STORE_CONNECT_ISSUER_ID --private-key @env:APP_STORE_CONNECT_PRIVATE_KEY This is expected and consistent with the Actual resultsIt passes a different set of values to the publish command: app-store-connect publish --path /Users/builder/clone/build/ios/ipa/********_app.ipa --key-id ******** --issuer-id ******** --private-key @env:APP_STORE_CONNECT_PUBLISHER_PRIVATE_KEY This results in an error when publishing:
Where is that variable Build id (optional)679915f5c65d7c5cb7e6b073 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hello @fondeadora-tech, |
Beta Was this translation helpful? Give feedback.
Hey @fondeadora-tech,
Apologies for not getting back sooner. I was able to reproduce seeing this variable
APP_STORE_CONNECT_PUBLISHER_PRIVATE_KEY
once on my end as well but the publish was successful eitherways, my thoughts here is that this could sometimes appear as this in the script but the PRIVATE_KEY is still being used here - https://github.com/codemagic-ci-cd/cli-tools/blob/master/docs/app-store-connect/publish.md#--private-keyprivate_key. Can you try removing the variableAPP_STORE_CONNECT_PRIVATE_KEY
and let it pick the value from your.p8
file or re-add the value of yourAPP_STORE_CONNECT_PRIVATE_KEY