jenkins中xcodebuild的fobjc arc错误

jenkins中xcodebuild的fobjc arc错误,xcode,jenkins,Xcode,Jenkins,尝试使用Jenkins构建MacOs应用程序时出错: error: -fobjc-arc is not supported on platforms using the legacy runtime Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 ** BUILD FAILED ** The

尝试使用Jenkins构建MacOs应用程序时出错:

error: -fobjc-arc is not supported on platforms using the legacy runtime
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

** BUILD FAILED **


The following build commands failed:
    ProcessPCH /var/folders/cn/n0sjm_hx1pdg92gkg49r3tgc0000gn/C/com.apple.DeveloperTools/6.2-6C131e/Xcode/SharedPrecompiledHeaders/DatabaseBuilder2_Prefix-bvnwqzcnsgjinzgqoundsgsrsuxd/DatabaseBuilder2_Prefix.pch.pch DatabaseBuilder2_Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Build step 'Xcode' marked build as failure
Finished: FAILURE
看起来它正在运行这个命令(我从完整的jenkins日志中获得):

我可以将cd刻录到项目目录中,并从终端运行该命令,它似乎可以工作。我错过了什么

/usr/bin/xcodebuild -target DatabaseBuilder4 -configuration Release clean build