我在我的应用程序的几个地方遇到了这个崩溃,这似乎是由 IQKeyboardManagerSwift 触发的。我在 AppDelegate.swift 文件的第 10 行收到此错误,该错误只是 `导入 IQKeyboardManagerSwift。在我更新到最新版本的 Swift 之前,一切都工作正常,但是我的所有依赖项都是最新的。包括 IQKeyboardManagerSwift。有人见过这样的消息吗?
Could not find module 'IQKeyboardManagerSwift' for target 'armv7-apple-ios'; found: arm64, arm64-apple-ios
在控制台中我也收到此消息。
Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named _UITextLayoutView because no class named _UITextLayoutView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)'
最佳答案
这是 Xcode 11.2 中的一个已知错误
参见: After upgrading to Xcode 11.2 from Xcode 11.1, app crashes due to _UITextLayoutView
您可以从此处下载较旧的 Xcode 版本:https://developer.apple.com/download/more/ 或者升级到新发布的11.2.1(我还没有尝试过)
关于ios - 无法找到目标 'IQKeyboardManagerSwift' 的模块 'armv7-apple-ios' ;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58836495/