mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 17:52:29 +08:00
Small update to Mac troubleshooting guide
This commit is contained in:
parent
ca8a1fab36
commit
3e8ae9835b
@ -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
|
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"
|
## Cannot start service: Host version "x.x.x does not match binary version "x.x.x"
|
||||||
|
Loading…
Reference in New Issue
Block a user