gpt4 book ai didi

ios - [UIDeviceRGBColor countByEnumeratingWithState :objects:count:]: unrecognized selector sent to instance 0x16577e10 -> A Crash After makeKeyAndVisible

转载 作者:行者123 更新时间:2023-12-01 18:07:09 24 4
gpt4 key购买 nike

调试时出现以下错误,发现在此行之后,应用程序崩溃:

[self.window makeKeyAndVisible];

尝试通过 Xcode 8.0 在设备上运行时,出现以下错误日志:

2016-10-03 11:03:59.827994 Slots[5972:1125279] -[UIDeviceRGBColor countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x16577e10

2016-10-03 11:03:59.830292 Slots[5972:1125279] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIDeviceRGBColor countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x16577e10'

* First throw call stack: (0x1db25e07 0x1cd8b077 0x1db2b515 0x1db29589 0x1da4ef08 0x2303d18d 0x23037bff 0x1e3b39a5 0x1e3b2e6d 0x23047fc9 0x23048641 0x1e3b39a5 0x1e3b9d3d 0x1e354ca7 0x1e3b39a5 0x1e3b2e6d 0x23047507 0x22ec2589 0x22c9eecb 0x22b6b067 0x22b6af9f 0x22b716a3 0x22b6eb9d 0x22be1051 0xc3cf1 0x22bdd33b 0x22de9e01 0x22def41f 0x22e01fc5 0x22dec805 0x1f3ea97b 0x1f3ea835 0x1f3eab1f 0x1dae1c8b 0x1dae1795 0x1dadfa6b 0x1da2f073 0x1da2ee81 0x22bd6b69 0x22bd1201 0xc398f 0x1d1fa50b) **libc++abi.dylib: terminating with uncaught exception of type NSException



任何可能导致此崩溃的想法。我没有 Storyboard,只有 xibs。

最佳答案

iOS 10 相同的问题, xcode8从/或使用 xib's 加载 View 或初始化 View 时.

您可以尝试以下解决方案:

  • 转到您的接口(interface)文件,表示Xib'sNib's .
  • 在右侧,导航到 文件督察标签。
  • 更改 的值“构建”到“iOS 7.0 及更高版本”或任何其他 iOS 版本及更高版本。
  • 清理、重建和运行项目。

  • 检查图像以供引用:

    img

    关于ios - [UIDeviceRGBColor countByEnumeratingWithState :objects:count:]: unrecognized selector sent to instance 0x16577e10 -> A Crash After makeKeyAndVisible,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39827370/

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