Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Xcode from rebuilding project every time

I have a Mac OS X app that consists of a main target and a dependent framework. Since enabling code-signing on my Mac OS X app, I noticed Xcode rebuilds the main target every time I run it, even if I haven't touched a line of code.

This is a problem because the dependent framework needs to know the CRC of the main target file. Every time Xcode rebuilds the main target, the CRC changes.

Before code-signing, I would build the main target once, generate the CRC, enter the CRC into my framework code, and build the main target again. Xcode would notice only the framework changed so it wouldn't rebuild the main target.

Any suggestions?

like image 701
simon.d Avatar asked Apr 18 '12 06:04

simon.d


1 Answers

There is actually an option in Xcode to run without building the code first. Select the "Run Without Building" option under Product > Perform Action. The hotkey for this is ctrl + cmd + R.

like image 106
robhasacamera Avatar answered Oct 22 '22 00:10

robhasacamera