Can't submit to Apple App Store, Apple 403 detected - Access forbidden.
Build/Submit details page URL
No response
Summary
When executing eas submit -p ios and selecting an eas build and providing the right path to the Apple Connect API key, I get:
Error: Apple 403 detected - Access forbidden.
This request is forbidden for security reasons - The API key in use does not allow this request
✖ Failed to fetch App Store Connect API Key.
Apple 403 detected - Access forbidden.
This request is forbidden for security reasons - The API key in use does not allow this request
Error: submit command failed.
Managed or bare?
Bare
Environment
expo-env-info 1.0.5 environment info: System: OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish) Shell: 5.1.16 - /bin/bash Binaries: Node: 18.17.1 - /usr/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.6.7 - /usr/bin/npm npmPackages: expo: ~45.0.8 => 45.0.8 react: 17.0.2 => 17.0.2 react-dom: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-web: 0.17.7 => 0.17.7 npmGlobalPackages: eas-cli: 5.9.1 Expo Workflow: bare
Error output
at t.getAppleResponseError (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:833596) at block (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:840893) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async I (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:839166) at async method (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:840374) at async t.providerRequestAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:734446) at async s.requestAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:740890) at async s.requestAndParseAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:741594) at async s.fetchSingleModelAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:741360) at async getAscApiKeyAsync (/usr/lib/node_modules/eas-cli/build/credentials/ios/appstore/ascApiKey.js:38:24) ...
Reproducible demo or steps to reproduce from a blank project
Can't share a demo
Hi, is that how you generated the API key https://github.com/expo/fyi/blob/main/creating-asc-api-key.md?
Hi, is that how you generated the API key https://github.com/expo/fyi/blob/main/creating-asc-api-key.md?
Yes, that's exactly how I did it. When eas submit asks for the path, I provide the path to the .p8 file
Could you provide a link to the source code of the apple-utils package so I can investigate myself? I can't find it anywhere. 🤔
I tried submitting with an app-specific password using the EXPO_APPLE_APP_SPECIFIC_PASSWORD env var and it worked