Post

Replies

Boosts

Views

Activity

Fatal Error: UIViewControllerRepresentables must be value types: ViewControllerResolver
Today, I made the first attempt at running an existing SwiftUI iOS app in Xcode 14.0 beta 2. In preview, simulator and device, attempting to display several of the views caused the a crash with this (simulator) warning: SwiftUI/UIViewControllerRepresentable.swift:332: Fatal error: UIViewControllerRepresentables must be value types: ViewControllerResolver 2022-06-30 15:42:51.037629-0400 Shorty[8477:188610] SwiftUI/UIViewControllerRepresentable.swift:332: Fatal error: UIViewControllerRepresentables must be value types: ViewControllerResolver The app runs in iOS 15 without this issue. I have no idea where to start looking to fix this. How can I begin to troubleshoot this? I see no content from a search here or outside.
2
2
5.3k
Oct ’22
Crashing only in Xcode 13.0 (EXC_BAD_INSTRUCTION)
Working in latest version of Xcode 12. When opening a SwiftUI view containing a Core Data list, a crash occurs and execution stops at the first line of the AppDelegate. There is no backtrace info in the console and from what I can see in the backtrace (attached crash.txt), and by stepping through each frame in Xcode, I don't see any code in my app. Is this a bug? Advice on how to fix? In Xcode 13.0 (only), I cannot view any List. The same code runs as expected in Xcode 12.5 David crash.txt
7
0
2.3k
Jan ’22
com.apple.webinspector.allow Causes Crash
After watching WWDC 2016 session 420, Optimizing Web Content in Your App, I added "com.apple.webinspector.allow = YES" to the existing entitlements file.Build & Run results in immediate crash. Reviewing the crash log reveals Exception Type: EXC_CRASH (Code Signature Invalid)Remove that row from the entitlement file and the app runs fine.How can this be fixed, so that the app may connect to the Safari developer tools?
3
0
3.6k
Aug ’21