Add files to an Xcode project from a script?

后端 未结 7 1382
清酒与你
清酒与你 2020-12-04 07:11

Right now I\'m using a few scripts to generate files that I\'m including as resources in Xcode. The thing is I\'m running the script, then deleting from the project, then ad

相关标签:
7条回答
  • 2020-12-04 07:44

    If you already have the files somewhere on your system, relative to your source root, you can always add a "Copy Files" phase. This will allow you to specify a directory where your resources should be copied from.

    You can combine this with the Build Script phase answer provided to you already. For instance, run a script to check out your assets from Subversion into a subdirectory of your project, and then follow that up with a Copy Files phase that copies from "$(SRCROOT)/Assets".

    0 讨论(0)
提交回复
热议问题