Xcode 4 build Static Library dependency with different configuration setting

后端 未结 2 1267
野的像风
野的像风 2021-02-08 12:41

I was wondering whether it is possible to have dependant static library compiled with different configuration settings.

My case was I have a project (project.pbxproj) wh

相关标签:
2条回答
  • 2021-02-08 13:06

    To extend what rage said, you'll want to use targets instead of configurations. Targets are all about what is built where as configurations is how to build.

    You may also want to look at lipo. Its useful for combining static libs such as simulator and device into 1 static lib resource. I haven't played with it extensively but maybe there is a way to have different configs as well and somehow use the right config when the parent project is built.

    0 讨论(0)
  • 2021-02-08 13:21

    I do not know of a way to trigger different configuration builds, but what you are trying to achieve can be done with different targets. A target of the dependent project can trigger a specific target of the dependency project. You can set this in the Target Dependencies build phase.

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