From 3e8ae9835b00e9f1b42dff7c87af4812155e5e79 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 24 Nov 2022 21:38:16 +1100 Subject: [PATCH] Small update to Mac troubleshooting guide --- .../version-v2.2.0/guides/troubleshooting.mdx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/website/versioned_docs/version-v2.2.0/guides/troubleshooting.mdx b/website/versioned_docs/version-v2.2.0/guides/troubleshooting.mdx index 7441c0657..53c1469c3 100644 --- a/website/versioned_docs/version-v2.2.0/guides/troubleshooting.mdx +++ b/website/versioned_docs/version-v2.2.0/guides/troubleshooting.mdx @@ -166,6 +166,25 @@ If `/Applications/Xcode.app/Contents/Developer` is displayed, run `sudo xcode-se Sources: https://github.com/wailsapp/wails/issues/1806 and https://github.com/wailsapp/wails/issues/1140#issuecomment-1290446496 +If this doesn't work, try the following "hard reset" approach: + +```shell +# cleanup cli tools +sudo rm -rf /Library/Developer/CommandLineTools + +# switch to xcode one +sudo xcode-select -s /Applications/Xcode.app/Contents/Developer + +# clear out go cache (go env will show you your patrh) +rm -rf ~/Library/Caches/go-build + +# set CC to `gcc` +export CC=gcc + +# now wails build works +wails build +``` + -- ## Cannot start service: Host version "x.x.x does not match binary version "x.x.x"