react native dyld: Library not loaded: @rpath/QBImagePicker.framework

react native 在iOS上,模拟器运行没事,真机运行报错。

报错信息如下:

dyld: Library not loaded: @rpath/QBImagePicker.framework/QBImagePicker
Referenced from: /var/containers/Bundle/Application/18C56D78-3FF0-4ABC-97C3-BC7422E296F1/NaliCollage.app/NaliCollage
Reason: image not found

引起原因是引用了:“react-native-image-crop-picker”

解决办法:
在Target下点击General,选择Embedded Binaries单击+并添加RSKImageCropper.framework和QBImagePicker.framework
如图


image.png

希望能够帮助大家!

你可能感兴趣的:(react native dyld: Library not loaded: @rpath/QBImagePicker.framework)