Help Center/ Object Storage Service/ SDK Reference/ iOS/ FAQ/ What Can I Do If "duplicate symbols" Error Appears During Project Compilation?
Updated on 2024-12-09 GMT+08:00

What Can I Do If "duplicate symbols" Error Appears During Project Compilation?

When integrating OBS.framework into an existing Swift project, after you added -force_load $(SRCROOT)/XXX/OBS.framework/OBS under Other Linker Flags in Build Settings and set Allow Nonmodular includes in Framework Modules to Yes, the following error appeared during compilation:

Showing Recent Errors Only

1639 duplicate symbols

Solution:

In Xcode, choose TARGETS > Build Settings. Under Other Linker Flags, add a row for -ld64.