IOS Build Error - prebuild

I am trying to build my app with EAS Build (used expo build previously) and receive the following two prebuild errors. I am still able to get my app to run on the ios simulator, android simulator, and android real device (haven’t checked an ios real device).

[stderr] CommandError: Input is required, but 'npx expo' is in non-interactive mode.
[stderr] Project must have a `android.package` set in the Expo config (app.json or app.config.js).

This is my eas.json

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

and my app.json

{
    "expo": {
        "name": "water-map",
        "slug": "water-map",
        "version": "1.5.0",
        "orientation": "portrait",
        "icon": "./assets/icon.png",
        "splash": {
            "image": "./assets/splash.png",
            "resizeMode": "contain",
            "backgroundColor": "#ffffff"
        },
        "updates": {
            "fallbackToCacheTimeout": 0
        },
        "assetBundlePatterns": ["**/*"],
        "ios": {
            "supportsTablet": true,
            "bundleIdentifier": "removed",
            "config": {
                "googleMapsApiKey": "removed"
            },
            "infoPlist": {
                "NSCameraUsageDescription": "Enable Camera Access to take pictures of fountains",
                "NSLocationAlwaysAndWhenInUseUsageDescription": "Geolocation allows Water-Map to zoom to your current location and show you nearby fountains.",
                "NSLocationWhenInUseUsageDescription": "Geolocation allows Water-Map to zoom to your current location and show you nearby fountains."
            }
        },
        "android": {
            "adaptiveIcon": {
                "foregroundImage": "./assets/adaptive-icon.png",
                "backgroundColor": "#FFFFFF"
            },
            "softwareKeyboardLayoutMode": "pan",
            "package": "removed",
            "permissions": [
                "CAMERA",
                "ACCESS_FINE_LOCATION",
                "ACCESS_COARSE_LOCATION",
                "READ_PHONE_STATE",
                "com.android.launcher.permission.INSTALL_SHORTCUT"
            ],
            "versionCode": 6,
            "config": {
                "googleMaps": {
                    "apiKey": "removed"
                }
            }
        },
        "web": {
            "favicon": "./assets/favicon.png"
        },
        "extra": {
            "eas": {
                "projectId": "removed"
            }
        }
    }
}
 expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 12.5.1
      Shell: 3.5.1 - /usr/local/bin/fish
    Binaries:
      Node: 18.7.0 - ~/.nvm/versions/node/v18.7.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.7.0/bin/yarn
      npm: 8.15.0 - ~/.nvm/versions/node/v18.7.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    Managers:
      CocoaPods: 1.11.3 - /usr/local/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
      Android SDK:
        API Levels: 28, 29, 30, 31, 32, 33
        Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 33.0.0
        System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 2021.3 AI-213.7172.25.2113.9014738
      Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^46.0.15 => 46.0.15 
      react: 18.0.0 => 18.0.0 
      react-dom: 18.0.0 => 18.0.0 
      react-native: 0.69.6 => 0.69.6 
    npmGlobalPackages:
      eas-cli: 2.2.1
      expo-cli: 6.0.6
    Expo Workflow: managed

My build issues have been solved after performing the following steps. Not sure if all of them were essential.
1 Updating Command tools for XCODE
with

softwareupdate --install  
softwareupdate -i "Command Line Tools for Xcode-14.0"

running prebuild locally
npx expo prebuild

And third, and probably most importantly adding a .easignore so that my app.json file which is listed in the .gitignore was included in the build process. This is a breaking change when switiching from expo build to eas build.

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