我的Mac上运行了一个iphone模拟器.
我有一个.ipa文件,你能告诉我如何在模拟器上安装它?
我一直在关注本教程https://www.raywenderlich.com/126063/react-native-tutorial
并在遇到问题后决定从头开始。
我react-native init PropertyFinder在 Xcode 中运行并打开了该项目。当我编译并运行它时,它按预期在模拟器中打开,显示:
但不久之后屏幕消失并显示:
错误文本是:
Unable to execute JS call: __fbBatchedBridge is undefined
Run Code Online (Sandbox Code Playgroud)
它在不到 24 小时前还在工作,所以不确定发生了什么。Fwiw,我完全删除了该项目并重新开始。
这个答案(无法执行 JS 调用:__fbBatchedBridge 未定义)建议检查它是否通过网络获取代码。这似乎不是问题。
App Delegate中的完整代码如下:
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS …Run Code Online (Sandbox Code Playgroud)