dhnceq
Last Updated: February 25, 2016
·
9.271K
· kronenthaler
2022117c5ad299030201231cc106a5c3

Modifying XCode projects via command line

As part of the iOS developer tasks, I have to create plugins for Unity3d to interact with native libraries. So far, so good. But what happen if you want to modify programmatically, via scripts, or command line the XCode's project to automatically add dependencies and files?
Short answer: good luck with that, the format is not documented at all. It's a big black box.
Fortunately, one fella (https://bitbucket.org/darktable) made part of the work creating a python script to modify XCode's project files.
But there is small hiccup with this script, it doesn't write the latest XCode format, so Unity3d won't be able of update the project if something has changed.
Therefore, i just decided to fork the project (https://github.com/kronenthaler/mod-pbxproj) and extended it to write the right format and give it back to the community, so XCode, Unity3d and the developers may live in peace.

may the fork be with you.

Say Thanks
Respond

3 Responses
Add your response

4461

put a date on your blog please

over 1 year ago ·
5322
6a2c614152c5a7268782798548319a7d

+1 for "put a date on your blog please". It's intensely irritating to find tech blogs without dates on the posts.

over 1 year ago ·
7845
652cc4410d04b690807fc39449837664

Manually Timestamp your comments then guys, don't get on someone's case because the platform their using doesn't have features you want.

Maybe you could avoid being so short sighted and log a feature request with coderwall, I agree that it's a huge oversight, but don't blame the poster.

over 1 year ago ·