ios - 无法找到目标 'IQKeyboardManagerSwift' 的模块 'armv7-apple-ios' ;

标签 ios swift

我在我的应用程序的几个地方遇到了这个崩溃,这似乎是由 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/

相关文章:

ios - 通知:本地通知的自定义声音未在iOS10中播放

ios - 将 UIStackView 的内容向内移动

ios - 游戏中心排行榜未出现在游戏的生产版本中?

ios - 如何创建模态视图,用于在 iOS 中启动应用程序?

iOS Swift - 调试内存泄漏

ios - 尝试使用 Facebook Graph API 访问测试用户时出现 "unsupported get request"

ios - 崩溃 UIScrollView EXC_BAD_ACCESS

ios - 您可以在共享的全局类中跟踪用户的位置吗?

SwiftUI 预览错误 - "Cannot preview in this file - Update failed"

ios - 检查 segue 标识符而不是使用失败的类型转换有好处吗?