反应原生 / 世博会 / iOS 模拟器卡住 @ 'Downloading Javascript Bundle 100%'



一周前,我安装了一个新软件包,我的iOS模拟器工作正常,但突然间它停止加载。由于使用Material Icons和博览会,我遇到了"字体系列"问题。我记得我试图在Xcode上打开这个项目,但发现了一个不需要Xcode的不同解决方案。我想也许在 Xcode 中打开项目可能会做一些事情?

以下是我尝试解决此问题的方法:

  • 删除iOSSIM卡选项中的"内容和设置"。
  • 结帐到大师,从几周前签出到大师
  • 还原所有更改并卸载包
  • 处理CreateChannelAndroidAsync黄色错误(这是唯一弹出但不相关的错误(
  • 清除了所有的事情:守望者监视所有&&rm-rf node_modules/&&npm cache verify &&npm install && npm start -- --reset-cache
  • 删除并重新安装 XCode
  • 分支在我同事的 Mac 上工作正常。
  • 尚未尝试:创建新项目。这就是我接下来要做的。

关于从这里去哪里有什么建议吗?

在我的应用程序中.js,我的 loadAsyncs 函数像这样运行:

async _loadAssetsAsyncIos() {
let loadFonts = await Expo.Font.loadAsync({
Lato: require("./static/fonts/Lato-Regular.ttf"),
LatoBold: require("./static/fonts/Lato-Bold.ttf"),
Arial: require("./static/fonts/arial.ttf"),
'Material Icons': require('@expo/vector-icons/fonts/MaterialIcons.ttf')
});
let loadImages = await preloadImages.map(image => {
Expo.Asset.fromModule(image).downloadAsync()
})
let location = await getDeviceLocation()
Promise.all([ loadFonts, loadImages, location ]).then((resp) => {
return
})
}

我注释掉了let location,在承诺中,我删除了location现在它正在工作!

它与定位服务有关。

最新更新