ios React Native rnpm unlink 库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38214078/
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
React Native rnpm unlink library
提问by omriki
Recently added this library: https://github.com/ivpusic/react-native-image-crop-pickerbut after trying to debug the issues that I get on build, I saw that this library is unavailable for linking through rnpm and only through cocoapods. Is there any way to unlink the library using rnpm and then install cocoa pods and do it that way? I don't want to create some conflicts between the two.
最近添加了这个库:https: //github.com/ivpusic/react-native-image-crop-picker但在尝试调试我在构建时遇到的问题后,我发现这个库无法通过 rnpm 进行链接,并且只能通过可可豆。有什么方法可以使用 rnpm 取消链接库,然后安装可可豆荚并这样做吗?我不想在两者之间制造一些冲突。
The issue I'm getting with the library is 'RCTHBridgeModule.h file not found.'
and the creator of the library said he currently does not support rnpm.
我在图书馆遇到的问题是,图书馆'RCTHBridgeModule.h file not found.'
的创建者说他目前不支持 rnpm。
回答by CommonSenseCode
Very easy
好简单
react-native unlink lib-name-example
npm uninstall --save lib-name-example
react-native unlink lib-name-example
npm uninstall --save lib-name-example
回答by apurv
Try the following:
请尝试以下操作:
rnpm unlink react-native-image-crop-picker
from root project directoryManually install react-native-image-crop-pickerfor iOS using these instructions(make sure you do the
pod install
step)Manually install react-native-image-crop-pickerfor Android using these instructions
Clean + Build :)
回答by user3142063
You dont need to rnpm link simply add ImageCropPicker.xcodeproj from node modules it will be in ios folder just drag it and drop to your libraries folder in xcode , then after go to build phase and add libImageCropPicker.a inside LinkBinary with Libraries folder that all you need to do for non Coca pods users
您不需要 rnpm 链接,只需从节点模块添加 ImageCropPicker.xcodeproj 它将在 ios 文件夹中,只需将其拖放到 xcode 中的库文件夹,然后进入构建阶段并在 LinkBinary 和 Libraries 文件夹中添加 libImageCropPicker.a你需要为非 Coca pods 用户做