Why does Xcode keep recompiling my untouched project?

前端 未结 2 1319
再見小時候
再見小時候 2021-02-06 00:26

I have an Xcode 4 workspace with several projects. Everything builds perfectly and works as expected, only Xcode recompiles files too often. If I hit the Build button, wait for

相关标签:
2条回答
  • 2021-02-06 01:14

    Shot in the dark, but do you have external xcode projects linked? XCode may be recompiling because it doesn't know the state of those projects.

    Either way, you can always Run Without Building ^⌘R (control + command + r)

    0 讨论(0)
  • 2021-02-06 01:17

    Are you executing custom scripts that change files before compilation? This will result that xcode will recompile all touched files even though maybe nothing changed. You can turn this off by enabling a checkmark in the run script build phase. This will execute the script only on installation of the app.

    The image below shows the actual checkmark.

    Run script image

    0 讨论(0)
提交回复
热议问题