Rah*_*ana 6 ios react-native metro-bundler
我在我的一个应用程序中面临一个奇怪的问题,当我使用构建应用程序时
expo build:ios
Run Code Online (Sandbox Code Playgroud)
然后使用上传应用程序
运输车
当我从 TestFlight 下载应用程序时opens up with a white screen。我尝试使用以下命令在设备上以生产模式运行应用程序
expo run:ios -d
Run Code Online (Sandbox Code Playgroud)
之后在捆绑器中按p切换到生产模式。使用本地 IP 地址在本地运行良好。
当我导出.ipa文件并尝试在设备上运行时,它给了我
该应用程序无法安装,因为无法验证其完整性
以前有人遇到过同样的问题吗?为什么它没有显示任何错误?
一些信息:我正在使用世博会管理的裸工作流程
应用程序.json
{
"expo": {
"name": "Myndfulness",
"slug": "myndfulness",
"owner": "**************************",
"version": "1.0.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"backgroundColor": "#fff",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 300
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"bundleIdentifier": "app.myndfulness",
"buildNumber": "29",
"usesAppleSignIn": true,
"backgroundColor": "#FFFFFF",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"config": {
"googleSignIn": {
"reservedClientId": "**************************"
}
},
"googleServicesFile": "./GoogleService-Info.plist"
},
"android": {
"package": "app.myndfulness",
"versionCode": 4,
"icon": "./assets/icon.png",
"backgroundColor": "#FFFFFF",
"userInterfaceStyle": "light",
"googleServicesFile": "./google-services.json",
"config": {
"googleSignIn": {
"certificateHash": "270AA8A33CF59E92614AF182C917CAF866D38719"
}
}
},
"web": {
"favicon": "./assets/favicon.png",
"config": {
"firebase": {
"apiKey": "**************************",
"authDomain": "**************************",
"projectId": "**************************",
"storageBucket": "**************************",
"messagingSenderId": "441874631846",
"appId": "**************************",
"measurementId": "G-KX9BYB1D1Z"
}
}
},
"packagerOpts": {
"sourceExts": [ "js", "json", "ts", "tsx", "jsx", "vue"]
}
}
}
Run Code Online (Sandbox Code Playgroud)
eas.json
{
"build": {
"production": {
"releaseChannel": "production"
},
"release": {
"releaseChannel": "production"
},
"development": {
"developmentClient": true,
"distribution": "internal",
"releaseChannel": "staging-dev"
},
"team": {
"releaseChannel": "staging-team",
"distribution": "internal",
"android": {
"buildType": "app-bundle"
}
}
},
"submit": {
"production": {
"ios": {
"appleId": "**************************",
"ascAppId": "1579481834",
"appleTeamId": "**************************",
"sku": "app.myndfulness"
},
"android": {
"serviceAccountKeyPath": "./google-services.json",
"track": "internal"
}
}
},
"cli": {
"version": ">= 0.35.0",
"requireCommit": true
}
}
Run Code Online (Sandbox Code Playgroud)
小智 2
我认为你需要与 Sentry 集成才能跟踪你的 JS 错误,因为白屏发生是因为你的 JS 上有一个中断
或者也许您可以使用https://github.com/a7ul/react-native-exception-handler并发出错误警报,以便能够知道是什么导致您的应用程序白屏
| 归档时间: |
|
| 查看次数: |
2472 次 |
| 最近记录: |