删除与 yarn 链接和添加的库时遇到问题

Having trouble removing a library that is linked and added with yarn

所以我的项目正在使用 react native image picker,我正在切换到另一个库以便 select 多张照片。

所以我要先通过 运行ning 删除图像选择器库: 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

我正在使用可可足类动物。我有一种感觉,这很重要。 有什么建议么?

按照以下步骤操作:

  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

这应该有效。