How to solve 'duplicate symbols for architecture arm64' error?

Michael Yang picture Michael Yang · May 4, 2017 · Viewed 13.8k times · Source

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~

The error info: Error Info from Xcode

From the error info I found that WPBuySkinAlertView maybe the duplicate class.So I seach the file in the project.

Duplicate file

There are two WPBuySkinAlertView files in the project.

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.

Answer

Jignesh Mayani picture Jignesh Mayani · May 4, 2017

Select Proiect ===> Target ===> Build phase ==> Compile source search WPBuySkinAlertView this name you will see 2 file in search result remove one from them