Just installed Xcode 13 beta 4 and my project doesn't finish building. Builds fine on Xcode 12. I also noticed that Swift 5 is the highest version available in the build settings.
Post
Replies
Boosts
Views
Activity
Seeing the same behavior with Xcode 13 GM. My project will not finish compiling and doesn't show any errors. If I stop the build I see "Command CompileSwiftSources failed with a nonzero exit code"
I narrowed this issue down to a single SwiftUI file that causes the problem. When I remove this file the build completes in under 2 minutes. There is a simple code fix for this issue by moving about 10 lines of code into a view it seems to solve it.
I submitted the Xcode project using feedback assistant. The code is too long to post here. I am working on reducing the code down so I can post it once I get to that point.
Another way to do this:
struct Parent: View {
@FocusState var focusedField: UUID?
var body: some View {
VStack {
Child(focusedField: _focusedField)
}
}
}
struct Child: View {
@FocusState var focusedField: UUID?
@State var someText: String = ""
@State var someTextFieldUUID: UUID = UUID()
var body: some View {
VStack {
TextField("Focusable field", text: $someText)
.focused($focusedField, equals: someTextFieldUUID)
}
}
}
I have the same issue where appending to the path for a NavigationStack and seeing "Update NavigationRequestObserver tried to update multiple times per frame." I can't reproduce it in a simple app but in my real app I have this message and 100% CPU usage and freezing issues. If I can determine a cause I will update here.
I can reproduce this on a fresh clone of my project. I'm still trying to determine what is missing.
This issue only occurs for me when using List. My solution was to use ScrollView with LazyVStack as this will call onAppear for every row.