firstfloorsoftware / flutter_sodium

Flutter bindings for libsodium
BSD 3-Clause "New" or "Revised" License
102 stars 47 forks source link

Build issue when using Flutter 2.5.0 #67

Open peterstojanowski opened 2 years ago

peterstojanowski commented 2 years ago

Hi guys,

when building the example app for iOS Simulator I'm getting this error:

ld: in /Users/peter/Downloads/flutter_sodium-master/example/ios/Pods/../.symlinks/plugins/flutter_sodium/ios/libsodium.a(libsodium_la-aead_chacha20poly1305.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/peter/Downloads/flutter_sodium-master/example/ios/Pods/../.symlinks/plugins/flutter_sodium/ios/libsodium.a' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

Which suggests that libsodium.a does not support arm64 architecture.

Anyone can help with this?

Thanks, Peter

s-j-a commented 2 years ago

same issue, had to downgrade back to 2.2.3

kozw commented 2 years ago

Confirmed. Looks like you're not the only one. As a workaround for now, the following suggestion seems to work -> https://github.com/RxReader/tencent_kit/issues/54#issuecomment-915978600

Modify the example/ios/Podfile as per the comment in the link. Works on my machine (you may need to remove the Podfile.lock)

Still not sure what's going on.

GabrielAraujo commented 2 years ago

Also having this issue with the core card lib