在我的情况下,这个问题与ExpoKit
项目有关,在 expoKit 项目中手动链接应该与在纯 React Native 项目中不同。
这是第一个变体如何做到这一点的示例:
1.cd 进入你的项目并确保你有一个podfile
(pod install)
2.你会想要打开你的 finder 然后打开project-name/ios/Pods/Headers/Public
3.你的 Xcode 想要React/RCTPush…
这样拖放 React 文件夹 2.^ 到你的标头搜索路径(因为此处列出了 RCTPushNotificationManager.h)。
4. 您可以通过打开Xcode
并单击左上角的项目然后打开库文件夹然后打开来找到您的标题搜索路径RCTPushNotification.xcodeproj.
5. 单击Build Setting
并在搜索栏中键入标题搜索路径。然后打开它并拖放 3. ^ over。
这是第二个变体:
在 Podfile 中添加您需要的库,在我的情况下是 RCTPushNotification:
pod 'React',
:path => "../node_modules/react-native",
:inhibit_warnings => true,
:subspecs => [
"Core",
"ART",
"RCTPushNotification"]
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句