Closed claudiofus closed 2 years ago
Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.
The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.
A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.
"How to narrow down the source of an error"
You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase.
That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.
This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.
sentry-expo
has a few peer dependencies, as mentioned in the docs. I don't see those installed in your project. Take another look at the sentry-expo
docs, and try to provide a reproducible example if you want us to look into this further.
Hello, thanks for your answer, I've run expo install expo-application expo-constants expo-device expo-updates @sentry/react-native
, but unfortunately doesn't work. If can help, I used the same code for quiz1, quiz2, quiz3, quiz4, quiz5 but just for quiz3 and quiz4 it worked. This is my app.config.json:
module.exports = () => {
if (process.env.APP_ENV === "diritto") {
return require("../quiz1/app.json");
}
if (process.env.APP_ENV === "medicina") {
return require("../quiz2/app.json");
}
if (process.env.APP_ENV === "matematica") {
return require("../quiz3/app.json");
}
if (process.env.APP_ENV === "informatica") {
return require("../quiz4/app.json");
}
if (process.env.APP_ENV === "prof-san") {
return require("../quiz5/app.json");
}
};
This is my quiz1/app.json:
{
"expo": {
"name": "Quiz 1",
"slug": "Quiz_1",
"privacy": "hidden",
"platforms": [
"ios"
],
"plugins": ["sentry-expo"],
"version": "1.1.8",
"icon": "https://xxxxx.xxx/square-icon-premium.png",
"splash": {
"image": "https://xxxxx.xxx/splash2.png",
"resizeMode": "contain"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "com.xxx.xxx",
"buildNumber": "1.1.8",
"infoPlist": {
"CFBundleDevelopmentRegion": "it",
"NSUserTrackingUsageDescription": "Questo consenso verrà usato per la gestione e analisi dell'app."
},
"supportsTablet": true
},
"description": "",
"hooks": {
"postPublish": [
{
"file": "sentry-expo/upload-sourcemaps",
"config": {
"organization": "soulfully",
"project": "quiz1",
"authToken": "xxxxxxxx"
}
}
]
},
"extra": {
"sentryDSN": "https://xxxxxxxx.ingest.sentry.io/5730961"
}
}
}
The app.json files are exactly the same for all them, except name, slug, icon, image, bundleIdentifier and sentryDSN. Could it be something linked to expo-updates? The app doesn't start at all and from the logs the error is not clear. How can I check if there's something different in expo-updates between these apps?
Summary
I've just updated to SDK 45 and I'm this error in a managed workflow with
eas build
, the app crashes on start, this is the error log:It works fine with
expo build:ios --no-wait -t archive
but witheas build
it doesn't work at all, I've tried with app.jsonupdates: {enabled: false}
and removingexpo-updates
from package.json as suggested from @brentvatne but didn't work.Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!managed
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
45.0.0
Environment
Reproducible demo
Package.json: