From f923a431f7ba60953ba196576c6fe12b842bf2af Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sat, 12 Feb 2022 21:12:17 +1100 Subject: [PATCH] Try to provide help when old xcode tools installed. #1142 --- v2/pkg/commands/build/base.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/v2/pkg/commands/build/base.go b/v2/pkg/commands/build/base.go index a978b14b..6e7b9caf 100644 --- a/v2/pkg/commands/build/base.go +++ b/v2/pkg/commands/build/base.go @@ -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 }