首页 > 解决方案 > 找不到目标“armv7-apple-ios”的模块“IQKeyboardManagerSwift”;

问题描述

我通过我的应用程序在几个地方遇到了这个崩溃,这似乎是由 IQKeyboardManagerSwift 触发的。我在第 10 行的 AppDelegate.swift 文件中收到此错误,它只是`import IQKeyboardManagerSwift。在我更新到最新版本的 Swift 之前一切正常,但是我的所有依赖项都是最新的。包括 IQKeyboardManagerSwift。以前有人看过这样的消息吗?

找不到目标“armv7-apple-ios”的模块“IQKeyboardManagerSwift”;找到:arm64,arm64-apple-ios

在控制台中,我也收到此消息。

由于未捕获的异常“NSInvalidUnarchiveOperationException”而终止应用程序,原因:“无法实例化名为 _UITextLayoutView 的类,因为找不到名为 _UITextLayoutView 的类;该类需要在源代码中定义或从库中链接(确保该类是正确目标的一部分)'

标签: iosswift

解决方案


This is a known bug in Xcode 11.2

See: After upgrading to Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView

You can either download an older Xcode version from here: https://developer.apple.com/download/more/ or upgrade to the newly released 11.2.1 (I haven't tried that one yet)


推荐阅读