首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >离子:电容器迁移后相机的“NSInternalInconsistencyException”例外

离子:电容器迁移后相机的“NSInternalInconsistencyException”例外
EN

Stack Overflow用户
提问于 2022-05-03 09:03:06
回答 1查看 231关注 0票数 -1

我把我的离子应用程序从科多瓦转移到电容器。当我测试相机(用cordova插件)时,我有这个错误。所以我也用电容相机测试,我也有同样的错误。

代码语言:javascript
复制
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) 
EN

回答 1

Stack Overflow用户

发布于 2022-05-31 12:23:58

我找到了解决办法

我把这个添加到info.plist中

代码语言:javascript
复制
<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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72097076

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档