Skip to content
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

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

Open
nikitavoloboev opened this issue Aug 27, 2024 · 2 comments

Comments

@nikitavoloboev
Copy link

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
Copy link
Author

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
Copy link
Author

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 ❤️

@nikitavoloboev nikitavoloboev changed the title Issue trying to build project with make package Issue trying to build project with make package (and running it with existing Karabiner Elements running) Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants