How would I compare the differences between two targets of the same project in Xcode? I'd like to see the differences in the source, and perhaps build-info too.
-
1I've just finished ruby tool to compare list of files in Xcode targets. Hope it may help you. https://github.com/smirn0v/xcode-same-targets – Alexander Smirnov Jan 18 '14 at 20:41
-
Funny- I have a similar project on node http://staxmanade.com/2015/02/how-to-diff-two-xcode-targets/ – Jason Jarrett Feb 20 '15 at 06:05
2 Answers
You can compare the build settings by selecting both target then 'levels'
As far as im aware, there is no easy way to compare what source files are included in each target.

- 37,670
- 37
- 171
- 213
-
3Thanks! If only Apple would split up the mega-huge xcodeproj file and have separate files for each target... – jowie Sep 01 '14 at 08:31
It's an old topic, however I just had the same need and found an easy way to compare targets.
I noticed that in "Build Settings" tab, you can select one or more lines and copy the selection, the result being a simple text composed of paragraphs with key/values lines in the form : key = value and a header like : //:configuration = Debug
Select all settings for a given Target with a simple cmd+a, copy the settings in a text file, repeat the action for the second target and simply compare text files with FileMerge or your preferred diff app.
Note : pay extra care to diffs concerning the headers, then the whole paragraph may be considered as different.

- 320
- 3
- 5