无法在 ios 11.4 模拟器上打开 Expo Go

Cannot open Expo Go on ios 11.4 simulator

各位。

我在使用 expo 开发我的第一个 React 本机应用程序时遇到了问题。我正在使用 Xcode 模拟器在 ipad 上进行测试。它在 iPad 6 模拟器和 iOS 15.0 上工作正常,而不是在 iPad 6 模拟器和 iOS 11.4 上当我单击模拟器上的 Expo Go 图标打开应用程序时,它在没有 运行 模拟器上的应用程序的情况下立即打开和关闭。 有人知道吗?

谢谢。

XCode Simulator Version: 13.1 (970)

package.json:

"dependencies": {
    "@react-native-community/hooks": "^2.8.1",
    "@react-native-masked-view/masked-view": "0.2.5",
    "@react-navigation/material-top-tabs": "^6.0.6",
    "@react-navigation/native": "^6.0.6",
    "@react-navigation/native-stack": "^6.2.5",
    "@react-navigation/stack": "^6.0.11",
    "@reduxjs/toolkit": "^1.7.1",
    "expo": "~43.0.2",
    "expo-av": "~10.1.3",
    "expo-device": "~4.0.3",
    "expo-screen-orientation": "~4.0.3",
    "expo-status-bar": "~1.1.0",
    "react": "17.0.1",
    "react-dom": "17.0.1",
    "react-native": "0.64.3",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-pager-view": "5.4.6",
    "react-native-safe-area-context": "3.3.2",
    "react-native-screens": "~3.8.0",
    "react-native-tab-view": "^3.1.1",
    "react-native-web": "0.17.1",
    "react-redux": "^7.2.6",
    "redux": "^4.1.2",
    "redux-devtools-extension": "^2.13.9",
    "redux-thunk": "^2.4.1"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@types/react": "~17.0.21",
    "@types/react-native": "~0.64.12",
    "typescript": "~4.3.5"
  }

所以你使用 expo 43 SDK 这就是为什么

iOS 15完全支持; iOS 11 支持已被删除。 随着 iOS 15 的发布,我们在 Expo SDK 中放弃了对 iOS 11 的支持。 SDK 43 支持 iOS 12 及更高版本。

来源 - https://blog.expo.dev/expo-sdk-43-aa9b3c7d5541