ios - 应用程序在 iOS 10 上终止,恕不另行通知

标签 ios background crash refresh ios10

我开发了一款具有后台刷新功能的 iOS 应用。 我重新编译了该应用程序以针对 iOS 10。 从那时起,我的应用程序在挂起状态下定期静默终止,没有任何通知(没有调用 willTerminate,没有 jetsam 事件,没有崩溃日志)。

它曾经在 iOS 9 上运行良好。 我已升级到 10.0.2,但看不到与 10.0.1 的真正区别。

有人遇到同样的问题吗?或建议我应该在哪里调查?没有任何报告,我完全瞎了,没有更多的想法。

如果没有后台刷新,我的应用程序有一个主要功能无法正常工作。

非常感谢您的帮助。

菲利普。

最佳答案

iOS 10 中 iOS 处理权限的方式发生了一些变化。如果 info.plist 不包含适当的 key ,应用程序将在 iOS 10 上无提示地崩溃。

https://developer.apple.com/library/content/releasenotes/General/WhatsNewIniOS/Articles/iOS10.html

You must statically declare your app’s intended use of protected data classes by including the appropriate purpose string keys in your Info.plist file. For example, you must include the NSCalendarsUsageDescription key to access the user’s Calendar data. If you don’t include the relevant purpose string keys, your app exits when it tries to access the data.

有关需要进行的 info.plist 更改的更多信息,请参见此处: https://blog.xamarin.com/new-ios-10-privacy-permission-settings/?utm_medium=social&utm_campaign=blog&utm_source=facebook&utm_content=ios10-privacy

关于ios - 应用程序在 iOS 10 上终止,恕不另行通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39796478/

相关文章:

ios - Facebook 应用程序包标识符

c# - 从颜色中去除透明度

CSS 背景颜色分层渐变

windows - 结构化异常处理程序在几乎相同的机器上以不同的方式捕获接近零的EIP陷阱?

iphone - 阻止 iOS 在进入后台之前截取应用程序的屏幕截图

ios - 使用SpriteKit节点纹理中的视频在SceneKit中显示3D模型

java - Graphics.clearRect 和 Graphics.drawRect 之间有什么区别?

android - 获取 android.content.res.Resources$NotFoundException : Resource ID #0x0? 时如何确定崩溃发生的位置

java - 空白字段,java导致应用崩溃

ios - 防止 Xamarin(/Mono?) 在 iOS 上进行优化