適配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`)
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章