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

后端 未结 2 1199
名媛妹妹
名媛妹妹 2021-01-25 05:47

I was running my iPhone app just fine yesterday. Today I\'m getting this crash:

*** Terminating app due to uncaught exception \'NSGenericException\', reason: \'Thi

相关标签:
2条回答
  • 2021-01-25 06:22

    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

    0 讨论(0)
  • 2021-01-25 06:39

    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.

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