有没有办法在 Xcode 中列出所有文件及其目标? [英] Is there a way to list all files and their targets in Xcode?

查看:36
本文介绍了有没有办法在 Xcode 中列出所有文件及其目标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我参与了多个开发人员的项目.该项目包含多个目标.很多时候,文件被提交到 Xcode 项目存储库,其中一些目标不包括在内(粗心的程序员).因此,每当我执行svn up"并运行该应用程序时,我的程序就会崩溃.然后我必须查看所有这些文件,看看哪个文件与丢失的目标一起提交,然后添加目标,并将文件重新提交到存储库(对于那个粗心的程序员)

I am part of a project with multiple developers. The project contains multiple targets. VERY often, files are committed to the Xcode project repository with some targets not-included (careless programmers). So whenever i do a 'svn up', and run the app, my program crashes. I then have to look through all those files and see which one was committed with the missing target, then add the target, and recommit the file to the repository (for that careless programmer)

是否有某种方法可以通过脚本自动将所有 .m 添加到特定目标?或者列出特定目标缺少的所有文件?

Is there some way through a script to either automatically add all .m to a particular target? OR list all the files that are missing for a particular target?

我查看了 将文件添加到 XCode 项目已经有一个脚本供参考.

推荐答案

我在另一个线程上的回答向您展示了如何查看不属于目标的所有文件:

My answer on this other thread shows you how to see all files that are not part of a target:

https://stackoverflow.com/a/12867723/591586

这篇关于有没有办法在 Xcode 中列出所有文件及其目标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆