I have faced with build problem and publish test version to Testflight
my eas.json
:
{
"cli": {
"version": ">= 3.3.2"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "store",
"env": {
"API_URL": "https://localhost:8890",
"WS_URL": "wss://localhost:8890"
},
"ios": {
"resourceClass": "m1-medium",
"simulator": true
},
"android": {
"ndk": "21.4.7075529",
"buildType": "apk",
"image": "latest"
}
},
"preview": {
"distribution": "store",
"android": {
"buildType": "apk",
"image": "latest"
},
"ios": {
"buildConfiguration": "Release",
"resourceClass": "m1-medium"
}
},
"preview2": {
"android": {
"buildType": "apk",
"gradleCommand": ":app:assembleRelease"
},
"ios": {
"resourceClass": "m1-medium"
}
},
"preview3": {
"developmentClient": true,
"ios": {
"resourceClass": "m1-medium"
}
},
"production": {
"distribution": "store",
"env": {
"API_URL": "https://localhost:8890",
"WS_URL": "wss://localhost:8890"
},
"android": {
"buildType": "apk"
},
"ios": {
"resourceClass": "m1-medium"
}
}
},
"submit": {
"preview": {
"ios": {
"appleId": "<appleId>",
"ascAppId": "<ascAppId>",
"appleTeamId": "<appleTeamId>",
"companyName": "<companyName>",
"ascApiKeyIssuerId": "<ascApiKeyIssuerId>",
"ascApiKeyId": "<APIKEY>",
"ascApiKeyPath": "<PATH ON MY COMPUTER>"
}
}
}
}
enter image description here - this is with command
eas build -p ios --profile preview
- this is with command
eas build -p android --profile preview
expo build:ios -t archive
worked fine till it become deprecated.
I have tried to change eas.json file, updated expo version from 44 -> 47, upload the latest versions of package.json, serf internet to looking for the answer, but most of the answers based on Xcode file refactor, but I cannot reach this file because of the expo using.
I also have app.config.js
file with:
import 'dotenv/config';
export default ({ config }) => {
const appConfig = {
...config,
version: '0.28.0',
extra: {
apiUrl: process.env.API_URL ?? 'https://localhost:8890',
eas: {
projectId: '<projectID>',
},
},
};
return appConfig;
};
I also tried to add .easignore files (from this post)
UPDATED:
I just run:
npm install @react-navigation/native
npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
And then I change sentry hook in app.json organization and project for correct name
and all works fine