在config.xml下添加:
<platform name="ios"> <config-file parent="NSCameraUsageDescription" target="*-Info.plist"> <string>需要访问您的相机</string> </config-file> <config-file parent="NSPhotoLibraryAddUsageDescription" target="*-Info.plist"> <string>需要添加到您本地</string> </config-file> <config-file parent="NSPhotoLibraryUsageDescription" target="*-Info.plist"> <string>需要访问您的相册</string> </config-file> </platform>
原文:https://www.cnblogs.com/johnjackson/p/14387587.html