-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'NSScreen *' Build Error #1200
Comments
I have the same experience, aarch64 mac:
|
However it works on x64. I am not an expert in Apple dev-tools, so I may have different versions installed there.
|
Same issue on x64.
|
Updating the command line tools using |
No such luck on M1 / aarch64 🤷 ❯ softwareupdate --all --install --force
Software Update Tool
Finding available software
No updates are available.
❯ make
rm -rf ./bin
xcrun clang ./src/osax/loader.m -shared -O2 -mmacosx-version-min=10.13 -arch x86_64 -o ./src/osax/loader -framework Foundation
xcrun clang ./src/osax/payload.m -shared -fPIC -O2 -mmacosx-version-min=10.13 -arch x86_64 -arch arm64e -o ./src/osax/payload -framework Foundation -framework Carbon
xcrun clang ./src/osax/mach_loader.m -O2 -mmacosx-version-min=10.13 -arch x86_64 -arch arm64e -o ./src/osax/mach_loader -framework Cocoa
xxd -i -a ./src/osax/loader ./src/osax/loader_bin.c
xxd -i -a ./src/osax/payload ./src/osax/payload_bin.c
xxd -i -a ./src/osax/mach_loader ./src/osax/mach_loader_bin.c
rm -f ./src/osax/loader
rm -f ./src/osax/payload
rm -f ./src/osax/mach_loader
mkdir -p ./bin
xcrun clang src/manifest.m src/osax/loader_bin.c src/osax/payload_bin.c src/osax/mach_loader_bin.c -std=c99 -Wall -g -O0 -fvisibility=hidden -mmacosx-version-min=10.13 -fno-objc-arc -arch x86_64 -arch arm64 -F/System/Library/PrivateFrameworks -framework Carbon -framework Cocoa -framework CoreServices -framework SkyLight -framework ScriptingBridge -o bin/yabai
In file included from src/manifest.m:72:
src/workspace.m:109:31: error: property 'safeAreaInsets' not found on object of type 'NSScreen *'
return screen.safeAreaInsets.top;
^
1 error generated.
make: *** [bin/yabai] Error 1
❯ uname -a
Darwin aeris.lan 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T8101 arm64 |
Upgrading to Monterey (OS X 12) solved this for me. |
I'm in the same boat here, no luck on mb air arm64 |
Upgrading also did not work for me. I had to download and install version 12 or later of the command line tools manually to get this to work: https://developer.apple.com/download/all/?q=command%20line%20tools |
/usr/bin/make -f /Users/thundermac/CLionProjects/yabai/makefile all
rm -rf ./bin
xcrun clang ./src/osax/loader.m -shared -O2 -mmacosx-version-min=10.13 -arch x86_64 -o ./src/osax/loader -framework Foundation
xcrun clang ./src/osax/payload.m -shared -fPIC -O2 -mmacosx-version-min=10.13 -arch x86_64 -arch arm64e -o ./src/osax/payload -framework Foundation -framework Carbon
xcrun clang ./src/osax/mach_loader.m -O2 -mmacosx-version-min=10.13 -arch x86_64 -arch arm64e -o ./src/osax/mach_loader -framework Cocoa
xxd -i -a ./src/osax/loader ./src/osax/loader_bin.c
xxd -i -a ./src/osax/payload ./src/osax/payload_bin.c
xxd -i -a ./src/osax/mach_loader ./src/osax/mach_loader_bin.c
rm -f ./src/osax/loader
rm -f ./src/osax/payload
rm -f ./src/osax/mach_loader
mkdir -p ./bin
xcrun clang src/manifest.m src/osax/loader_bin.c src/osax/payload_bin.c src/osax/mach_loader_bin.c -std=c99 -Wall -g -O0 -fvisibility=hidden -mmacosx-version-min=10.13 -fno-objc-arc -arch x86_64 -arch arm64 -F/System/Library/PrivateFrameworks -framework Carbon -framework Cocoa -framework CoreServices -framework SkyLight -framework ScriptingBridge -o bin/yabai
In file included from src/manifest.m:72:
src/workspace.m:109:31: error: property 'safeAreaInsets' not found on object of type 'NSScreen *'
return screen.safeAreaInsets.top;
^
1 error generated.
make: *** [bin/yabai] Error 1
Process finished with exit code 2
The text was updated successfully, but these errors were encountered: