MobileNativeFoundation / XCLogParser

Tool to parse Xcode and xcodebuild logs stored in the xcactivitylog format
Apache License 2.0
1.72k stars 121 forks source link

xcodebuild does not generate a valid xcactivitylog #156

Closed BBC6BAE9 closed 2 years ago

BBC6BAE9 commented 2 years ago

I use xcodebuild command to compile my project,generate new xcactivitylog, but there is no data in it. Does anyone know how to fix it?

xcodebuild build -project xxx.xcodeproj -scheme xxx -configuration Release -sdk iphonesimulator

BBC6BAE9 commented 2 years ago

Since Xcode 11, xcodebuild only generates the .xcactivitylog build logs when the option -resultBundlePath is present. If you're compiling with that command and not with Xcode, be sure to set that option to a valid path ending in .xcresult.

CraigSiemens commented 2 years ago

Was there anything else besides adding -resultBundlePath that you changed? We're running into the same issue but already have -resultBundlePath being passed to xcodebuild.