问题
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.
Thank you!
回答1:
Found the issue:
This line of code, which i added to avoid screen glitches in swiftUI caused it:
Text("").hidden()
commented it out and it all works fine..
weird!
来源:https://stackoverflow.com/questions/60920651/ios-13-4-crashes-app-with-vague-message-precondition-failure-type-check-failed