运行npx expo run:ios时出现NO bundle URL Present错误求助
求助:Expo iOS真机运行出现"NO bundle URL Present"错误未解决
执行npx expo run:ios --device 'mydevice'命令时,遇到了**"NO bundle URL Present"**错误。试过StackOverflow上各类常规解决方案,甚至删除ios文件夹后重新执行pod install,问题依旧存在。现寻求替代解决方案或有相同经历者的帮助。
我的依赖配置
{ "dependencies": { "@expo/config": "^8.1.1", "@expo/metro-config": "^0.10.0", "@expo/vector-icons": "^14.0.0", "@react-native-async-storage/async-storage": "1.21.0", "@react-native/metro-config": "^0.75.0-main", "@react-navigation/bottom-tabs": "^6.5.8", "@react-navigation/drawer": "^6.6.6", "@react-navigation/native": "^6.1.7", "@react-navigation/stack": "^6.3.17", "@realm/react": "^0.6.2", "@rneui/themed": "^4.0.0-rc.8", "expo": "~50.0.7", "expo-localization": "~14.8.3", "expo-status-bar": "~1.11.1", "expo-system-ui": "~2.9.3", "i18next": "^23.7.20", "metro-source-map": "^0.80.5", "react": "18.2.0", "react-i18next": "^14.0.1", "react-native": "0.73.6", "react-native-dropdown-picker": "^5.4.6", "react-native-element-dropdown": "^2.10.4", "react-native-gesture-handler": "~2.14.0", "react-native-get-random-values": "^1.11.0", "react-native-paper": "^5.12.3", "react-native-reanimated": "~3.6.2", "react-native-safe-area-context": "^4.8.2", "react-native-screens": "~3.29.0", "react-native-uuid": "^2.0.2", "realm": "^12.6.2", "styled-components": "^6.1.8", "uuid": "^9.0.1" }, "devDependencies": { "@babel/core": "^7.20.0", "@types/react": "~18.2.14", "@types/react-native": "^0.73.0", "@types/uuid": "^9.0.8", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "babel-plugin-module-resolver": "^5.0.0", "eslint": "^8.50.0", "eslint-config-universe": "^12.0.0", "metro-config": "^0.80.8", "metro-react-native-babel-preset": "^0.77.0", "prettier": "^3.2.5", "react-native-dotenv": "^3.4.11", "typescript": "^5.3.3" } }
metro.config.js配置
/* eslint-disable no-undef */ // Learn more https://docs.expo.io/guides/customizing-metro const { getDefaultConfig } = require('expo/metro-config'); module.exports = getDefaultConfig(__dirname);
内容的提问来源于stack exchange,提问作者Christian Guimarães
相关产品推荐
相关产品推荐

