Closed vasile135 closed 2 years ago
cc @rolfbjarne
@vasile135 could you get a binary build log and attach it here?
@vasile135 could you get a binary build log and attach it here?
Sure. msbuild.zip
This issue was moved to xamarin/xamarin-macios#16861
Description
Have a working Xamarin Forms application that relies on some iOS native static libraries. Trying to migrate the solution to .NET MAUI. When adding the same static libraries with the same configurations and the same gcc flag, the MAUI application build fails with:
Error: clang++ exited with code 1: duplicate symbol '_crypto_onetimeauth_verify' in: /Users/hetzner/Desktop/TestIndyLibraries/iOSBindingLibrary/bin/Debug/net7.0-ios/iOSBindingLibrary.resources/libsodium.a(libsodium_la-crypto_onetimeauth.o) /Users/hetzner/Desktop/TestIndyLibraries/iOSBindingLibrary/bin/Debug/net7.0-ios/iOSBindingLibrary.resources/libzmq.a(src_libzmq_la-tweetnacl.o)
In Xamarin, I believe that the error is addressed by the following Mtouch extra argument:Steps to Reproduce
In order to add native references, added an iOS Binding project to the MAUI solution.
Added native references (one of it is C++):
Added an additional Mtouch argument to the application project:
Installed the nuget package that uses these native libraries (Hyperledger.Aries).
When trying to build, the following error occurs:
Error: clang++ exited with code 1: duplicate symbol '_crypto_onetimeauth_verify' in:
From here I conclude that the gcc flag was not applied.
Link to public reproduction project repository
-
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
iOS 16
Did you find any workaround?
No
Relevant log output
No response