用于比较Xcode项目文件的工具

时间:2023-01-13 20:19:08

I've been given the Xcode project files for version 1 and 2 of a iOS app. Version 1 is working, version 2 is buggy with more features. The original programmer is no longer available. No versioning system was used.

我已经获得了iOS应用程序版本1和版本2的Xcode项目文件。版本1正在运行,版本2是错误的,具有更多功能。原始程序员不再可用。没有使用版本控制系统。

Is there a tool to compare the different projects - so I can see what code was added between version 1 & 2?

是否有工具来比较不同的项目 - 所以我可以看到版本1和2之间添加了什么代码?

2 个解决方案

#1


16  

I'm pretty sure that nearly everything in an xcode project is stored in text files so you should be able to use standard diff tools to compare the projects. This, of course, excludes resources such as images, audio, etc.

我很确定xcode项目中的几乎所有内容都存储在文本文件中,因此您应该能够使用标准差异工具来比较项目。当然,这不包括图像,音频等资源。

FileMerge is an app that comes with Apple's Developer tools. It does diffs and merges. It can be run through the terminal with the the opendiff command.

FileMerge是Apple的开发人员工具附带的应用程序。它确实是差异和合并。它可以使用opendiff命令通过终端运行。

#2


21  

You can compare two Xcode project using FileMerge tool available with Xcode.

您可以使用Xcode提供的FileMerge工具比较两个Xcode项目。

Below are steps for comparison in Xcode 6.1

以下是Xcode 6.1中的比较步骤

  1. Right click on Xcode icon -> Select 'Open Developer Tool' -> Select 'FileMerge' option
  2. 右键单击Xco​​de图标 - >选择“打开开发人员工具” - >选择“FileMerge”选项

用于比较Xcode项目文件的工具

  1. This will open window as show below :
  2. 这将打开如下所示的窗口:

用于比较Xcode项目文件的工具

  1. Select two Xcode project which is to be compared by clicking Left and Right button

    通过单击“向左”和“向右”按钮选择要比较的两个Xcode项目

  2. Click on 'Compare' button. This will create list of file that are added, removed or altered by comparing two Xcode project.

    点击“比较”按钮。这将创建通过比较两个Xcode项目添加,删除或更改的文件列表。

用于比较Xcode项目文件的工具

#1


16  

I'm pretty sure that nearly everything in an xcode project is stored in text files so you should be able to use standard diff tools to compare the projects. This, of course, excludes resources such as images, audio, etc.

我很确定xcode项目中的几乎所有内容都存储在文本文件中,因此您应该能够使用标准差异工具来比较项目。当然,这不包括图像,音频等资源。

FileMerge is an app that comes with Apple's Developer tools. It does diffs and merges. It can be run through the terminal with the the opendiff command.

FileMerge是Apple的开发人员工具附带的应用程序。它确实是差异和合并。它可以使用opendiff命令通过终端运行。

#2


21  

You can compare two Xcode project using FileMerge tool available with Xcode.

您可以使用Xcode提供的FileMerge工具比较两个Xcode项目。

Below are steps for comparison in Xcode 6.1

以下是Xcode 6.1中的比较步骤

  1. Right click on Xcode icon -> Select 'Open Developer Tool' -> Select 'FileMerge' option
  2. 右键单击Xco​​de图标 - >选择“打开开发人员工具” - >选择“FileMerge”选项

用于比较Xcode项目文件的工具

  1. This will open window as show below :
  2. 这将打开如下所示的窗口:

用于比较Xcode项目文件的工具

  1. Select two Xcode project which is to be compared by clicking Left and Right button

    通过单击“向左”和“向右”按钮选择要比较的两个Xcode项目

  2. Click on 'Compare' button. This will create list of file that are added, removed or altered by comparing two Xcode project.

    点击“比较”按钮。这将创建通过比较两个Xcode项目添加,删除或更改的文件列表。

用于比较Xcode项目文件的工具