xcode8.1:invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug

前端 未结 3 1479
名媛妹妹
名媛妹妹 2021-02-10 12:36

I write the code below:

JSImgDeleteCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:displayCellID forIndexPath:indexPath];


        
相关标签:
3条回答
  • 2021-02-10 13:08

    I had faced the same issue

    CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.

    But I found this is not the real reason behind crashing the app, the real reason i found below the above message as Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]:unrecognized selector sent to instance 0x102ed2fb0' on console is real reason. So, I handle the null value which i received from backend.

    0 讨论(0)
  • 2021-02-10 13:09

    In my case, I accidentally added two reference to the same Xib constraint. Removed one and it works well.

    0 讨论(0)
  • 2021-02-10 13:13

    sorry,it's just the index lost and Apple changed the error log,just add the .m file

    0 讨论(0)
提交回复
热议问题