更新时间:2024-12-09 GMT+08:00
项目编译报错duplicate symbols
将已有的Swift项目中集成OBS.framework,在Build Settings的Other Linker Flags中添加了-force_load $(SRCROOT)/XXX/OBS.framework/OBS,然后将Allow Nonmodular includes in Framework Modules设置为Yes,编译时报错:
Showing Recent Errors Only
1639 duplicate symbols
修复方法:
Xcode -> TARGETS -> Build Settings -> Other Linker Flags 添加一行"-ld64"
父主题: 常见问题