react-native-image-picker上傳視頻報-您沒有權限
錯誤原因:
1、插件問題,目前還未修復,只能手動更改源碼
解決方法:
在XCode中找到 react-native-image-picker 中的 ImagePickerManager.m文件,將
[fileManager moveItemAtURL:videoURL toURL:videoDestinationURL error:&error];
更改爲
[fileManager copyItemAtURL:videoURL toURL:videoDestinationURL error:&error];
--------大功告成--------
借鑑於這篇博客:原文博客入口