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.5k
Jan ’22
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.
Replies
2
Boosts
2
Views
5.3k
Activity
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
Replies
7
Boosts
0
Views
2.5k
Activity
Jan ’22