delba / Permission

A unified API to ask for permissions on iOS
MIT License
2.91k stars 323 forks source link

Crash when changing permissions in iOS Settings app #30

Closed mathiasgithub closed 8 years ago

mathiasgithub commented 8 years ago

If I set a closure as below, then open the iOS Settings app and change the permission there, the app will crash

permission.request { status in switch status { case .Authorized: print("authorized") case .Denied: print("denied") case .Disabled: print("disabled") case .NotDetermined: print("not determined") } }

delba commented 8 years ago

You have to use a real device, not the simulator for this :/

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html

mathiasgithub commented 8 years ago

I did get this crash on both the simulator and testing on device

delba commented 8 years ago

After install the app on a device, click "Stop the running scheme or application" in Xcode and then reopen your app. Unfortunately, you won't have access to the log messages...

mathiasgithub commented 8 years ago

Got it. Thanks a lot!

KittenYang commented 7 years ago

@mathiasgithub @delba Still crash, I am doubtful that it's the iOS bug.

cooliopas commented 7 years ago

@KittenYang is right. Its crashing on device, even stopping the app on Xcode and reopening.

cooliopas commented 7 years ago

This is what I get on device logs:

Quitting application (APP BUNDLE ID HERE) in response to privacy settings change

Its not a crash, but a SIGKILL

Its not "Permission" fault at all.