Xcodebuild not displaying all compilation errors?

There are 2 compilation errors in my project (display in Xcode).

But when I use xcodebuild to compile the project in the terminal, only one compilation error is displayed

xxx$xcodebuild -sdk iphoneos -configuration Debug
....
....
[self updateAccountInfo];1
                         ^
1 warning and 1 error generated.

Is it possible to make xcodebuild display all compilation errors?

In the Xcode setup on the General tab, check the box "Continue building after errors." asked here

I need to use xcodebuild to do the same.

EDIT:

After thinking and researching these days, I think xcodebuild cannot do this. It is different from xcode. When we use xcode to compile an iOS project, xcode compiles each .m by clang. Thus, xcode has the function "Continue creation after errors"

+4
2

Xcode ( Terminal.app):

$ defaults write com.apple.Xcode PBXBuildsContinueAfterErrors YES

xCode 8:

$ defaults write com.apple.dt.Xcode IDEBuildingContinueBuildingAfterErrors 1
+3

xcodebuild/xctool, -IDEBuildingContinueBuildingAfterErrors=YES.

:

xctool -project SampleProject.xcodeproj/ -scheme SampleProject -sdk iphonesimulator build -IDEBuildingContinueBuildingAfterErrors=YES

, PBXBuildsContinueAfterErrors .

defaults write com.apple.dt.Xcode, . , IDE , defaults read com.apple.dt.Xcode "" "".

+2

All Articles