Oleksandr Matrosov
Oleksandr Matrosov

Reputation: 27113

Xcode performance issue when compiling Swift

I have run app on simulator, then stop it and then I clicked Run button one more time.

I have not modified any files in the project just rerun it. But it takes the same time for compiling Swift files even in case I already built a project (5 - 7 mins).

What can be a problem?

Upvotes: 2

Views: 89

Answers (1)

itsji10dra
itsji10dra

Reputation: 4675

Hit Run button then,

  1. Goto "Report Navigator", within left panel of Xcode,

enter image description here

  1. Select current build,

enter image description here

  1. After selecting, within center panel you can see files getting complied one by one and you can identify which particular file is taking long time for compiling.

enter image description here


Or else if you wish to know, which particular function in your code is taking long time, I will advice you to go here.

Upvotes: 2

Related Questions