且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

崩溃:com.apple.root.default-qos

更新时间:2023-12-03 18:11:52

我会仔细检查您所有的权限.以我为例,从iOS10开始,您需要权限才能将内容保存到用户的相机胶卷中.在我的应用程序中,我正在显示默认的共享表,每当用户选择保存照片"时,应用程序就会崩溃,并显示以下非常无用的错误消息之一.我添加了

I would double check all your permissions. In my case, starting with iOS10 you need permissions to save stuff to the user's camera roll. In my app, I was showing a default share sheet and whenever a user selected "save photo" the app crashed with one of these very not helpful error messages. I added

<key>NSPhotoLibraryAddUsageDescription</key>
    <string>Allow you to save charts and graphs from the app to your phone.</string>

到我的info.plistclean& run.一切都解决了.

to my info.plist, clean & run. And everything the problem was solved.