Hi, we are integrating react-viro into our iOS project, while we got this error: ld: 25 duplicate symbols for architecture arm64
and
duplicate symbol _zipOpenNewFileInZip3_64 in:
/Users/samuandris/Documents/AR_development/drops-react-native/ios/Pods/GVRSDK/Libraries/libGVRSDK.a(zip_6df76a0f0a81f58a36d4f1080f6b32db.o)
/Users/samuandris/Library/Developer/Xcode/DerivedData/Drops-chwfszhvmgifwfgkazlkjrhclmir/Build/Products/Debug-iphoneos/SSZipArchive/libSSZipArchive.a(zip.o)
As far as I understand we include SSZipArchive
and also cardboardSDK
includes it, and the duplication comes from this. (cardboardSDK
is included in react-viro).
Did you face the same problem before? Could you suggest a solution for this?
Thanks Andras
Hi @itchingpixels,
We’re looking at this issue and we have this tentative solution that removes the GVRSDK dependency while making sure Viro doesn’t crash when it starts up, but we’re still trying to reproduce the issue you see. We tried using SSZipArchive as well as GVRSDK through Cocoapods, but that compiled just fine for us (maybe using frameworks works fine with these conflicting dependencies?).
In any case, here’s the tentative solution:
s.dependency 'GVRSDK', '1.120.0'
from{your_project}/node_modules/react-viro/ios/dist/ViroRenderer/ViroKit.podspec
.cd {your_project}/ios
rm Podfile.lock
pod 'ViroKit', ...
line:pod install
.xcworkspace
and perform aClean Build Folder...
before building your application again.That should remove the
libGVRSDK.a
that is conflicting with your included library.Alternatively, you might want to try importing
SSZipArchive.a
through Cocoapods. Not sure why including it for us doesn’t cause a compilation error on our side.Thanks,