Post

Replies

Boosts

Views

Activity

SwiftUI Preview on Device Error
Hey! It is my second time asking for this recurring issue. I just downloaded Xcode 12.3, macOS 11.1, and iOS 14.3 on my device, and I am still getting the same error when I try to preview on my connected device: RemoteHumanReadableError: Failed to update preview. Error encountered when sending 'display' message to agent. ================================== |  RemoteHumanReadableError |   |  LoadingError: failed to load library at path "/private/var/mobile/Containers/Data/Application/08191EE1-B765-46B2-906E-A6E79A4D07FF//tmp/C4F99A38-6FF4-4394-BEB2-0095B3F6F3F2-ContentView.2.preview-thunk.dylib": Optional(dlopen(/private/var/mobile/Containers/Data/Application/08191EE1-B765-46B2-906E-A6E79A4D07FF/tmp/C4F99A38-6FF4-4394-BEB2-0095B3F6F3F2-ContentView.2.preview-thunk.dylib, 2): no suitable image found.  Did find: |  /private/var/mobile/Containers/Data/Application/08191EE1-B765-46B2-906E-A6E79A4D07FF/tmp/C4F99A38-6FF4-4394-BEB2-0095B3F6F3F2-ContentView.2.preview-thunk.dylib: code signature invalid for '/private/var/mobile/Containers/Data/Application/08191EE1-B765-46B2-906E-A6E79A4D07FF/tmp/C4F99A38-6FF4-4394-BEB2-0095B3F6F3F2-ContentView.2.preview-thunk.dylib' |  ) I even try with a blank SwiftUI project, and it is the same error message when I run a live preview on a device (Static previews, live previews, and build/run on device work fine). I found some other people on the forum asking for the same bug, but none of them had answers to this problem. I am running out of ideas on how to solve it, but I noticed that on line 8, it says ...7FF//tmp/..., while on line 9 says ...7FF/tmp/.... Not sure if it helps. Diagnostics report previews-diagnostics-20201214-101717 p.m..zip https ://drive.google.com/file/d/1kLIgAnnpastfq3SenmQJC7D0Ph1G6SSW/view (if you know a way to attach these reports in the forum please let me know)
9
0
3.5k
Dec ’20