Unable to run the application which is built for iOS Simulator.
I got this error:
Installing your app on the simulator...
Error: Some other error occurred while running xcrun command.
xcrun exited with non-zero code: 22
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain a valid CFBundleShortVersionString.
Ensure your bundle contains a valid CFBundleShortVersionString.
Tried eas prebuild, didn’t help.
My eas.json
{
"cli": {
"version": ">= 3.1.1"
},
"build": {
"development-simulator": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"simulator": true,
"resourceClass": "m1-medium"
}
},
"development": {
"developmentClient": true,
"distribution": "internal",
"ios": {
"resourceClass": "m1-medium"
}
},
"preview": {
"distribution": "internal",
"ios": {
"resourceClass": "m1-medium"
}
},
"production": {
"ios": {
"resourceClass": "m1-medium"
}
}
},
"submit": {
"production": {}
}
}
app.json (truncated)
{
"expo": {
"jsEngine": "hermes",
"owner": "volkish",
"name": "###############",
"slug": "###############",
"privacy": "public",
"platforms": [
"iOS",
"android"
],
"scheme": "###############",
"primaryColor": "#FF786E",
"version": "1.9",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0,
"url": "https://u.expo.dev/344eef40-e5f4-11e9-8502-f3e28748921d"
},
"assetBundlePatterns": [
"assets/animations/**/*",
"assets/pregnancyAssets/**/*",
"assets/*"
],
"userInterfaceStyle": "light",
"ios": {
"appStoreUrl": "###############",
"buildNumber": "1.9.2",
"usesAppleSignIn": true,
"bundleIdentifier": "##############",
"supportsTablet": false,
"infoPlist": {
"CFBundleAllowMixedLocalizations": true,
"UIUserInterfaceStyle": "Light",
"NSPhotoLibraryUsageDescription": "Allow the application to access the photo library to upload your avatar and create messages with photos.",
"NSUserTrackingUsageDescription": "This identifier will be used to deliver personalized ads to you."
}
},
"plugins": [
[
"expo-build-properties",
{
"ios": {
"useFrameworks": "static"
}
}
],
[
"expo-media-library",
{
"photosPermission": "Allow the application to access the photo library to upload your avatar and create messages with photos.",
"isAccessMediaLocationEnabled": true
}
],
[
"expo-tracking-transparency",
{
"userTrackingPermission": "This identifier will be used to deliver personalized ads to you."
}
],
"@react-native-firebase/app",
"expo-notifications",
"sentry-expo",
"expo-tracking-transparency"
],
"runtimeVersion": {
"policy": "appVersion"
}
}
}