如何从 xcodebuild 获取构建变量?

Ell*_*nce 5 xcode makefile xcodebuild

我正在使用以下命令:

xcodebuild -project eagle.xcodeproj -target eagle_test -showBuildSettings

但我需要将其提取OBJROOT为外部 makefile 的一部分。我怎样才能得到这个?

Tho*_*asW 0

高级答案:作为 makefile 的一部分,运行xcodebuild -project eagle.xcodeproj -target eagle_test -showBuildSettings命令并解析输出以获取 的值OBJROOT