EAS Build Command Failed iOS with googleServicesFile property defined

Greetings,

I’ve been working on an app and ran into a problem when trying to create a build for iOS in particular. Android worked just fine. Whenever I run: eas build --platform ios - I get the following error:

[ios.infoPlist]: withIosInfoPlistBaseMod: Cannot read properties of null (reading ‘nodeName’)
Error: build command failed.

To better assess the situation I created a brand new minimal project with each to test the configuration and have pinpointed the ios.googleServicesFile property as being causal to the error. I’m not sure if the contents of the googleServicesFile matter. I removed them leaving only { } and I still got the same error when I tried to run eas build --platform ios

EAS VERSION: eas-cli/4.1.2 win32-x64 node-v16.15.1

The app.json file looks like this

{
    "expo": {
      "name": "app",
      "slug": "app",
      "version": "1.0.0",
      "orientation": "portrait",
      "icon": "./assets/icon.png",
      "userInterfaceStyle": "light",
      "splash": {
        "image": "./assets/splash.png",
        "resizeMode": "contain",
        "backgroundColor": "#ffffff"
      },
      "assetBundlePatterns": [
        "**/*"
      ],
      "ios": {
        "supportsTablet": true,
        "bundleIdentifier": "com.tyfoods.app",
        "googleServicesFile": "./google-services.json"
      },
      "android": {
        "adaptiveIcon": {
          "foregroundImage": "./assets/adaptive-icon.png",
          "backgroundColor": "#ffffff"
        }
      },
      "web": {
        "favicon": "./assets/favicon.png"
      },
      "extra": {
        "eas": {
          "projectId": "d4bc1dbe-b1df-4765-8a89-9bd8b2054613"
        }
      }
    }
  }

All I have to do to get this minimal project to build is remove the line:
“googleServicesFile”: “./google-services.json”

However, if I keep this line, then it simply returns that previous error:

[ios.infoPlist]: withIosInfoPlistBaseMod: Cannot read properties of null (reading ‘nodeName’)
Error: build command failed.

Here’s the package.json - but again, this is a fresh project, so I haven’t added anything besides this line:

{
  "name": "app",
  "version": "1.0.0",
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "web": "expo start --web"
  },
  "dependencies": {
    "expo": "~49.0.8",
    "expo-status-bar": "~1.6.0",
    "react": "18.2.0",
    "react-native": "0.72.4"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0"
  },
  "private": true
}

Here’s the EAS-Json:

{
  "cli": {
    "version": ">= 4.1.2"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {}
  },
  "submit": {
    "production": {}
  }
}

Please help, I am at a complete loss here. Apologies if I still haven’t provided enough information. I don’t think the contents of my googleServicesFile is applicable, but it could be? Let me know. Thank you so much in advance for your help.

Solved! I grabbed the GoogleService-Info.plist file from firebase using the ‘iOS’ platform and used that as the googleServicesFile instead for iOS, which appears to be letting me build the project!

It would be great if we could get a more informative error message for something like this. I would’ve solved things much faster. I was stuck for a while.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.