Reputation: 4045
So I have a project with an MKMapView in it. The problem is that whenever, or wherever in my project I init an MKMapView it will hang the whole app for about 10-15 seconds.
I triple checked everything, the problem is not networking on the main thread, or too many annotation views or anything like it and it also happens if I don't add the mapview, only init it.
The weird thing is that this seem to be only happening if I build the app from xcode. If I archive the app and install it, the map loads quickly.
This has lead me to believe that there could be a misconfiguration somewhere in the debug configuration or project settigns but after checking the scheme settings I came up empty.
Do you guys have a suggesting about what could cause such a behavior?
Upvotes: 4
Views: 1640
Reputation: 28727
I had the same problem:
I solved it by deleting all breakpoints (event the inactive ones)
In Xcode open the Breakpoints tab sheet, and select "delete breakpoints"
Upvotes: 2
Reputation: 1501
no if you use development profile it takes time to load because it will load all ur breakpoints also so ders nothing to worry and if you use your provisioning profile it will work fast (or) if you archive it it will work fast.
Upvotes: 0