Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 beta 5 SIGABRT on run of SwiftUI Template
Same here. MacOS Sonoma beta 14.0 23A5301g Xcode Version 15.0 beta 4 (15A5195m) Error I'm getting: dyld[1671]: Symbol not found: _$s21DeveloperToolsSupport7PreviewV7SwiftUIE_6traits4bodyACSSSg_AA0D5TraitVyAC10ViewTraitsOGdAD0J0_pyctcfC Referenced from: <33D4E0D5-48BB-3E2D-9437-3C3F055B166D> /Users/user/Library/Developer/Xcode/DerivedData/MenuBarSample-hcsrllugqowdunfjmqhfmxonltrr/Build/Products/Debug/MenuBarSample.app/Contents/MacOS/MenuBarSample Expected in: <50F6AD65-5E3E-3C6B-87CA-2B9F70FA6074> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
Jul ’23
Reply to Xcode 15.0 Beta 5, Symbol not found: _$s9SwiftData014DefaultBackingB0C3forACyxGxm_tcfC
I have the same issue using a fresh MacOS app with sample SwiftData code. Xcode Version 15.0 beta 6 (15A5219j) MacOS 14.0 Beta (23A5301g) import SwiftUI import SwiftData struct ContentView: View { @Environment(\.modelContext) private var modelContext @Query private var items: [Item] var body: some View { NavigationSplitView { List { ForEach(items) { item in NavigationLink { Text("Item at \(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard))") } label: { Text(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard)) } } .onDelete(perform: deleteItems) } .toolbar { ToolbarItem { Button(action: addItem) { Label("Add Item", systemImage: "plus") } } } } detail: { Text("Select an item") } } private func addItem() { withAnimation { let newItem = Item(timestamp: Date()) modelContext.insert(newItem) } } private func deleteItems(offsets: IndexSet) { withAnimation { for index in offsets { modelContext.delete(items[index]) } } } } @Model final class Item { var timestamp: Date init(timestamp: Date) { self.timestamp = timestamp } }
Aug ’23