Cannot precompile CImGui for Julia 1.8.5 on MacOS (Ventura 13.3.1)

I’ve been using the great Julia wrapper for the CImGui for quiet a while now and never encountered any problems. Recently I wanted to run Julia on MacOS and CImGui failed at precompiling. I am using CImGui.jl v1.79.0.

There is sadly very little information on why this could fail on different operating systems. Since I know nothing about MacOS and couldn’t solve this problem myself, I am curious if there is someone who could help me with this or who has encountered a similar problem.

The error and stacktrace looks like this:

julia> using CImGui
[ Info: Precompiling CImGui [5d785b6c-b76f-510e-a07c-3070796c7e87]
ERROR: LoadError: UndefVarError: libcimgui not defined
 [1] igGET_FLT_MAX()
   @ CImGui.LibCImGui ~/.julia/packages/CImGui/Gsjd1/gen/libcimgui_api.jl:3726
 [2] top-level scope
   @ ~/.julia/packages/CImGui/Gsjd1/src/CImGui.jl:22
 [3] include
   @ ./Base.jl:419 [inlined]
 [4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base ./loading.jl:1554
 [5] top-level scope
   @ stdin:1
in expression starting at /Users/leonhardsiegel/.julia/packages/CImGui/Gsjd1/src/CImGui.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile CImGui [5d785b6c-b76f-510e-a07c-3070796c7e87] to /Users/leonhardsiegel/.julia/compiled/v1.8/CImGui/jl_bze2yx.
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base ./loading.jl:1707
 [3] compilecache
   @ ./loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1200
 [6] macro expansion
   @ ./loading.jl:1180 [inlined]
 [7] macro expansion
   @ ./lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144