Controlling build location with xcodebuild command line tool

How can a build script figure where xcodebuild places the resulting application when calling xcodebuild -scheme MyScheme archive ?

I understand that you can control the location via Xcode preferences but I would actually like to be able to specify this in the command line for my build script while keeping the default build location during development.


I have had minor luck with the following approaches:

  • Fiddle with the environment variable BUILT_PRODUCTS_DIR . I remember this was somewhat infuriating.
  • Check out this answer.
  • I used the method outlined here, and did not fall too deeply into madness.
  • Plenty of ways to skin a cat, but remember you always end up with stains in your carpet.

    链接地址: http://www.djcxy.com/p/59786.html

    上一篇: xcodebuild命令行忽略GCC

    下一篇: 使用xcodebuild命令行工具控制构建位置