-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App fails do find symbols in icui18n.so #2
Comments
I got a bit further. Already found that 'ucol_strcoll_55' seems to be statical linked into libswiftCore nowadays. I don't understand why this symbol can't be resolved then still. |
Faced the same problem, did you ever found a solution? |
No sadly not. I was investigating different programming languages to use natively on mobile platforms. Because I did not want to spend more time resolving this issue on android, we went with another language. As far as I remember, android devices often come with preinstalled/preloaded versions of libicui18n.so. If that's the case they're not loaded again when an android application tries to load it's custom version. If any symbols are missing in the preloaded version the mentioned exception occurs. If I remember right, the only solution (which was proposed) would be to have one statically linked (fat) library which contains all required symbols. But because the swift tooling was not there at that time to produce fat libraries, I just stoped spending time on it. Don't know if this has changed since then. |
It’s being solved by statically linking libicui18n when creating the final executable file. |
Hey,
I completed all tasks on how to build the samples app.
I did:
Due the gradle-plugin does not package the libicu*.so at the moment, I added them to the jniLibs directory to get a standalone apk. For everything else I followed the guide available at https://github.com/apple/swift/blob/master/docs/Android.md.
But when I run the application on an actual device I receive the following exception:
This is thrown when libswiftCore is about to be loaded. I checked all libraries and the 'ucol_strcoll_55' symbol is available in libicui18n.so which is loaded before.
System enviroment:
Do you know what goes wrong?
Thanks for your help!
The text was updated successfully, but these errors were encountered: