适配IOS13API :“KVC访问私有属性”【 -[_UINavigationBarContentView setDirectionalLayoutMargins:], /】

前言

pod update QMUIKit --verbose --no-repo-update

升级Xcode之后,今天在iOS13中打开app的时候闪退,错误信息是*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Client error attempting to change layout margins of a private view'

*** Assertion failure in -[_UINavigationBarContentView setDirectionalLayoutMargins:]

  • 解决方案是更新第三方库
-> Installing QMUIKit 4.0.4 (was 3.2.1 and source changed to `https://cdn.cocoapods.org/` from `https://github.com/cocoapods/specs.git`)

猜你喜欢

转载自blog.csdn.net/u011018979/article/details/104276058