IOS: MKMapView loads very slowly with debug configuration

So, I have a project with MKMapView. The problem is that whenever I launch MKMapView in my project, it will hang the whole application for about 10-15 seconds.

I triple checked everything, the problem is not on the network in the main thread, or there are too many annotation views or something like that, and this also happens if I do not add mapview, only init it.

The strange thing is that this seems to only happen if I build an application from xcode. If I archive the application and install it, the map loads quickly.

This led me to believe that there might be an incorrect configuration somewhere in the debug configuration or project configuration, but after checking the circuit settings, I came up empty.

Do you have any suggestions on what might lead to this behavior?

+4
source share
2 answers

I had the same problem:
I solved it by removing all breakpoints (event inactive)
In Xcode, open the Breakpoints tab and select Delete Breakpoints

+2
source

no, if you use a development profile, it takes time to load because it loads all ur breakpoints, so don’t worry, and if you use your preparation profile, it will work quickly (or), if you archive it, it will work fast.

0
source

Source: https://habr.com/ru/post/1484787/


All Articles