Как исправить ошибку? Не запускается просмотр приложения в xcode

swift
xcode
ios

#1

Вот диагностика ошибки:
CrashError: Memoriz crashed

Memoriz crashed. Check ~/Library/Logs/DiagnosticReports for crash logs from your application.

Process: Memoriz[32905]
Date/Time: 2021-10-16 19:34:24 +0000
Log File:

Application Specific Information:
[
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/minsk/Library/Developer/Xcode/DerivedData/Memoriz-enfkljfgymgcurdyflizfpaicanf/Build/Intermediates.noindex/Previews/Memoriz/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot//System/Library/PrivateFrameworks/PreviewsInjection.framework/PreviewsInjection DYLD_FRAMEWORK_PATH=/Users/minsk/Library/Developer/Xcode/DerivedData/Memoriz-enfkljfgymgcurdyflizfpaicanf/Build/Intermediates.noindex/Previews/Memoriz/Products/Debug-iphonesimulator
CoreSimulator 776.3 - Device: iPod touch (7th generation) (631C5626-88EF-4CAF-8429-401E7E0BDB14) - Runtime: iOS 15.0 (19A339) - DeviceType: iPod touch (7th generation)

]

==================================

| MessageSendFailure: Message send failure for send render message to agent
|
| ==================================
|
| | RemoteHumanReadableError: Cannot send message on <UVAgentPreviewServiceServerConnection: 0x600000a90180>: connection has invalidated
| |
| | com.apple.dt.UITestingAgent (-1):


#2

У вас проблемы с превью, поэтому надо смотреть код превью. На симуляторе запускается?


#3

нет, не запускалось, нашел проблему, это смешно, но перед onTapGesture не поставил (.)