ios - 创建 React Native 库并将 CocoaPods 添加到该库

标签 ios react-native cocoapods

我的简单问题是如何将 CocoaPods 添加到我们创建的 React Native 库中。创建React Native库的方法在这个链接https://facebook.github.io/react-native/docs/native-modules-setup 。我读过这篇https://shift.infinite.red/beginner-s-guide-to-using-cocoapods-with-react-native-46cb4d372995将 CocoaPod 添加到 React Native 项目。 但是,如果按照 React Native 库的这些步骤,我在运行后会出现以下错误。

error: Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening HelperProject.xcworkspace

还有其他方法可以将 CocoaPod 添加到 React Native 库吗?

最佳答案

解决办法在这里

先删除ios/build文件夹然后运行

sudo react-native run-ios

关于ios - 创建 React Native 库并将 CocoaPods 添加到该库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55278837/

相关文章:

ios - 如何在 Swift 中围绕其起始值上下移动 SKSpriteNode?

ios - 在 Swift 3 中使用 SnapKit 以编程方式修改约束以删除一个 UIView

ios - 尝试访问 PFUser 子类的动态属性时出错

ios - 为什么 pod install 会改变原来的 Podfile 和 xcode 工作区?

ios - Swift:如何实现 CVCalendar

ios - Tableview 仅在我离开 View 并返回后更新

node.js - React Native 找不到模块

ios - 如何更改Tabbar中图标的颜色? ( react native 导航)

reactjs - 如何在 React Native 中垂直居中表单

macos - 如何使用 Rosetta 在 Mac 上解决 'react-native' 和 cocopods 的错误