iloveitaly / hyper-focus

Block hosts, apps, specific urls (with query string vars!), launch scripts on wake, and generally optimize your productivity and focus
MIT License
50 stars 2 forks source link

Problems with homebrew installation #3

Closed BangGang6969 closed 1 year ago

BangGang6969 commented 1 year ago

I've tried default homebrew installation via terminal about 5 times and it displayed same error

=> swift build --disable-sandbox -c release
Last 15 lines from /Users/—/Library/Logs/Homebrew/hyper-focus/01.swift:
2023-04-01 13:36:50 +0000

swift
build
--disable-sandbox
-c
release

error: terminated(1): /usr/bin/xcrun --sdk macosx --show-sdk-platform-path output:
    xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation
    xcrun: error: unable to lookup item 'PlatformPath' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
iloveitaly commented 1 year ago

@BangGang6969 could you try running sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer to see if that fixes the issue?

The real fix is getting precompiled bottles, but I'm not sure that's possible if it's not hosted within the main homebrew repo :/

iloveitaly commented 1 year ago

@BangGang6969 curious if the Xcode-select fixed the issue?

iloveitaly commented 1 year ago

Closing this out, feel free to reopen.