擅长:python、mysql、java
<p>你要做的不是最直接的事。Xcode pbxproj文件格式看起来像XML,但我认为它有很多专有/未记录的部分(非常像所有iOS)。据我所知,Xcode无法从命令行添加文件。</p>
<p>我确实找到了一个Python脚本,可以用来修改XCode的项目文件,但是它已经有几年的历史了,而且可能已经过时了。</p>
<p><a href="https://coderwall.com/p/dhnceq" rel="nofollow">Here is the Blog post that talks about it</a>和<a href="https://github.com/kronenthaler/mod-pbxproj" rel="nofollow">here is the current GitHub repo</a>(上次更新是在五个月前,截至我键入此答案之日)。</p>
<p>试试这个,让我知道它是否适合你。</p>