[巨大的更新]
有人给我发了这个,为了用 React Native 安装 fbsdk 更容易阅读:https
://developers.facebook.com/docs/react-native/getting-started-ios
但是,问题是还是一样:
Use of undeclared identifier 'UIUserInterfaceIdiomTV'
我猜这是来自 CocoaPods 提取的内容的错误,因为我能够通过简单地删除相同的 UIUserInterfaceIdiomTV案例(它曾经在一个开关中)来使示例示例工作。
但是,按照指南中的每一步并最终删除 UIUserInterfaceIdiomTV,我在自己的项目中遇到了新的编译问题:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKAppEvents", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_RCTRootView", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
如果有人可以提供帮助...
感谢您的帮助!