Unless you are sure this is the path of the library on every single mac system and there is not way to change it's location without patching the source code of the package (not the packaging script), you should never hard code the path like this here.
Also there is [this](https://github.com/fcitx/fcitx/pull/137) pull request which may be related. (not the exact problem but probably similar solution.)