简体   繁体   中英

My app crashes when it go back foreground only in iOS 10

The question is:

  1. Every time the app go back foreground it will crash on iOS 10
  2. The app works fine on other version iOS

Before I asked the question here,I had try:

  1. Search answers on google and this site
  2. Go to the info.plist and add NSCalendarsUsageDescription
  3. Turn on the background modes
  4. Delete another app with the same product name but different bundle ID on my iPhone6
  5. Check "Zombie objects" and "Malloc Scribble" in Edit Scheme's Memory Management.

The crash results I can see is:

  1. The console just show "(lldb)"
  2. There is a breakpoint with a message:

Thread 27:EXC_BreakPointCode=1,subcode=0*10121

I had try my best to make this question more clear.What confused me most is that the app just crash on iOS10.

Hope someone could help me.

may be it is related to any privacy issue if you accessing any of this framework

Calendar , Contact , Reminder , Photo , Bluetooth Sharing , Microphone , Camera , Location , Heath , HomeKit , Media Library , Motion , CallKit , Speech Recognition , SiriKit , TV Provider

so you need to add the privacy key in plist in IOS 10

so here is the link which will help full for you. LINK

最后,我发现原因是有一个旧版本的3部分不适合iOS10。将旧版本的3部分更新为最新版本后,该应用程序运行正常。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM