Post

Replies

Boosts

Views

Activity

Reply to Failed Registering Bundle Identifier of watch app
Thanks for your investigation and suggestion. But i think step 4 and 5 were the other way round. I actually submitted my watch OS app to store so i guess i first registered it with my team. and somehow another team could register it afterwards and now it's not possible anymore for me. But i will try to change the last component of my app to something other than .watchkitapp. I thought it's mandatory to have this naming convetion from what i read on the internet. Edit: Tried to update it but Xcode is not allowing to upload to AppStoreConnect Invalid Bundle Identifier. Attempting to change bundle identifier from (myappBundleID).watchkitapp to (myappBundleID).(newName) is disallowed for bundle Sensor-App.app/Watch/Sensor-App-Watch.app. (ID: a037e632-4c6b-4337-b00a-0625e73922f4) Unfortunately I don't know which other team registered it with their account because the source code was open source but I didn't collaborate with others on it. Is it not possible for apple to delete it from the other team if it was registered due to a bug?
Oct ’24
Reply to How to delete in CoreData in an MacOS SwiftUI application (.onDelete is not working)
.onDelete is working fine on the mac when swiping from right to left with magic mouse or trackpad. But i prefer to use a context menu and add the delete function there. var body: some View {         List {             ForEach(items) { item in                 Text("Item at \(item.timestamp!, formatter: itemFormatter)")                     .contextMenu(ContextMenu(menuItems: {                         Button(action: {                             viewContext.delete(item)                             do {                                 try viewContext.save()                             } catch {                                 let nsError = error as NSError                                 fatalError("Unresolved error \(nsError), \(nsError.userInfo)")                             }                         }, label: {                             Text("Delete")                         })                     }))             }             .onDelete(perform: deleteItems)         }         .toolbar {             #if os(iOS)             EditButton()             #endif             Button(action: addItem) {                 Label("Add Item", systemImage: "plus")             }         }     }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21