Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道这有点奇怪,但我需要从命令行构建我的 XCode 项目,并且我需要能够指定在构建时链接到哪些库。在老式的 makefile 中,我只需为 libtool 命令指定 .a 即可。如何使用 xcodebuild 在 XCode 4.3 中实现这一点?我将工作区和方案指定为参数。
传递OTHER_LDFLAGS="/path/to/library /path/to/another"xcodebuild 命令行。有关您可以传递的所有内容,请参阅构建设置参考。
OTHER_LDFLAGS="/path/to/library /path/to/another"