XCode - 编辑 xcodeproj 包(特别是 project.pbxproj)

发布于 2024-07-23 20:22:43 字数 405 浏览 2 评论 0原文

我正在使用 XCode,并且还编写了一个外部编辑器工具,可以生成在项目中使用的资源。 在最好的情况下,该工具将编辑project.pbxproj 文件,以便它包含项目中生成的资源。 我通读了该文件,试图理解它,它基本上是可以辨别的,但我仍然有一个主要问题。

如果我想从外部 XCode 生成一个新的组(或者就此而言,生成一个新的任何东西),我如何知道要使用什么 ID 代码? 例如:19C28FACFE9D520D11CA2CBB 是我的项目中的其中之一。 如果我自己做的话,我怎么知道该用什么? 他们只需要独一无二吗? 只组成一个是否合法:000000000000000000000001和000000000000000000000002和000000000000000000000003等?

对此的任何帮助都会很棒。 谢谢。

I'm working in XCode and I've also written an external editor tool that generates resources for use in the project. In the best case scenario, the tool would edit the project.pbxproj file so that it includes the generated resources in the project. I've read through the file in an attempt to understand it, and it's mostly discernible but there is still one major question I have.

If I wanted to generate a new Group from outside XCode (or a new anything, for that matter), how do I know what ID code to use? For example: 19C28FACFE9D520D11CA2CBB is one of them from my project. How am I supposed to know what to use if I make my own? Do they just need to be unique? Would it be legal to just make one up: 000000000000000000000001 and 000000000000000000000002 and 000000000000000000000003 etc. ?

Any help on this would be wonderful. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南风几经秋 2024-07-30 20:22:43

是的,您可以自己制作。 最好的方法是使用 MD5 或 SHA1 等哈希函数来生成它,然后您可以将其截断为所需的长度。 我将散列文件/组的名称以及附加的时间戳,这样您就可以获得更独特的结果。

Yes, you can make your own. The best way would be to use a hash function such as MD5 or SHA1 to generate it then you can truncate it at the desired length. I would hash the name of the file/group along with a time stamp appended this way you get a more unique result.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文