When Duplicate Symbol _OBJC_CLASS_ Appears in Large Numbers During iOS App Build
iOS
2015-12-21 06:37 (10 years ago)

When encountering a large number of duplicate symbol _OBJC_CLASS_ errors during an iOS app build
After updating CocoaPods and building the project, I encountered a linker error. Upon examining the message, I noticed a large number of duplicate symbol _OBJC_CLASS_$_ errors.
→ Check the project's Build Settings → Other Linker Flags.
-ObjC -l"Pods-AFNetworking" -l"Pods-MBProgressHUD" -l"Pods-SDWebImage" -all_load ...
Remove all instances of -l"Pods-library name".
-ObjC -all_load ...
It should look like this.
Build the project. → OK
Please rate this article (No signup or login required)
Currently unrated
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.