Closed jstn-swm closed 10 months ago
Which macOS version are you using? Could you provide the full content of the file /Users/justin/Library/Logs/Homebrew/sketchybar/01.make
?
I am using Monterey
Contents of 01.make file:
2023-08-25 16:25:53 +0000
make
rm -rf bin
/Library/Developer/CommandLineTools/usr/bin/make x86
mkdir bin
/usr/bin/clang -c -o bin/alias.o src/alias.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/background.o src/background.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/bar_item.o src/bar_item.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/custom_events.o src/custom_events.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/event.o src/event.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/graph.o src/graph.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/image.o src/image.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/mouse.o src/mouse.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/shadow.o src/shadow.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/font.o src/font.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/text.o src/text.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/message.o src/message.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/bar.o src/bar.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/color.o src/color.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/window.o src/window.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/bar_manager.o src/bar_manager.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/display.o src/display.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/group.o src/group.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/mach.o src/mach.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/popup.o src/popup.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/animation.o src/animation.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/workspace.om src/workspace.m -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/volume.o src/volume.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/slider.o src/slider.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/power.o src/power.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/wifi.om src/wifi.m -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/media.om src/media.m -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
/usr/bin/clang -c -o bin/hotload.o src/hotload.c -std=c99 -Wall -Ofast -ffast-math -fvisibility=hidden -fno-common -target x86_64-apple-macos10.13
src/media.m:87:25: error: expected a type
- (void)playing_change:(NSNotification *)notification {
^
src/media.m:95:23: error: expected a type
- (void)media_change:(NSNotification *)notification {
^
src/media.m:28:8: error: use of undeclared identifier 'NSNotificationCenter'
[NSNotificationCenter.defaultCenter addObserver:self
^
src/media.m:33:8: error: use of undeclared identifier 'NSNotificationCenter'
[NSNotificationCenter.defaultCenter addObserver:self
^
src/media.m:38:8: error: use of undeclared identifier 'NSNotificationCenter'
[NSNotificationCenter.defaultCenter addObserver:self
^
src/media.m:51:40: warning: instance method '-UTF8String' not found (return type defaults to 'id') [-Wobjc-method-access]
const char* app_cstr = [self.app UTF8String];
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:256:8: note: receiver is instance of class declared here
@class NSString;
^
src/media.m:51:19: warning: incompatible pointer types initializing 'const char *' with an expression of type 'id' [-Wincompatible-pointer-types]
const char* app_cstr = [self.app UTF8String];
^ ~~~~~~~~~~~~~~~~~~~~~
src/media.m:52:46: warning: instance method '-UTF8String' not found (return type defaults to 'id') [-Wobjc-method-access]
const char* artist_cstr = [self.artist UTF8String];
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:256:8: note: receiver is instance of class declared here
@class NSString;
^
src/media.m:52:19: warning: incompatible pointer types initializing 'const char *' with an expression of type 'id' [-Wincompatible-pointer-types]
const char* artist_cstr = [self.artist UTF8String];
^ ~~~~~~~~~~~~~~~~~~~~~~~~
src/media.m:53:44: warning: instance method '-UTF8String' not found (return type defaults to 'id') [-Wobjc-method-access]
const char* title_cstr = [self.title UTF8String];
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:256:8: note: receiver is instance of class declared here
@class NSString;
^
src/media.m:53:19: warning: incompatible pointer types initializing 'const char *' with an expression of type 'id' [-Wincompatible-pointer-types]
const char* title_cstr = [self.title UTF8String];
^ ~~~~~~~~~~~~~~~~~~~~~~~
src/media.m:54:44: warning: instance method '-UTF8String' not found (return type defaults to 'id') [-Wobjc-method-access]
const char* album_cstr = [self.album UTF8String];
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:256:8: note: receiver is instance of class declared here
@class NSString;
^
src/media.m:54:19: warning: incompatible pointer types initializing 'const char *' with an expression of type 'id' [-Wincompatible-pointer-types]
const char* album_cstr = [self.album UTF8String];
^ ~~~~~~~~~~~~~~~~~~~~~~~
src/media.m:99:32: error: property 'userInfo' not found on object of type 'const id'
self.app = [notification.userInfo valueForKey:kMRMediaRemoteNowPlayingApplicationDisplayNameUserInfoKey];
^
src/media.m:100:27: warning: instance method '-valueForKey:' not found (return type defaults to 'id') [-Wobjc-method-access]
self.artist = [dict valueForKey:kMRMediaRemoteNowPlayingInfoArtist];
^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:262:8: note: receiver is instance of class declared here
@class NSDictionary;
^
src/media.m:101:26: warning: instance method '-valueForKey:' not found (return type defaults to 'id') [-Wobjc-method-access]
self.title = [dict valueForKey:kMRMediaRemoteNowPlayingInfoTitle];
^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:262:8: note: receiver is instance of class declared here
@class NSDictionary;
^
src/media.m:102:26: warning: instance method '-valueForKey:' not found (return type defaults to 'id') [-Wobjc-method-access]
self.album = [dict valueForKey:kMRMediaRemoteNowPlayingInfoAlbum];
^~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:262:8: note: receiver is instance of class declared here
@class NSDictionary;
^
11 warnings and 6 errors generated.
make[1]: *** [bin/media.om] Error 1
make: *** [universal] Error 2
HOMEBREW_VERSION: 4.1.6
ORIGIN: https://github.com/Homebrew/brew
HEAD: 3cd72905ce3d36a84994cc6c6b9ebbdafff4e922
Last commit: 7 days ago
Core tap JSON: 25 Aug 16:22 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 2.6.10 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.42.0 => /opt/homebrew/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.2.0.0.1.1668646533
Xcode: N/A
Rosetta 2: false
CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CPPFLAGS: -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew:/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr
CMAKE_FRAMEWORK_PATH: /opt/homebrew/Frameworks:/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Frameworks
PKG_CONFIG_LIBDIR: /opt/homebrew/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/12:/usr/lib/pkgconfig
HOMEBREW_GIT: git
PATH: /opt/homebrew/Library/Homebrew/shims/shared:/Library/Frameworks/Python.framework/Versions/3.10/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
CPATH: /opt/homebrew/include:/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include
I think I have found the problem, I will try to find some time to fix it soon. It is a problem with Monterey and below.
It should be working now, could you try:
brew update
brew install sketchybar
Yay it's fixed! That was very fast, thank you for the hard work!
Thanks for the report!
This the issue I ran in while trying to install Value for Key not found??
Terminal Output:
New to Mac here so Im not sure what Im looking at