Determine why build is failing

#1

Is there a way to find out why build c3ad7985-e971-4270-9f98-0cf868e095b8 is failing?

#2

It looks like maybe it failed due to a bad string for backgroundColor in splash in your app.json. Can you either see if there’s something wrong there and fix it or paste your app.json here so we can help?

1 Like
#3

Below is the contents of my app.json file.

{
  "expo": {
    "sdkVersion": "20.0.0",
    "name": "Fondue Timer",
    "version": "1.0.0",
    "orientation": "portrait",
    "privacy": "unlisted",
    "slug": "fondue-timer",
    "ios": {
      "bundleIdentifier": "com.andrewbecker.fonduetimer"
    },
    "loading": {
      "backgroundImage": "./src/images/splashscreen.png",
      "hideExponentText": true,
      "splash": {
        "image": {
          "ios": {
            "backgroundImage": "./src/images/splashscreen.png"
          }
        }
      }
    }
  }
}
#4

Hey @andrewbecker I’m so sorry you’re having these issues, it looks like @davepack had was able to see in the build logs that there was something wrong with “backgroundColor”. I like to show you how that property is being used:

Maybe this will help you debug your issues?

Here is a guide for deploying to the app store: https://github.com/acomito/expo-to-appstore-checklist that may be useful. Your images are pngs and that is great! If you made the images yourself make sure they have an alpha layer.

Let me know if you’re getting closer to a solution, love to help you get through this.

#5

Is there any way to simulate a build locally? It works when I run the app through the expo app, but fails when it goes to build using exp build:ios. Also, I can take the same code an build through xcode and it builds an app with no issues.

#6

You can’t build the IPA locally,

You can use exp with these flags --minify --no-dev to simulate a production build.

Also here is an App.json I shared recently that may help you out:

{
  "expo": {
    "name": "<YOUR_NAME>",
    "icon": "./assets/icons/app-icon.png",
    "version": "1.0.0",
    "slug": "<YOUR_SLUG>",
    "sdkVersion": "20.0.0",
    "orientation": "portrait",
    "primaryColor": "#000000",
    "notification": {
      "icon": "./assets/icons/notification-icon.png",
      "color": "#000000",
    },
    "androidStatusBarColor":  "#000000",
    "loading": {
      "icon": "./assets/icons/loading-icon.png",
      "backgroundColor": "#000000",
      "hideExponentText": true,
      "splash": {
        "backgroundColor": "#000000",
      }
    },
    "ios": {
      "bundleIdentifier": "com.apk.<YOUR_VARIABLE>"
    },
    "android": {
      "package": "com.apk.<YOUR_VARIABLE>"
    }
  }
}