Try to provide help when old xcode tools installed. #1142

This commit is contained in:
Lea Anthony
2022-02-12 21:12:17 +11:00
parent 00db626942
commit f923a431f7
+13
View File
@@ -373,6 +373,19 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
// Format error if we have one
if err != nil {
if options.Platform == "darwin" {
output, _ := cmd.CombinedOutput()
stdErr := string(output)
if strings.Contains(err.Error(), "ld: framework not found UniformTypeIdentifiers") ||
strings.Contains(stdErr, "ld: framework not found UniformTypeIdentifiers") {
println(`
NOTE: It would appear that you do not have the latest Xcode cli tools installed.
Please reinstall by doing the following:
1. Remove the current installation located at "xcode-select -p", EG: sudo rm -rf /Library/Developer/CommandLineTools
2. Install latest Xcode tools: xcode-select --install
`)
}
}
return err
}