【发布时间】:2019-06-25 00:20:37
【问题描述】:
我有一个简单的 React Native 应用程序,我一直在 Android 上进行测试,现在想在 iOS 上进行测试。它正在使用 React Navigation。
我运行了npm run ios,但出现以下错误:
info In file included from
/Users/rbbit/reactnative/testproj1/ios/testproj1/main.m:10:
/Users/rbbit/reactnative/testproj1/ios/testproj1/AppDelegate.h:9:9: fatal error: 'UMReactNativeAdapter/UMModuleRegistryAdapter.h' file not found
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
info 1 error generated.
我打开了 XCode,但基本上得到了相同的消息,没有其他可以帮助我调试的。
我确实看到有一个名为 react-native-adapter (https://github.com/expo/expo/tree/master/packages/%40unimodules/react-native-adapter) 的包,但是我很犹豫是否要安装它,因为我遵循了有关如何包含 react-navigation 的说明并且没有提及,假设这是相关的。
此外,该页面显示If you are using react-native-unimodules, this package will already be installed and configured!,并且react-native-unimodules 已经在我的依赖项中。
关于如何解决这个问题的任何指示?谢谢!
【问题讨论】:
标签: ios react-native