Separate build directory using xcodebuild

前端 未结 5 2164
情深已故
情深已故 2021-02-07 09:11

The man page for xcodebuild reads:

Run xcodebuild from the directory containing your project (i.e. the directory containing the project

5条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 09:55

    You can set build settings from the command line. The CONFIGURATION_BUILD_DIR will set the build directory. For example:

    xcodebuild -project YourProject.xcodeproj -configuration Debug -target All ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES CONFIGURATION_BUILD_DIR=../some/other/dir
    

    A reference is found on Apple's site:

    • Build Setting Reference

提交回复
热议问题