Reputation: 433
My Simple question is that how to add CocoaPods to React Native Library created by us. The method of creating React Native library is in this link https://facebook.github.io/react-native/docs/native-modules-setup. I have read this https://shift.infinite.red/beginner-s-guide-to-using-cocoapods-with-react-native-46cb4d372995 to add CocoaPod to React Native Project. But if follow the these steps for React Native Library i have the following error after running.
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
Is there another method to add CocoaPod to React Native library?
Upvotes: 2
Views: 961
Reputation: 1616
Here is the solution
first delete ios/build folder then run
sudo react-native run-ios
Upvotes: 2
Reputation: 1099
If you get error like the image, Only run your command with sudo
at the beginning.
Like:
sudo react-native run-ios
then enter your password.
Upvotes: 0