天道酬勤,学无止境

ios13.4

iOS 13.4 应用程序崩溃并带有模糊消息:前提条件失败:类型检查失败:101,预期文本,得到 _HiddenModifier(iOS 13.4 Crashes app with vague message: precondition failure: type check failed: 101, expected Text, got _HiddenModifier)

问题 很抱歉这里的描述含糊不清,但这导致我的应用在用户尝试使用我的搜索功能时完全处于 DOA 状态。 这在 iOS 13.4 之前没有发生,错误消息根本没有帮助。 找不到任何信息。 有没有人遇到过这个? 它可能在哪里? 应用程序在我的 SwiftUI 文件中崩溃时,我使用数组中的 ForEach 填充视图,这是一个可观察对象: ForEach(self.listArray.searchDataArray, id: \.self) { fetchedData in 如果我弄清楚了,我会更新,想看看还有谁经历过这种情况以及可能的原因是什么。 谢谢! 回答1 发现问题: 我添加的这行代码是为了避免 swiftUI 中的屏幕故障导致它: 文本(“”)。隐藏() 将其注释掉,一切正常.. 奇怪的!

2021-10-26 18:29:12    分类:技术分享    ios   xcode   swiftui   ios13.4

iOS 13.4 Crashes app with vague message: precondition failure: type check failed: 101, expected Text, got _HiddenModifier

Sorry to be vague in the description here, but this has caused my app to be completely DOA when a user attempts to use my search feature. This did not happen before iOS 13.4 and the error message is not helpful at all. Cant find any info. Has anyone run into this? where could it be? The app crashes at the point where in my SwiftUI file, I populate the view using a ForEach from an array, which is an observable object: ForEach(self.listArray.searchDataArray, id: \.self) { fetchedData in Ill update if I figure it out, wanted to see who else has experienced this and what possible causes could be

2021-09-05 06:04:18    分类:问答    ios   xcode   swiftui   ios13.4