当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - How to identify crash from XIB

问题描述:

I don't have any code implemented in view controller to set the font or attributedLabel. But I'm seeing crash with below reason.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: -[_SwiftValue pointSize]: unrecognized selector sent to instance 0x610001040ba0

网友答案:

There is another way of debugging issue. When app is crashed, check left panel and you will observe threads stack. In that find out Obj_exception_throw select that and use your logging area to run command po $arg1. This may give you the correct reason for crashing.

Or else, you can try using Application Unit tests for verifying all your IBOutlets and objects, loaded from NIBs.

网友答案:

You can select that xib and open it as source code.

Or search tho whole project to find that.

分享给朋友:
您可能感兴趣的文章:
随机阅读: