I’m trying to run my first development build for iOS but getting the following error:
xcrun exited with non-zero code: 1
Error: build command failed.
No issues with my build or expo-doctor.
I’m on SDK 48 using an Expo managed package.
I’ve created a development build following the guide Build Details — 74cb06de-f985-4858-a5a9-a19963b07252 — spamlock — Expo as I’m migrating to React Native Firebase.
Here is my eas.json
{
"cli": {
"version": ">= 4.1.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
}
},
"preview": {
"distribution": "internal"
},
"development-simulator": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true
}
},
"production": {}
},
"submit": {
"production": {}
}
}
My app.json
{
"expo": {
"name": "Spamlock",
"slug": "spamlock",
"privacy": "public",
"platforms": [
"ios",
"android"
],
"version": "1.7.0",
"orientation": "portrait",
"icon": "./assets/spamlock-icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#730fff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "**********",
"buildNumber": "1.7.0",
"supportsTablet": true,
"config": {
"usesNonExemptEncryption": false
},
"googleServicesFile": "./GoogleService-Info.plist"
},
"android": {
"package": "*********",
"versionCode": 18,
"icon": "./assets/android-adaptive.png",
"adaptiveIcon": {
"foregroundImage": "./assets/android-adaptive.png",
"backgroundColor": "#730fff"
},
"googleServicesFile": "./google-services.json",
"permissions": []
},
"owner": "********",
"extra": {
"eas": {
"projectId": "c11b94cd-08da-4549-8045-68bea4ec87bc"
}
},
"plugins": [
"expo-localization",
"@react-native-firebase/app",
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
]
]
}
}
My package.json
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"postinstall": "rndebugger-open"
},
"dependencies": {
"@expo/vector-icons": "^13.0.0",
"@react-native-async-storage/async-storage": "1.17.11",
"@react-native-firebase/analytics": "^18.3.2",
"@react-native-firebase/app": "^18.3.2",
"@react-navigation/bottom-tabs": "^6.5.8",
"@react-navigation/drawer": "^6.6.3",
"@react-navigation/native": "^6.1.7",
"@react-navigation/native-stack": "^6.9.13",
"babel-core": "^6.26.3",
"babel-preset-expo": "^9.3.0",
"deprecated-react-native-prop-types": "^4.2.1",
"expo": "^48.0.20",
"expo-build-properties": "~0.6.0",
"expo-crypto": "~12.2.1",
"expo-dev-client": "~2.2.1",
"expo-device": "~5.2.1",
"expo-file-system": "~15.2.2",
"expo-font": "~11.1.1",
"expo-linking": "~4.0.1",
"expo-localization": "~14.1.1",
"expo-sqlite": "~11.1.1",
"expo-status-bar": "~1.4.2",
"expo-updates": "~0.16.4",
"firebase": "^9.21.0",
"formik": "^2.1.4",
"i": "^0.3.7",
"i18n-js": "^3.9.2",
"moment": "^2.24.0",
"qs": "^6.9.4",
"radio-buttons-react-native": "^1.0.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.71.8",
"react-native-button": "^3.1.0",
"react-native-gesture-handler": "~2.9.0",
"react-native-modal": "^13.0.1",
"react-native-paper": "^3.8.0",
"react-native-reanimated": "~2.14.4",
"react-native-render-html": "^6.3.4",
"react-native-safe-area-context": "4.5.0",
"react-native-screens": "~3.20.0",
"react-native-simple-radio-button": "^2.7.4",
"react-native-switch-selector": "^2.3.0",
"react-native-web": "~0.18.7",
"react-native-webview": "11.26.0",
"react-redux": "^7.2.0",
"redux": "^4.0.5",
"redux-batched-subscribe": "^0.1.6",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"yup": "^0.29.1"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@types/expo": "^33.0.1",
"@types/react": "~18.0.24",
"babel-preset-expo": "^9.3.0",
"react-native-debugger-open": "^0.4.3"
},
"private": true
}
THE PROCESS
Run my build using my development profile:
eas build --profile development-simulator --platform ios
Console log…
Loaded "env" configuration for the "development-simulator" profile: no environment variables specified.
Compressing project files and uploading to EAS Build.
✔ Uploaded to EAS
Build details: https://expo.dev/accounts/maxaquilino/projects/spamlock/builds/74cb06de-f985-4858-a5a9-a19963b07252
Waiting for build to complete.
✔ Build finished
🍏 iOS app:
https://expo.dev/artifacts/eas/fqtY58Sfk7Mfk1xhozgm4L.tar.gz
✔ Install and run the iOS build on a simulator? … yes.
Clicked Yes to run it on iOS simulator
✔ Successfully downloaded app archive 1s
And I get the following error
xcrun exited with non-zero code: 1
Error: build command failed.
Any idea on where the issue might be?
Thanks