在 ios 模拟器上运行我的应用程序时,出现以下错误 This version of the Expo app is out of date. Uninstall the app and run again to upgrade.
这是我尝试升级 expo-cli 但未成功的方式
npm update -g
yarn add global expo-cli
npm uninstall expo-cli
npm cache clean --force
yarn add global expo-cli
这是 app.json
"expo": {
"name": "firebase-reacte-native",
"slug": "firebase-reacte-native",
"privacy": "public",
"sdkVersion": "32.0.0",
"platforms": [
....
这是 package.json
"dependencies": {
"expo": "^32.0.0",
"react": "16.5.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz"
}
我想要做的就是在 ios 模拟器上运行没有错误消息的 ios 模拟器 there was a problem loading the requested app. The experience you requested requires a newer version of the Expo Client app.
原文由 user10398929 发布,翻译遵循 CC BY-SA 4.0 许可协议
问题与 iOS 模拟器/设备上的应用程序有关,该应用程序已过时并且与您运行的当前版本的 Expo 不兼容。
从 iOS 模拟器中删除 Expo 应用程序,它应该可以工作,或者如果你在设备上安装最新的更新
https://github.com/expo/expo/issues/1595
一种方法是打开模拟器是
Erase All Content and Settings
。然后重新运行 npm start ,Expo App 将再次安装到这个设备模拟器上。