Skip to content

Instantly share code, notes, and snippets.

@pkamb
Created October 24, 2017 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkamb/e0b5bf90e45cad714588feaf14eba523 to your computer and use it in GitHub Desktop.
Save pkamb/e0b5bf90e45cad714588feaf14eba523 to your computer and use it in GitHub Desktop.
rdar://21376114 - Custom input method app is added to Keyboard Input selector hundreds of times.
rdar://21376114
# Custom input method app is added to Keyboard Input selector hundreds of times. [`NumberInput` sample code]
Summary:
Custom input method app is added to Input selector hundreds of times.
<bug report here>
Apple Developer Relations
June 17 2015, 12:14 PM
Engineering has provided the following feedback regarding this issue:
If you are laying down 2 copies of NumberInput IM in both /Library/Input Methods/ & ~/Library/Input Methods/, with both having the same bundleID, that is undefined behavior.
Probably you should make them distinct IMs, but I’m unclear why you would want both for Dev purposes.
And a logout after installing an InputMethod is standard procedure.
However, for Development, I routinely ‘ditto’ my build/Debug bits into the InputMethod:
$ sudo ditto ./build/Debug/NumberInput.app /Library/Input\ Methods/NumberInput.app
$ killall -9 NumberInput
# -9 (SIGKILL) is required, otherwise running apps will refuse to talk to your input method, considering it to have died “abnormally”.
You’ve probably figured out that InputMethod development is easiest with a 2nd machine for remote debugging (I use LLDB), rather than inside Xcode on the same machine.
Please let us know whether the issue is resolved for you by updating your bug report.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment