My app is written in golang and uses C libraries to send text as if it is typed on a keyboard. The app executable works fine when invoked via command line from a directory under my home directory. When I invoke the executable in the app bundle from the command line, the app loads and displays the icon in the status bar. But when the app tries to send text to the cursor, I get:
SIGILL: illegal instruction
PC=0x7fff676b98f1 m=5 sigcode=1
instruction bytes: 0xf 0xb 0x55 0x48 0x89 0xe5 0x48 0x8b 0x7 0xf 0xb6 0x40 0x28 0x48 0x8d 0x48
.... (lots of trace information)
Ordinarily, app behavior like this may be seen as a security risk. Can you point me to guidelines around this issue and alternatives for achieving my goal.
The app listens for MIDI input and translates it into text, allowing a MIDI instrument to be used as an alternative to a QWERTY keyboard.
Disclosure: This is my first MacOS App. Golang is used so I may compile the same code for other platforms.
Thanks for any assistance!
David