0

In our iOS project we are using openssl for issuing certificate. It' working well. Now I have to install Metamask POD and build failed because of duplicate symbols.

I am getting these errors :

duplicate symbol '_CMAC_CTX_free' in:
    /Users/thierry/Library/Developer/Xcode/DerivedData/ahngliwodnauwrdtqqbmoozbwdam/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/metamask-ios-sdk/libecies.a(cmac.o)
    /Users/thierry/Documents/Developpement/iOS/submodules/SRP/OpenSSL/Debug/iphoneos/libcrypto.a(cmac.o)
duplicate symbol '_cmac_asn1_meth' in:
    /Users/thierry/Library/Developer/Xcode/DerivedData/ahngliwodnauwrdtqqbmoozbwdam/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/metamask-ios-sdk/libecies.a(cm_ameth.o)
    /Users/thierry/Documents/Developpement/iOS/submodules/SRP/OpenSSL/Debug/iphoneos/libcrypto.a(cm_ameth.o)
duplicate symbol '_cmac_pkey_meth' in:
    /Users/thierry/Library/Developer/Xcode/DerivedData/ahngliwodnauwrdtqqbmoozbwdam/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/metamask-ios-sdk/libecies.a(cm_pmeth.o)
    /Users/thierry/Documents/Developpement/iOS/submodules/SRP/OpenSSL/Debug/iphoneos/libcrypto.a(cm_pmeth.o)

...

I understand these errors since Metamask/ECIES is redefining OpenSSL symbols.

But I am unable to fix it.

Do you have an idea?

Thanks for your help.

thierryb
  • 3,660
  • 4
  • 42
  • 58

0 Answers0