Xcode 8 says “Do you want to add a stub?” How do I answer?

后端 未结 3 1872
一整个雨季
一整个雨季 2021-01-18 04:49

In Xcode 8, if you declare that a class (or struct) conforms to a protocol, but haven\'t implemented the required methods (functions?) Xcode will give this message \"Type \'

3条回答
  •  自闭症患者
    2021-01-18 05:40

    The answer of raphh is right but xcode is still a little buggy here (at least for me),

    If you don't select the Fix-it right after compiling the dot mark transform to exclamation mark and you can't make it appear again unless you try to build one more time.

    Right after building : Dot error icon

    When you don't do the Fix-it right away : exclamation mark error icon

    You have to re-build to get the dot icon again when you have several methods to implement and you did do the Fix-it for the first one.

提交回复
热议问题