在ios模拟器上运行我的应用程序时,我遇到以下错误This version of the Expo app is out of date. Uninstall the app and run again to upgrade.

下面是我如何try 升级expo cli,但没有成功

  1. 一百

  2. 一百

  3. npm uninstall expo-cli
  4. npm cache clean --force
  5. yarn add global expo-cli

这是一个应用程序.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模拟器,而不在ios模拟器上显示错误消息as there was a problem loading the requested app. The experience you requested requires a newer version of the Expo Client app.

推荐答案

问题在于iOS模拟器/设备上的应用程序已过时,与您运行的当前版本的Expo不兼容.

从iOS模拟器中删除Expo应用程序,它应该可以工作,如果你在设备上,也可以安装最新的更新

https://github.com/expo/expo/issues/1595

一种方法是在模拟器打开的情况下达到Erase All Content and Settings.然后重新运行npm start,Expo应用程序将再次安装在此设备模拟器上.

enter image description here

React-native相关问答推荐

复活的夹子在Panguesture上崩溃

React Native 在每个页面加载时调用数据库

expo 日历应用因权限问题而崩溃

什么是 expoClientId?

ReactJS toLowerCase 不是一个函数

你如何在生产模式下运行 react-native 应用程序?

如何在 mac 上卸载 react-native-cli?

如何以编程方式在 react-native 中截屏

React-Native 按钮居中对齐

在 react-native 元素中更改 android 和 ios 的入口文件路径

react-native 从右到左

使用 create-react-native-app 创建了一个应用程序,如何将其发布到 Google Play store ?

我们如何将 Firebase Analytics 与基于 expo 的 react-native 应用程序一起使用

动画属性启动时 ReactNative ActivityIndi​​cator 不显示 false

React Native ScrollView 在 iOS 上从底部被截断

react-navigation模式高度

react-native 中的倒数计时器

React Native如何将this.setState更改传递给父级

Android 是否支持 React Native 的 LayoutAnimation?

如何从react-native应用程序打开外部应用程序?