Duplicate symbol issues

后端 未结 8 906
Happy的楠姐
Happy的楠姐 2020-12-24 00:22

During a refactor of an iOS project, I ran into this bear of a bug. During the linking phase, I get this message:

ld: duplicate symbol _OBJC_IVAR_$_Ti

8条回答
  •  天命终不由人
    2020-12-24 01:04

    I had a same issue. the problem was that i had two libraries that contain same .m file.

    like this

    lib.a - for device.
    
    libCauly-universal.a - for simulator and device.
    

    so i deleted one.

提交回复
热议问题