my app's delegate starts the location manager on applicationDidFinishLaunching. it briefly displays the screen i would be expecting to see, briefly shows the dialog box that asks the user if they're ok with using the location manager, and then it crashes with no application console message (on the device console i can see some launchd messages but i assume those are only indicating that the app has crashed). however everything works as expected if:
- i put a breakpoint on the last line of applicationDidFinishLaunching, accept the location manager usage, and then continue from the breakpoint
- i approved the location manager usage twice, so the app is not asking for permission anymore
- i disable the location manager in the device's settings -> general
so practically the only time it crashes is when it needs the user to accept the usage of the location manager. (which is why i didnt discover it for a very long time). i have a feeling this started to happen since i added a mapview object in my app, but this is unconfirmed. anybody has any ideas for a workaround?
- i put a breakpoint on the last line of applicationDidFinishLaunching, accept the location manager usage, and then continue from the breakpoint
- i approved the location manager usage twice, so the app is not asking for permission anymore
- i disable the location manager in the device's settings -> general
so practically the only time it crashes is when it needs the user to accept the usage of the location manager. (which is why i didnt discover it for a very long time). i have a feeling this started to happen since i added a mapview object in my app, but this is unconfirmed. anybody has any ideas for a workaround?