Published on

Fixing "Cannot Read Properties of Undefined" in Expo iOS Submission

Authors

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.


Solution: Add ascAppId to eas.json

By including your app's ascAppId, you can skip the verification step and streamline the submission process. Here’s how to do it:

Step 1: Find Your ascAppId

  1. Log in to App Store Connect.
  2. Go to your app and copy the App ID from the URL:
    • Example URL: https://appstoreconnect.apple.com/apps/1234567890/
    • The ascAppId is 1234567890.

If the app does not yet exist create it first.

Step 2: Update Your eas.json

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! 🎉