本文介绍了更改隐私设置时被 SIGKILL 杀死的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 iOS 应用使用 ALAssetsLibrary 访问用户的照片.当我更改应用程序的隐私设置(设置→隐私→照片)时,应用程序被系统杀死(SIGKILL).这是一个错误吗?

My iOS app accesses the user's Photos with ALAssetsLibrary. When I change the privacy settings for the app (Settings → Privacy → Photos), the app gets killed by system (SIGKILL). Is this a bug?

推荐答案

我认为这是一个错误,或者至少是记录不充分和意外的行为.但它不会崩溃,只是被迫重新启动.您将收到 SIGKILL 消息,但没有崩溃日志.

I think it is a bug or at least poorly documented and unexpected behavior. But it does not crash it is just forced to restart. You will get a SIGKILL message but no Crash log.

如果您是注册的苹果开发者,您可以查看他们的论坛以了解有关此问题的讨论

If you are a registered apple developer you can check their forums for discussions about this issue

我不知道如何防止这种行为,但请随时向苹果提交错误报告.据传他们使用错误重复作为衡量错误严重程度的一种方式.也许您可以存储您的应用程序状态,以便在重新启动时恢复它.

I don't know of any way how to prevent this behavior but feel free to file a bug report with apple. It is rumored they use bug duplicates as a way of measuring the bug severity.Maybe you can store your app state in order to restore it when it restarts.

这篇关于更改隐私设置时被 SIGKILL 杀死的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 12:01