Why does Xcode keep recompiling my untouched project?

前端 未结 2 1328
再見小時候
再見小時候 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: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

提交回复
热议问题