Closed eli1stark closed 2 years ago
Hi @eli1stark thanks for report the issue, is this happening on simulator ios or in a real device?
Both
Hello, any updates? I know that you are busy and I don't want to be rude, just genuinely curious. I've been blocked by this issue a little bit at my company's project. Is there a way I can help you to resolve this? I can invest some time
Hi @eli1stark yeah I was a bit busy because of work and personal stuffs, but this issue is because you are using both libraries build with go and both share some symbols, so what I did was rename using this list https://github.com/jerson/openpgp-mobile/blob/master/ios_syms.txt in https://github.com/jerson/openpgp-mobile/blob/master/Makefile.ios
one quick fix is stop using one library, because the initial fix seems no work.
but when I'll have some time i will continue testing more tools to rename or to unexpose those symbols.
Hi @jerson
I'm getting the same error but different from eli2start I only have one golang (yours) package in my project. We are using your package to encrypt credit card data so it's highly important for us.
Do you have any quick fixes we can try? I didn't understand what was your suggestion in the previous comment. Could you elaborate more?
Really appreciate the help.
Hi @Gabriel-Azevedo which version are you using?
@Gabriel-Azevedo just released a new version without the objcopy renaming stuffs, so probably that will work for you
openpgp: ^3.2.7
ref: https://github.com/jerson/flutter-openpgp/runs/5652557901?check_suite_focus=true
Error (Xcode): 21 duplicate symbols for architecture arm64
when I have 2 libraries together and try to build an app, fast_rsa: ^3.2.0
and openpgp: ^3.2.7
. When I remove fast_rsa
everything works good.
hi @eli1stark sorry for the delay, but I finally released a new version https://pub.dev/packages/openpgp/versions/3.4.3 it can be used along with other go based libraries, maybe is too late but its here for future references, I'm gonna close this ticket but if its still happening feel free to reopen
Sample code:
OpenPGP.encrypt('data', 'key')
This code throwsUnhandled Exception: type 'List<dynamic>' is not a subtype of type 'FutureOr<Uint8List>?'
openpgp: ^3.2.6