pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.83k stars 838 forks source link

Issue trying to build project with `make package` (and running it with existing Karabiner Elements running) #3910

Open nikitavoloboev opened 2 months ago

nikitavoloboev commented 2 months ago
make package
/Library/Developer/CommandLineTools/usr/bin/make -C src clean
/Library/Developer/CommandLineTools/usr/bin/make -C apps/AppIconSwitcher clean
rm -rf *.xcodeproj
rm -rf build
/Library/Developer/CommandLineTools/usr/bin/make -C apps/EventViewer clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C apps/Menu clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C apps/MultitouchExtension clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C apps/NotificationWindow clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C apps/ServiceManager-Non-Privileged-Agents clean
rm -rf *.xcodeproj
rm -rf build
/Library/Developer/CommandLineTools/usr/bin/make -C apps/ServiceManager-Privileged-Daemons clean
rm -rf *.xcodeproj
rm -rf build
/Library/Developer/CommandLineTools/usr/bin/make -C apps/SettingsWindow clean
rm -fr ~/Library/Developer/Xcode/DerivedData/Karabiner-Elements-*
rm -fr ~/Library/Caches/org.swift.swiftpm/repositories/Sparkle-*
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C bin/cli clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C core/console_user_server clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C core/grabber clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C core/session_monitor clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C lib/libkrbn clean
rm -fr *.xcodeproj
rm -fr build
/Library/Developer/CommandLineTools/usr/bin/make -C tests clean
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf build
rm -rf pkgroot
rm -f *.dmg
./make-package.sh
make build
........................
/Library/Developer/CommandLineTools/usr/bin/make -C src
/Library/Developer/CommandLineTools/usr/bin/make -C apps/AppIconSwitcher
python3 ../../../scripts/update_version.py
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/share/karabiner_version.h
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/appendix/GamePadViewer/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/MultitouchExtension/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/NotificationWindow/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/ServiceManager-Privileged-Daemons/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/SettingsWindow/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/AppIconSwitcher/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/Menu/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/ServiceManager-Non-Privileged-Agents/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/EventViewer/Resources/Info.plist
Update /Users/nikiv/clones/pqrs-org--Karabiner-Elements/pkginfo/Distribution.xml
xcodegen generate
⚙️  Generating plists...
⚙️  Generating project...
⚙️  Writing project...
Created project at /Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/AppIconSwitcher/Karabiner-AppIconSwitcher.xcodeproj
xcodebuild -configuration Release -alltargets SYMROOT="/Users/nikiv/clones/pqrs-org--Karabiner-Elements/src/apps/AppIconSwitcher/build"
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
make[3]: *** [all] Error 1
make[2]: *** [all] Error 2
make[1]: *** [build] Error 2

make: *** [package] Error 99

I only have Xcode-Beta (perhaps that's why?)

image
nikitavoloboev commented 2 months ago

this doesn't help

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Password:
xcode-select: error: invalid developer directory '/Applications/Xcode.app/Contents/Developer'

I did instructions of setup as per readme

nikitavoloboev commented 2 months ago

ok it was sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer/ I needed

after it, build ran but I don't fully get how I can test the build

I am running karabiner already

I want to try do a thing where I log all events in karabiner (after event happened to sqlite db)

have another idea to do after this, but first want to do this

would love help on this ❤️