- Published on
Fixing "Cannot Read Properties of Undefined" in Expo iOS Submission
- Authors
- Name
- Avasdream
- @avasdream_
Resolving "Cannot Read Properties of Undefined" in Expo iOS Submission
Submitting your app to the App Store using Expo’s EAS CLI should be straightforward, but sometimes errors like this can leave you stuck:
Cannot read properties of undefined (reading 'attributes')
Submission failed
This error typically occurs during the app verification step, making it impossible to proceed. A simple solution to bypass this issue is to provide your App Store Connect App ID (ascAppId
) directly in your eas.json
file.
ascAppId
to eas.json
Solution: Add By including your app's ascAppId
, you can skip the verification step and streamline the submission process. Here’s how to do it:
ascAppId
Step 1: Find Your - Log in to App Store Connect.
- Go to your app and copy the App ID from the URL:
- Example URL:
https://appstoreconnect.apple.com/apps/1234567890/
- The
ascAppId
is1234567890
.
- Example URL:
If the app does not yet exist create it first.
eas.json
Step 2: Update Your Edit your eas.json
file to include the ascAppId
for your app. The submit
section should look like this:
{
"cli": {
"version": ">= 0.34.0"
},
"submit": {
"production": {
"ios": {
"ascAppId": "1234567890"
}
}
}
}
Why This Works
Providing the ascAppId
skips the app verification process during submission. This ensures the EAS CLI directly associates your submission with the correct app in App Store Connect, avoiding potential authentication or verification issues.
By implementing this change, you should be able to submit your app without encountering the error. If you continue to face issues, double-check the ascAppId
and your eas.json
configuration.
Happy app publishing! 🎉