开发者

How to compare 2 Xcode targets

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.


You can compare the build settings by selecting both target then 'levels'

How to compare 2 Xcode targets

As far as im aware, there is no easy way to compare what source files are included in each target.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜