ios 配置里的 RCTLinkingManager.h没这个呀,加上报错。。。。
TrustDec opened this issue · comments
Trust commented
在你工程的AppDelegate.m文件中添加如下代码:
#import "../Libraries/LinkingIOS/RCTLinkingManager.h"
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
}
Trust commented
#import "../Libraries/LinkingIOS/RCTLinkingManager.h"
这个文件从哪里来?
chimumao commented
同样的问题。搜索完改成下面代码解决。
#import "../../node_modules/react-native/Libraries/LinkingIOS/RCTLinkingManager.h"