Xcode Objective-c 警告“为不存在的方法创建选择器”与 OCUnit (SenTestingKit)
当我尝试使用 OCUnit (SenTestingKit) 编写一些单元测试时,我开始在 XCode 中收到如下警告。
warning: creating selector for nonexistent method 'myMethodName1:' warning: creating selector for nonexistent method 'myMethodName2:' ... warning: creating selector for nonexistent method 'release' warning: creating selector for nonexistent method 'retain' warning: creating selector for nonexistent method 'alloc' warning: creating selector for nonexistent method 'init'
这是我应该担心的事情,还是我可以通过某些编译器标志以某种方式禁用这些类型的警告?
I started getting getting warnings like the following in XCode when trying to write some unit tests with OCUnit (SenTestingKit).
warning: creating selector for nonexistent method 'myMethodName1:' warning: creating selector for nonexistent method 'myMethodName2:' ... warning: creating selector for nonexistent method 'release' warning: creating selector for nonexistent method 'retain' warning: creating selector for nonexistent method 'alloc' warning: creating selector for nonexistent method 'init'
Is it something I should worry about, or can I somehow disable these types of warnings by some compiler flag?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想看看这是否可以帮助您解决问题:
http://www.mail-archive.com/ [电子邮件受保护]/msg09557.html
You may want to see if this helps you with your problem:
http://www.mail-archive.com/[email protected]/msg09557.html