图像选择器显示图像列表,但无法从列表中拾取图像。我已经向plist文件添加了相机权限。它与ios 12.6在实际设备中工作。我在Mac M1机器上使用ios 14模拟器。
这是m1硅上的错误,你必须降级你的模拟器iOS 13.7https://developer.apple.com/forums/thread/110911
尝试升级到Xcode 13.1。它对我有效。
将其添加到您的info.plist 中
<key>NSPhotoLibraryUsageDescription</key>
<string>Need to upload image</string>
<key>NSCameraUsageDescription</key>
<string>Need to upload image</string>
<key>NSMicrophoneUsageDescription</key>
<string>Need to upload image</string>
在dict下的信息plist文件中添加这一行将有助于确保plist verion 1.0,现在也可以进入ios verion应该为10的pod文件。
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs access the photo to use for order.</string>