NSGenericException: This coder requires that replaced objects be returned from initWithCoder

大兔子大兔子 提交于 2019-12-02 04:10:53

I noticed that Xcode was updated in the time between working app and crashing app. I rolled back from Xcode 10.2 to 10.1 and now the crash is gone, app is working fine.

Rolling back was a workaround, not a fix.

The problem was in a pod I used (called Inputmask), the problem is fixed in the pod in the meantime and all works fine now with Xcode 10.2.

Thank you Tom Spee for saving so much of my time.

I had the exact same problem. I was just using carthage instead of cocoapods.

The issue was present in the InputMask library version 4.1.0 and the issue has been fixed in its version 4.1.1

For more information on the commit that fixed crash, here is the link: https://github.com/RedMadRobot/input-mask-ios/commit/c2f0d9bcc49567a6c0bcc4173dd410a969fcc423

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!