以下是控制台错误
duplicate symbol _OBJC_CLASS_$_UnityAdsUnityWrapperDelegate in:
/Users/user128663/Library/Developer/Xcode/DerivedData/Unity-iPhone-chmuwvieslknrzcedvfymumvcref/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
/Users/user128663/Library/Developer/Xcode/DerivedData/Unity-iPhone-chmuwvieslknrzcedvfymumvcref/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-C0876E5C44C1B258.o
duplicate symbol _OBJC_METACLASS_$_UnityAdsUnityWrapperDelegate in:
/Users/user128663/Library/Developer/Xcode/DerivedData/Unity-iPhone-chmuwvieslknrzcedvfymumvcref/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
/Users/user128663/Library/Developer/Xcode/DerivedData/Unity-iPhone-chmuwvieslknrzcedvfymumvcref/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-C0876E5C44C1B258.o
ld: 3 duplicate symbols for architecture arm64
我无法弄清楚发生了什么,我已经尝试删除这些特定文件。
答案 0 :(得分:0)
这意味着您在项目中包含了重复的文件或框架。执行以下操作来解决问题
转到Xcode构建设置 - >将GCC_NO_COMMON_BLOCKS
设置为YES
还在构建设置中将enable testability
设置为NO