开发者

Source code generation in Xcode 4

I have a project where a large amount of C++ code is auto generated from some meta descriptions into multiple files. How do I make X开发者_运维问答code 4 automatically add these files into the project whenever happens the new build?

NOTE: I'm aware of build phases and custom scripts but all I could find was resources related: copy resource files to the final application bundle. In my case I need to make Xcode 4 automatically inject these autogenerated files into the application build process...


You might want to try adding a "Run Script" build phase. This will allow you to run an arbitrary shell script, which you can use to do whatever extra steps you need to do.

Select your target in Xcode4, click "Add Build Phase" and then select "Add Run Script"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜