标题84 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
react native项目在打包时出现下列问题:
xx/Build/Intermediates.noindex/ArchiveIntermediates/xx/BuildProductsPath/Release-iphoneos/xx.a(xx.o)
ld: 84 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
网上有很多种解决方案,我这里不一一列出了。我用网上的方法试了一个遍,但是都解决不了。之后我自己琢磨出了一个笨的解决方案,希望对大家有帮助。
我的解决方法:
一般是pod内React.a应用重复
复制xx/Build/Intermediates.noindex/ArchiveIntermediates/xx/BuildProductsPath/Release-iphoneos/xx.a(xx.o)括号中xx.o的类名xx,到pod下的React库内build phaess 下直接Filter查找,然后删掉找到的.h和.m文件。
然后一个一个的找到并删除。