cannot combine with previous 'type-name' declaration specifier

前端 未结 6 517
暖寄归人
暖寄归人 2021-01-17 12:23

My iOS app was working and all of a sudden I\'m seeing this error: \"cannot combine with previous \'type-name\' declaration specifier\". Any ideas on what could be causing t

6条回答
  •  北恋
    北恋 (楼主)
    2021-01-17 13:05

    It's one of the disadvantages of Xcode. Xcode is one of the worst IDE's ever, Apple is trying to make it better every update. But this issue raises when you add "Some word" in some places that the compiler of Xcode is not looking at it.

    My case was like in image :

    enter image description here

    I forgot to delete the word RESideMenu in AppDelegate.h and the strange thing that Xcode accepts the code until the Build and when it fires error it rays it in another and not related class.

提交回复
热议问题