有什么工具可以找到两个 xcode 项目之间的区别吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7938477/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:16:47  来源:igfitidea点击:

Is there any tool to find any difference between two xcode projects?

iosxcode

提问by durai

Is there any tool available to find the difference between two versions of same xcode project?. So that I can easily get an overview of the changed/newly-added/deleted files.

是否有任何工具可用于查找同一 xcode 项目的两个版本之间的差异?。这样我就可以轻松了解已更改/新添加/删除的文件。

Thanks, durai.

谢谢,杜赖。

回答by NSGod

The Xcode tools include the FileMerge.app application that does exactly what you're looking for.

Xcode 工具包括 FileMerge.app 应用程序,它完全符合您的要求。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

It's at <Developer Tools>/Applications/Utilities/FileMerge.app.

它在<Developer Tools>/Applications/Utilities/FileMerge.app

回答by Jayprakash Dubey

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
  1. 右键单击Xcode 图标-> 选择“ Open Developer Tool” -> 选择“ FileMerge”选项

Screenshot 0

截图 0

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

Screenshot 1

截图 1

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

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

  1. 单击左右按钮选择要比较的两个Xcode项目

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

Screenshot 2

截图 2

Note :While selecting file for Left/Right go to folder level not Xcode file or workspace

注意:在为左/右选择文件时,请转到文件夹级别而不是 Xcode 文件或工作区

You can check changes in Left/Right,identical between Left/Rightor Added/Deletedby selecting feature present in extreme right side of window (if using Xcode 8.2.1)

您可以检查changes in Left/Right,identical between Left/RightAdded/Deleted选择窗口最右侧的功能(如果使用 Xcode 8.2.1)

screenshot 4

截图 4