Xcode - Editing xcodeproj package (in particular project.pbxproj)

I work in Xcode, and I also wrote an external editor tool that generates resources for use in the project. In the best case, the tool will edit the project.pbxproj file so that it includes the generated resources in the project. I read the file in an attempt to understand it, and it is mostly distinguishable, but there is another important issue that I have.

If I wanted to create a new group from an external Xcode (or something new, for that matter), how do I know which ID to use? For example: 19C28FACFE9D520D11CA2CBB is one of them from my project. How should I know what to use if I do mine? Do they just need to be unique? Would it be legal to simply do one: 000000000000000000000001 and 000000000000000000000002 and 000000000000000000000003, etc.?

Any help on this would be great. Thanks.

+6
xcode
source share
1 answer

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

+5
source share

All Articles