gpt4 book ai didi

ios - 报告错误 - 如何读取输出

转载 作者:行者123 更新时间:2023-11-28 22:06:56 26 4
gpt4 key购买 nike

我正在对我的一个 UIView 的布局进行一些更改(添加额外的 uitextfields 并将它们的内容添加到电子邮件中)。

我刚刚运行它并收到以下错误:

    #import <UIKit/UIKit.h>

#import "RoadSafetyAppAppDelegate.h"

int main(int argc, char * argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([RoadSafetyAppAppDelegate class]));
}
}

我打算如何使用它来确定我的错误发生在哪里,我将如何修复它?

这是控制台输出:

2014-05-20 09:23:20.813 Road Safety App V2[1910:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Hazard_IdentificationViewController 0x16e6a240> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key HazardLocationNoPhoto.'
*** First throw call stack:
(0x2e881fd3 0x390faccf 0x2e881ce9 0x2f1c5f23 0x2f1d7b55 0x2e7f213b 0x3140cec3 0x3136562b 0x311c1bed 0x310a230d 0x310a2289 0x3114b937 0x311884b3 0x31186deb 0x31185e55 0x31368cab 0x310d3057 0x310d2ff7 0x310d2fd1 0x310be737 0x310d2a4f 0x310d2721 0x310cd6eb 0x310a28ed 0x310a0f97 0x2e84d25b 0x2e84c72b 0x2e84af1f 0x2e7b5f0f 0x2e7b5cf3 0x3370e663 0x3110116d 0x3ad55 0x39607ab7)
libc++abi.dylib: terminating with uncaught exception of type NSException

我删除了对“HazardLocationNoPhoto”的所有可见引用,并将其替换为“HazardStreet”——它还能藏在哪里?

最佳答案

2014-05-20 09:23:20.813 Road Safety App V2[1910:60b] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key HazardLocationNoPhoto.'

I have removed all visible references to "HazardLocationNoPhoto" and replaced it with "HazardStreet" - where else would it be hiding?

看来问题是名称已更改,但并非该名称的所有实例都已更改。

最好的猜测是您在 Interface Builder 中仍然有 HazardLocationNoPhoto

作为最后的努力,您可以在文本编辑器中打开 .xib.storyboard 文件并搜索 HazardLocationNoPhoto——只是看看它是否在那里。如果找到,请在 IB 中修复它。

关于ios - 报告错误 - 如何读取输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23748598/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com