-3

enter image description here

I am using AddressBook framework to retrieve contacts. 1st time, alert box appearing with, DON'T ALLOW and ALLOW .

If I go for DON'T ALLOW, later, if I need to synchronise contacts to my app, I go for Settings --> My APP -->> Contacts then, make that switch to Green.

Immediately, my app getting crash.

Crash Log:

#import <UIKit/UIKit.h>
#import "AppDelegate.h"

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil,
    NSStringFromClass([AppDelegate class])); //Thread 1: signal SIGKILL
    }
}

Kindly guide me.

Eric Aya
  • 68,765
  • 33
  • 165
  • 232
McDonal_11
  • 3,607
  • 5
  • 22
  • 50

1 Answers1

0

Yes, that's normal and supposed to happen. When the user changes certain security settings, Apple will automatically "crash" any running application relying on these settings. Would your app handle a change in these settings correctly? Most won't.

gnasher729
  • 47,695
  • 5
  • 65
  • 91