Is there a way to list swift compiler warning at the terminal?

Asked 2 years ago, Updated 2 years ago, 32 views

Xcode lists the swift compiler warning in the project, but
I'd like to list it at the terminal.This is because I want to grep.

swift ios

2022-09-29 22:43

1 Answers

/Users/[Username]/Library/Developer/Xcode/DerivedData/Project Name - Random String (to prevent duplication)/Logs/Build

created in a folder,

The .xcavitylog file will be the compilation log file, so you should refer to the one with the latest date.

Other

xcodebuild-project Project Name .xcodeproj-target Target Name-configuration (Debug|Release)

You can also output the compilation results to the terminal by performing the build from the terminal.(Debug |Release) I wrote with the intention of choosing one or the other.
In this case, for example, the Bash series is

xcodebuild-project project name.xcodeproj-target target name-configuration(Debug|Release)>compile.log2>error.log

I think it would be better to separate the standard output from the standard error output as shown in and write it down in the log.


2022-09-29 22:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.