# IMKClient subclass: chose IMKClient\_Legacy runtime error on MacOS 15

**URL:** <https://discourse.glfw.org/t/imkclient-subclass-chose-imkclient-legacy-runtime-error-on-macos-15/2764>\
**Category:** support\
**Created:** [October 16, 2024, 1:22pm UTC](https://discourse.glfw.org/t/imkclient-subclass-chose-imkclient-legacy-runtime-error-on-macos-15/2764 "2024-10-16T13:22:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drfuchs](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@drfuchs](https://discourse.glfw.org/u/drfuchs)\
**Post date:** [October 16, 2024, 1:22pm UTC](https://discourse.glfw.org/t/imkclient-subclass-chose-imkclient-legacy-runtime-error-on-macos-15/2764/1 "2024-10-16T13:22:54Z")

</div>

Using GLFW 3.4 on MacOS 15.0.1 using Apple clang version 16.0.0 (clang-1600.0.26.3) Target: arm64-apple-darwin24.0.0 to compile the basic example code on [Documentation | GLFW](https://www.glfw.org/documentation.html) get the following messages when execution starts:

… a.out[6930:998382] +[IMKClient subclass]: chose IMKClient\_Legacy  
… a.out[6930:998382] +[IMKInputSession subclass]: chose IMKInputSession\_Legacy

The first message seems to happen during the call to glfwPollEvents(). Nonetheless, the example program seems to run OK (as does my larger program that now has the same issue).

Probably unrelatedly, the compiler complains that:

glfwtest.c:26:9: warning: ‘glClear’ is deprecated: first deprecated in macOS 10.14 - OpenGL API deprecated. (Define GL\_SILENCE\_DEPRECATION to silence these warnings) [-Wdeprecated-declarations]  
26 | glClear(GL\_COLOR\_BUFFER\_BIT);  
| ^  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers/gl.h:2394:13: note: ‘glClear’ has been explicitly marked deprecated here  
2394 | extern void glClear (GLbitfield mask) OPENGL\_DEPRECATED(10.0, 10.14);  
| ^

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [October 17, 2024, 7:45am UTC](https://discourse.glfw.org/t/imkclient-subclass-chose-imkclient-legacy-runtime-error-on-macos-15/2764/2 "2024-10-17T07:45:52Z")

</div>

The message about about `IMKCLient_Legacy` appears to be some debug output accidentally left in MacOS libraries. I think it will only appear for apps launched from the console or console apps themselves.

The link warning about OpenGL API being deprecated is because Mac want folk to switch to Metal. GLFW can work with Vulkan on [MoltenVK](https://github.com/KhronosGroup/MoltenVK) on MacOS if you want, but OpenGL should continue to function despite being deprecated.

---

<div class="post-metadata">

**Author:** ![drfuchs](https://avatars.discourse-cdn.com/v4/letter/d/db5fbb/32.png) [@drfuchs](https://discourse.glfw.org/u/drfuchs)\
**Post date:** [October 18, 2024, 1:00pm UTC](https://discourse.glfw.org/t/imkclient-subclass-chose-imkclient-legacy-runtime-error-on-macos-15/2764/3 "2024-10-18T13:00:48Z")

</div>

Yup, all console apps using GLFW (or SDL2 or whatever else) seem to be getting these messages; no reaction from Apple yet: [For several applications, getting [IMKCli… - Apple Community](https://discussions.apple.com/thread/255761734)
