clap-wrapper icon indicating copy to clipboard operation
clap-wrapper copied to clipboard

unable to build standalone on mac due to ibtools (MainMenu.xib)

Open mightgoyardstill opened this issue 4 months ago • 5 comments

maybe this might be better off in discussions or pull requests, but i was wondering how tightly coupled is the need for MainMenu.xib in the mac standalone build? I don't use xcode and keep getting an error when i try to build a clap as a standalone

[build] xcode-select: error: tool 'ibtool' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

mightgoyardstill avatar Aug 03 '25 22:08 mightgoyardstill

The Mac standalone is a cocoa app coded with a xib. So very right now

We could unwind that and remove the requirement and use cocoa in c++ I guess. Do you know how to do that? Would be happy to consider a pr or work on one.

But right now yeah you need Xcode installed

baconpaul avatar Aug 04 '25 01:08 baconpaul

i'll have a dig but unfortunately i was trying to look at the standalone code to figure out how to write my own host!

is there a version anyway that is just the isolated standalone code?

mightgoyardstill avatar Aug 05 '25 18:08 mightgoyardstill

the windows and linux ones are.

if you install gtk you can probably make the linux one build on macos.

but the au and vst3 wrappers are also hosts all using IHost

baconpaul avatar Aug 05 '25 21:08 baconpaul

And the single most rudimentary host there is is the stub host we use in clap-info project. the clap-host project also implements a host but requires qt and vcpkg so may also not work for you.

baconpaul avatar Aug 05 '25 21:08 baconpaul

ok thanks for your help - i've been using your micro-host as a basic example and have gotten quite far with my own version from that (but thats maybe not for here). if i have any luck with some cocoa c++ stuff i'll let you know

mightgoyardstill avatar Aug 06 '25 00:08 mightgoyardstill