我把我的离子应用程序从科多瓦转移到电容器。当我测试相机(用cordova插件)时,我有这个错误。所以我也用电容相机测试,我也有同样的错误。
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'main thread only'
terminating with uncaught exception of type NSException
(lldb) 发布于 2022-05-31 12:23:58
我找到了解决办法
我把这个添加到info.plist中
<key>NSPhotoLibraryUsageDescription</key>
<string>This app needs access to your Photo Library for uploading files</string>
<key>NSCameraUsageDescription</key>
<string>This app needs access to your Camera to allow you to take and upload a picture.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Here write description why you accessing photo library</string>https://stackoverflow.com/questions/72097076
复制相似问题