Xcode not doing incremental builds when compiling for physical device

When compiling my project for a physical device, Xcode does not reuse the build cache but instead recompiles every file. When compiling for a simulator target instead, Xcode properly uses the build cache, and incremental builds are lightning fast.

Is there a configuration I can check to enable incremental builds for physical devices, too?

Answered by thomastapeit in 701091022

Okay, I just "solved" this by deleting Xcode's entire DerivedData folder.

sudo rm -rf ~/Library/Developer/Xcode/DerivedData

(yes, that seems to require a sudo).

For some reason, it works again now. Hope this helps someone who's looking into this in the future.

Accepted Answer

Okay, I just "solved" this by deleting Xcode's entire DerivedData folder.

sudo rm -rf ~/Library/Developer/Xcode/DerivedData

(yes, that seems to require a sudo).

For some reason, it works again now. Hope this helps someone who's looking into this in the future.

Xcode not doing incremental builds when compiling for physical device
 
 
Q