Post

Replies

Boosts

Views

Activity

Failed to run on device
tutorial hello world simulation success but failed on device xcode 12.1 iphone12 ios 14.1 Diagnostics below: 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/2048E5CE-8AFF-4868-A9A3-E244714ABF45//tmp/F32DDE22-452E-4F37-AD3F-34A26AE9688D-ContentView.2.preview-thunk.dylib": Optional(dlopen(/private/var/mobile/Containers/Data/Application/2048E5CE-8AFF-4868-A9A3-E244714ABF45/tmp/F32DDE22-452E-4F37-AD3F-34A26AE9688D-ContentView.2.preview-thunk.dylib, 2): no suitable image found. Did find: |  /private/var/mobile/Containers/Data/Application/2048E5CE-8AFF-4868-A9A3-E244714ABF45/tmp/F32DDE22-452E-4F37-AD3F-34A26AE9688D-ContentView.2.preview-thunk.dylib: code signature invalid for '/private/var/mobile/Containers/Data/Application/2048E5CE-8AFF-4868-A9A3-E244714ABF45/tmp/F32DDE22-452E-4F37-AD3F-34A26AE9688D-ContentView.2.preview-thunk.dylib' | ) Code: import SwiftUI struct ContentView: View {   var body: some View {     Text("Hello, world!")       .padding()   } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView()   } } so frustrated
8
0
2.9k
Nov ’20