Pergunta

I have an app which uses, the Event Kit to sync some events with the iOS calendar. This works fine with one exception. If the app is in the background/suspended and the privacy setting for the calendar are changed (settings > privacy > calendar > my app ) the app crashes. This happens even if the classes which use the EkEventKit haven't been used yet

I have only run it in the iOS simulator so far but Xcode dose not give much useful information only that the app is sent SIGKILL.

Could someone suggest what could be causing this or how I could find out

Foi útil?

Solução

It's actually not a crash, although it appears that way when you are testing on your device through xCode. If you unplug your device and do some further testing, you'll notice that when you return to your app after changing the privacy setting, the app is killed as soon as the privacy setting has changed, and it relaunches when you return to it.

I'm not sure about simulator, but I'm guessing it's the same. (The app I'm developing uses Calendar, so I'm forced to do all of my testing on the device itself)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top