开发者

XCode: iPhone target dependency on Mac OS X target

I'm building an iPhone application, and I want to run a custom built-on-the-fly Mac OS X command-line utility during the build phase of the i开发者_开发技巧Phone target. I set up the command-line utility as a dependent target of the iPhone target, but it won’t build, telling me:

target specifies product type ‘com.apple.product-type.tool’, but there’s no such product type for the ‘iphoneos’ platform

Is there any way to do this correctly?

Thanks!


Have you tried adding a run script build phase? From there, you should be able to execute any other scripts you wish, including compiling other tools or projects.

Right click on the target and Add New Build Phase.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜