Duplicate Symbols for Architecture arm64

前端 未结 24 2633
礼貌的吻别
礼貌的吻别 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 17:02

    For me, I created a method called sampleMethod in ViewController_A and created the same method in ViewController_B too, It caused me this error, then i changed the method name in ViewController_B to secondSampleMethod. It fixed the error.

    Seems like a Good feature to reduce the code and not to duplicate the same code in many places.

    I tried changing the No Common blocks from Yes to No then enabling testability from Yes to No. It didn't worked. I Checked duplicate files also in build phases, but there is no duplicate files.

提交回复
热议问题