xcode 带有 React Native 的 CocoaPods:`ld:找不到用于 -lReact` 的库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34696438/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
CocoaPods with React Native: `ld: library not found for -lReact`
提问by Adamski
I am integrating React Native with an existing iOS app. I have followed the guide on integrating with an existing app.
我正在将 React Native 与现有的 iOS 应用程序集成。我遵循了与现有应用程序集成的指南。
After reading some other posts on the subject, I have tried:
在阅读了有关该主题的其他一些帖子后,我尝试过:
- Setting the architecture in the Pod build to match the project settings in Xcode
- Adding / moving the Pod build above the project build in the Scheme
- 在 Pod 构建中设置架构以匹配 Xcode 中的项目设置
- 在 Scheme 中的项目构建之上添加/移动 Pod 构建
Is there anything else I may need to check?
还有什么我可能需要检查的吗?
回答by Navdeep Singh
Make sure you open xcworkspace file generated by pod install instead of your old xcodeproj file and then select the right scheme
确保打开由 pod install 生成的 xcworkspace 文件而不是旧的 xcodeproj 文件,然后选择正确的方案