Closed TheMostDiligent closed 1 year ago
OK, after comparing the example XCode project settings line-by-line I finally found that Mac implementation now requires the GameController
framework. Linking with it fixed the problem.
It may be worth adding a note in imgui_impl_osx.mm
that this framework is now a requirement.
Thank you, will add comments in an incoming commit.
Version/Branch of Dear ImGui:
Version: 1.89.1 Branch: master
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_osx.mm + custom Compiler: AppleClang 13.1.6.13160021 (XCode 13.4) Operating System: MacOS (M1, arm64)
My Issue/Question:
After updating to the latest version (my was ~3 years old), I started getting the following linking errors when building on MacOS:
There seems to be nothing special about how
imgui_impl_osx.mm
is being built compared to other objective-c++ files, and I ran out of ideas of what may be wrong. Googling "_OBJCCLASS$_GCController" gives exactly zero relevant results. I tried:Any suggestion would be highly appreciated. Thank you!