igorkulman / ChangeMenuBarColor

Simple utility to change macOS Big Sur and Monterey menu bar color by appending a solid color or gradient rectangle to a wallpaper image
MIT License
970 stars 37 forks source link

Compile error #40

Closed jetpants closed 3 years ago

jetpants commented 3 years ago

I cloned the latest version and followed the instructions.

I'm getting compile errors, starting with:

`/Users/steve/Desktop/ChangeMenuBarColor: error: manifest parse error(s):

:1:9: note: in file included from :1: #import "Headers/CoreFoundation.h" ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43: #include ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:73:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:73: #include `
igorkulman commented 3 years ago

Make sure your are on Big Sur and have the latest XCode 12.3 installed

jetpants commented 3 years ago

I'm on both

igorkulman commented 3 years ago

Using the pre-built binary or building yourself?

jetpants commented 3 years ago

I had a run-time error with the pre-built so I downloaded the sources.

I just did this:

installed Xcode git clone https://github.com/igorkulman/ChangeMenuBarColor.git cd ChangeMenuBarColor swift build -c release

igorkulman commented 3 years ago

Then I would say something is wrong with your Xcode.

jetpants commented 3 years ago

It's a fresh install this morning. Starts up okay, looks good.

Sent from mobile - please excuse brevity and spelling erorrs

On Fri, 22 Jan 2021, 10:42 Igor Kulman, notifications@github.com wrote:

Then I would say something is wrong with your Xcode.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igorkulman/ChangeMenuBarColor/issues/40#issuecomment-765277465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXZETDORBESFLSYIML5VITS3FCBPANCNFSM4WOCNJRA .

igorkulman commented 3 years ago

No idea what my be wrong, you can try opening the project in Xcode and building or running it there as last try.

jetpants commented 3 years ago

Great idea. What's the extension on the project file. I couldn't see what to open as a project.

Sent from mobile - please excuse brevity and spelling erorrs

On Fri, 22 Jan 2021, 10:51 Igor Kulman, notifications@github.com wrote:

No idea what my be wrong, you can try opening the project in Xcode and building or running it there as last try.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igorkulman/ChangeMenuBarColor/issues/40#issuecomment-765283412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXZETFVAZFHELJACPBMTDLS3FDCTANCNFSM4WOCNJRA .

igorkulman commented 3 years ago

It is a Swift Package Manager project, so just open the folder in Xcode and it will work.

jetpants commented 3 years ago

I did a clean and a build in Xcode, all good. When I run it at the command line it looks like it's still building something:

~/Desktop/ChangeMenuBarColor> swift run ChangeMenuBarColor "../crisp-blue-sky-coast-pxhere.com-2560x1600.jpg" "#8194C1"

:1:9: note: in file included from :1: #import "Headers/CoreFoundation.h" ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:43: #include ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:73:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:73: #include On Fri, 22 Jan 2021 at 10:54, Igor Kulman wrote: > It is a Swift Package Manager project, so just open the folder in Xcode > and it will work. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . >
igorkulman commented 3 years ago

What does xcode-select -p print?

You can run it via Xcode as a workaround, there is way to define parameters in Xcode.

jetpants commented 3 years ago

It prints: /Applications/Xcode.app/Contents/Developer

That works, I'm running it from within Xcode.

Thanks for your help :)

On Fri, 22 Jan 2021 at 16:41, Igor Kulman notifications@github.com wrote:

What does xcode-select -p print?

You can run it via Xcode as a workaround, there is way to define parameters in Xcode.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igorkulman/ChangeMenuBarColor/issues/40#issuecomment-765494226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXZETFBYMVC42CNPBZETN3S3GMDZANCNFSM4WOCNJRA .