Open gh-kdk opened 2 years ago
I am also on macOS 12.6 on a M1 machine and it runs just fine
❯ mint run igorkulman/ChangeMenuBarColor
🌱 Finding latest version of ChangeMenuBarColor
🌱 Cloning ChangeMenuBarColor v1.0.1
🌱 Resolving package
🌱 Building package
🌱 Installed ChangeMenuBarColor v1.0.1
🌱 Running ChangeMenuBarColor v1.0.1...
OVERVIEW: A Swift command-line tool to create a custom menu bar color wallpaper for macOS Big Sur
Do you have Xcode installed and you opened it at least once so it installs all the needed stuff?
I get the same issue. Fresh install of xcode (and opened), macOS 12.6.1, M1 Macbook Pro
% mint run igorkulman/ChangeMenuBarColor 🌱 Finding latest version of ChangeMenuBarColor 🌱 Cloning ChangeMenuBarColor v1.0.2 🌱 Resolving package error: 'github.com_igorkulman_changemenubarcolor': Invalid manifest /private/var/folders/lg/g88nx1p91gd0hthtqycfcj5r0000gn/T/mint/github.com_igorkulman_ChangeMenuBarColor/Package.swift:4:8: error: no such module 'PackageDescription' import PackageDescription ^ 🌱 Encountered error during "swift package resolve". Use --verbose to see full output 🌱 Failed to resolve ChangeMenuBarColor v1.0.2 with SPM
Same issue, with Xcode opened.
leonjeger@leons-macbook-air ~ % mint run igorkulman/ChangeMenuBarColor Gradient "#F2660D" "#FFB200" "optional_path_to_your_wallpaper" 🌱 Finding latest version of ChangeMenuBarColor 🌱 Cloning ChangeMenuBarColor v1.0.3 🌱 Resolving package error: 'github.com_igorkulman_changemenubarcolor': Invalid manifest /private/var/folders/1q/6t619mvn3sx6zfmsg38nq7z40000gn/T/mint/github.com_igorkulman_ChangeMenuBarColor/Package.swift:4:8: error: no such module 'PackageDescription' import PackageDescription ^ 🌱 Encountered error during "swift package resolve". Use --verbose to see full output 🌱 Failed to resolve ChangeMenuBarColor v1.0.3 with SPM
Same thing here
Same thing
Found the solution!
Issue occurs when Swift doesn't find a location for Xcode, to fix this:
Preferences
-> Location
Command Line Tools
reselect whatever version you have mint run igorkulman/ChangeMenuBarColor
should now work without any issuesThis looks like a stupid Xcode bug. Open Xcode, go to Preferences, Locations and in Command Line Tools select the current Xcode if if it is already selected. Selecting it again will actually change the path.
I had the same issue, updating the location fixed the issue. I imagine this could be caused by people adding an empty Xcode.app to ~/Applications to be able to de-select the developer in Spotlight after installing Xcode Command Line Tools, which is required for things like Homebrew.
"Found the solution!
Issue occurs when Swift doesn't find a location for Xcode, to fix this:
Open Xcode Preferences -> Location Under Command Line Tools reselect whatever version you have mint run igorkulman/ChangeMenuBarColor should now work without any issues"
This worked, thank you!!
Hi. I wanted to try your app but when I run
mint run igorkulman/ChangeMenuBarColor
I get:Xcode is installed and I created a blank swift project just to be sure.
I'm running macOS 12.6 on m1 mackbook pro.