Xcode中Target的使用

一个Target对应一个产品product,所有targets虽然公用一份代码,但编译设置(比如编译条件), 以及包含的资源文件却可以有很大的差别. 于是即使同一份代码, 产出的product也可能大不相同.

从XCode中, 我们可以看到一个Target包含了Copy Bundle Resources, Compile Sources, Link Binary With Libraries. 其中 

        Copy Bundle Resources 是指生成的product的.app内将包含哪些资源文件 

        Compile Sources 是指将有哪些源代码被编译 

        Link Binary With Libraries 是指编译过程中会引用哪些库文件

Target介绍:

http://www.cocoachina.com/macdev/cocoa/2010/0120/347.html

猜你喜欢

转载自quding0308.iteye.com/blog/1838002