【问题标题】:Unrecognized selector sent to instance IOS 10无法识别的选择器发送到实例 IOS 10
【发布时间】:2018-09-06 16:16:56
【问题描述】:

当我在 IOS10.3.3 上启动我的应用程序时,我遇到了一个非常棘手的问题。确实,我在 splashviewController 中遇到了这个错误:

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
   // [[EMAnalyticsManager sharedInstance]sendScreenViewWithName:SplashScreen];
}

我收到了这条崩溃消息:

[__NSCFString nsli_lowerAttribute:intoExpression:withCoefficient:forConstraint:]: unrecognized selector sent to instance 0x165e3630
2018-09-06 16:57:31.456059+0100 **********[2461:1072580] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString nsli_lowerAttribute:intoExpression:withCoefficient:forConstraint:]: unrecognized selector sent to instance 0x165e3630'

我做了很多研究来了解这次在 IOS11 中没有发生的崩溃的原因。

有什么帮助吗??

【问题讨论】:

标签: objective-c xcode crash


【解决方案1】:

在加载第一个视图控制器时,某些约束可能会导致此问题。请检查您的约束,您也可以删除约束,然后验证它是否有效。

【讨论】:

    猜你喜欢
    • 2014-02-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-18
    • 1970-01-01
    • 2019-08-28
    • 2012-07-24
    相关资源
    最近更新 更多