Duplicate Symbols for Architecture arm64

前端 未结 24 2632
礼貌的吻别
礼貌的吻别 2020-12-02 16:21

When I try running my Xcode Project it fails with an error stating that I have duplicate symbols. I looked online where the find these duplicates but have had no luck:

24条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 16:40

    For me, the issue was the style of creation of const, that worked fine until this iOS8.. i had a few lines as:

    int const kView_LayoutCount = 3;
    

    in my .h file. Six lines like resulted in 636 linker files once common blocks was set to NO. (14k+ if YES). Moved the lines to .m after stripping .h of the value declaration and compilation was good to go.

    Hope this helps others!

提交回复
热议问题