xcode 如何解决“架构 arm64 的重复符号”错误?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43776236/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to solve 'duplicate symbols for architecture arm64' error?
提问by Michael Yang
When I try running my Xcode Project it fails with an error stating that I have duplicate symbols. Below is the way I sovled this error. Hope to help you~
当我尝试运行我的 Xcode 项目时,它失败并显示错误,指出我有重复的符号。下面是我解决这个错误的方法。希望能帮到你~
From the error info I found that WPBuySkinAlertView maybe the duplicate class.So I seach the file in the project.
从错误信息中,我发现 WPBuySkinAlertView 可能是重复的类。所以我在项目中搜索了该文件。
There are two WPBuySkinAlertView files in the project.
项目中有两个 WPBuySkinAlertView 文件。
So, next time when you come with this error, check your project according to the error info, find the duplicate classes and remove the one.
因此,下次遇到此错误时,请根据错误信息检查您的项目,找到重复的类并删除一个。
回答by Silversky Technology
Select Proiect ===> Target ===> Build phase ==> Compile source search WPBuySkinAlertView this name you will see 2 file in search result remove one from them
选择 Proiect ===> Target ===> Build phase ==> Compile source search WPBuySkinAlertView 这个名字你会在搜索结果中看到 2 个文件,从中删除一个