Xcode 的“不完整的实现”警告

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9182252/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:15:10  来源:igfitidea点击:

Xcode's "Incomplete implementation" warning

objective-cxcode

提问by pepsi

Sometimes I forget to implement a method in one of my classes, and Xcode displays a "Incomplete implementation" warning.

有时我忘记在我的一个类中实现一个方法,Xcode 会显示“不完整的实现”警告。

Is there any way in Xcode to see whichmethod implementation is missing?

Xcode 中是否有任何方法可以查看缺少哪个方法实现?

回答by Dan F

In your error view (command+4, by default, or the 4th tab in the left hand view) you can click the little arrow next to the warning, and it should tell you

在您的错误视图(默认情况下为 command+4,或左侧视图中的第 4 个选项卡)中,您可以单击警告旁边的小箭头,它应该会告诉您

Method definition for 'blah' not found

找不到“blah”的方法定义

回答by Josh Brown

I've found that sometimes the Log Navigator is the only way to show the actual problem - in at least one case, the error view didn't help me. To see the Log Navigator, you can use View > Navigators > Show Log Navigator (or ?7 by default).

我发现有时日志导航器是显示实际问题的唯一方法 - 至少在一种情况下,错误视图对我没有帮助。要查看日志导航器,您可以使用“查看”>“导航器”>“显示日志导航器”(或默认情况下为 ?7)。