While trying to generate previews in Xcode 13, I am presented with the error MessageSendFailure: Message send failure for send previewInstances message to agent. I've tried a few projects and it seems to affect all of them.
Body of the diagnostics window:
==================================
| RemoteHumanReadableError
|
| LoadingError: failed to load library at path "/Users/campbell/Library/Containers/com.NCX-Programming.SwiftUI-Test/Data/ContentView.2.preview-thunk.dylib": Optional(dlopen(/Users/campbell/Library/Containers/com.NCX-Programming.SwiftUI-Test/Data/ContentView.2.preview-thunk.dylib, 2): no suitable image found. Did find:
| /Users/campbell/Library/Containers/com.NCX-Programming.SwiftUI-Test/Data/ContentView.2.preview-thunk.dylib: code signature in (/Users/campbell/Library/Containers/com.NCX-Programming.SwiftUI-Test/Data/ContentView.2.preview-thunk.dylib) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?))
I've tried cleaning the build folder to remove any old files it might be trying to use but I've had no luck. The program itself compiles and runs just fine. Any ideas?
1
1
3.7k