【问题标题】:Having trouble removing a library that is linked and added with yarn无法删除与纱线链接和添加的库
【发布时间】:2019-08-09 15:53:14
【问题描述】:

所以我的项目正在使用react native image picker,我正在切换到不同的库以选择多张照片。

所以我首先运行来删除图像选择器库: react-native unlink react-native-image-picker 给出一条成功的消息,然后我运行 yarn remove react-native-image-picker.

它们似乎都有效。

现在,当我运行模拟器时,我收到以下错误消息: error: Build input file cannot be found: '../../../react-native-image-picker/ios/ImagePickerManager.m

error Failed to build iOS project. We ran xcodebuild command but it exited with error code 65

我正在使用 cocoapods。我有一种重要的感觉。 有什么建议么?

【问题讨论】:

  • 你必须将它从 Pod 中移除。
  • @SanyamJain 我在 podfile 中根本看不到它。有没有具体的方法来解决这个问题?

标签: reactjs react-native hyperlink yarnpkg


【解决方案1】:

按照以下步骤操作:

  1. react-native unlink react-native-image-picker
  2. yarn remove react-native-image-picker
  3. cd ios && rm -rf Pods Podfile.lock && pod install

这应该可行。

【讨论】:

  • 所以这个答案有效,但我在 Android 上遇到错误。 Android resource linking failed
  • 不得不从 mainapplication.java 文件和 androidmanifest 中删除它,但它现在可以在 android 上运行!再次感谢!
猜你喜欢
  • 2018-07-18
  • 1970-01-01
  • 1970-01-01
  • 2021-11-09
  • 1970-01-01
  • 2020-01-18
  • 1970-01-01
  • 2020-07-31
  • 2015-03-27
相关资源
最近更新 更多