应用程序终止,恕不另行通知 iOS 10
App terminated without notice on iOS 10
我为 iOS 开发了一款具有后台刷新功能的应用程序。
我重新编译了应用程序以 iOS 10 为目标。
从那以后,我的应用程序在挂起状态下定期静默终止,没有任何通知(没有调用 willTerminate,没有 jetsam 事件,没有崩溃日志)。
它曾经在 iOS 9 上运行良好。
我已经升级到 10.0.2,但发现与 10.0.1 没有真正的区别。
有人遇到同样的问题吗?或建议我应该在哪里调查?没有任何报告,我完全瞎了,没有更多的想法。
如果没有后台刷新,我的应用程序有一个主要功能无法使用。
非常感谢您的帮助。
菲利普
iOS 在 iOS 10 中处理权限的方式发生了一些变化。如果 info.plist
不包含适当的密钥,应用程序将在 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 为目标。 从那以后,我的应用程序在挂起状态下定期静默终止,没有任何通知(没有调用 willTerminate,没有 jetsam 事件,没有崩溃日志)。
它曾经在 iOS 9 上运行良好。 我已经升级到 10.0.2,但发现与 10.0.1 没有真正的区别。
有人遇到同样的问题吗?或建议我应该在哪里调查?没有任何报告,我完全瞎了,没有更多的想法。
如果没有后台刷新,我的应用程序有一个主要功能无法使用。
非常感谢您的帮助。
菲利普
iOS 在 iOS 10 中处理权限的方式发生了一些变化。如果 info.plist
不包含适当的密钥,应用程序将在 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