@wodin: of course.
Here is the app-staging.json
:
{
"expo": {
"name": "trppn-staging",
"scheme": "trppn-stg",
"slug": "trppn-staging",
"privacy": "unlisted",
"sdkVersion": "43.0.0",
"platforms": [
"ios",
"android"
],
"version": "1.2.2",
"orientation": "portrait",
"icon": "./images/appicon.png",
"splash": {
"image": "./images/splash.png",
"resizeMode": "cover",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "com.roc8.trppn.stg",
"buildNumber": "1",
"supportsTablet": true,
"config": {
"googleMapsApiKey": [key]
},
"infoPlist": {
"LSApplicationQueriesSchemes": [
"comgooglemaps",
"citymapper",
"uber",
"lyft",
"waze"
],
"NSCameraUsageDescription": "...",
"NSPhotoLibraryUsageDescription": "...",
"NSLocationWhenInUseUsageDescription": "..."
}
},
"android": {
"package": "com.roc8.trppnstg",
"versionCode": 16,
"useNextNotificationsApi": true,
"config": {
"googleMaps": {
"apiKey": [key]
}
},
"permissions": [
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"CAMERA"
]
},
"notification": {}
}
}
and here is the app.config.js:
module.exports = () => {
if (process.env.APP_ENV === "production") {
return require("./app-production.json");
} else if (process.env.APP_ENV === "staging") {
return require("./app-staging.json");
} else {
return require("./app-development.json");
}
};
Note: I guess it has nothing to do with the “target” error from my post above, but this is the “staging” config and is almost the same as the “production” configuration with the difference that only the production version is in the app store.
We use the staging version for testing via TestFlight
PS: expo build:ios
is working
BR