未找到 RCT 链接管理器文件 [英] RCT Linking Manager file not found
问题描述
我想使用本机库 RCTLinkingManager
,它显示在Libraries > RCTLinkingManager.xcodeproj"下的菜单中.
I want to use react native library RCTLinkingManager
which shows up in menu under "Libraries > RCTLinkingManager.xcodeproj".
但是,当我像这样将它添加到 iOS/AppDelegate.m
时:
However when i add it to iOS/AppDelegate.m
like so:
#import "RCTLinkingManager.h"
// @implementation ...
构建失败,找不到RCTLinkingManager.h"文件.我试图清理产品并清理构建,但没有运气.
Build fails with 'RCTLinkingManager.h' file not found. I tried to clean the product and clean build with no luck.
推荐答案
您必须将 $(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS
添加到您的标题搜索"路径"在您项目的构建配置中.您可以在在官方 React 文档中找到更多信息
You have to add $(SRCROOT)/../node_modules/react-native/Libraries/LinkingIOS
to your "Header Search Paths" in the Build Config of your project. You can find more info on the official React documentation
这篇关于未找到 RCT 链接管理器文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!