The problem is that this kind of UIAlert appears before Instruments can take control of the app.
In most cases, applications that ask for location services, access to contacts, access to photos, etc, are violating the Mobile HIG guidelines.
Ask permission at app startup only if your app can’t perform its primary function without the user’s data.
People will not be bothered by this if it’s obvious that the main function of your app depends on knowing their personal information.