我知道这是一个非常常见的错误,但我相信我已经尝试过我已经发布过的每一个解决方案。我使用Unity作为我的应用程序,并不太了解xcode语法。我也相信它可能来自UnityAds,但我不知道如何解决它。非常感谢您的帮助。
完整错误如下:
duplicate symbol _UnityAdsMakeStringCopy in:
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-AB557C98F189FEA5.o
duplicate symbol _OBJC_CLASS_$_UnityAdsUnityWrapper in:
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-AB557C98F189FEA5.o
duplicate symbol _OBJC_METACLASS_$_UnityAdsUnityWrapper in:
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-AB557C98F189FEA5.o
duplicate symbol _UnityAdsCreateNSString in:
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-AB557C98F189FEA5.o
duplicate symbol _OBJC_IVAR_$_UnityAdsUnityWrapper._gameId in:
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-6D362980BD529555.o
/Users/Ryan/Library/Developer/Xcode/DerivedData/Unity-iPhone-esxzrgjuyrqyrrdacqkggcjbgupy/Build/Intermediates/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/UnityAdsUnityWrapper-AB557C98F189FEA5.o
ld: 5 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
注:
Bitcode设置为NO(这是另一个问题的建议解决方案)