Post

Replies

Boosts

Views

Activity

Reply to SwiftUI MapKit - MapAnnotation - Publishing changes from within view updates is not allowed, this will cause undefined behavior.
Unfortunately this issue still exists. The combination of Map() and MapAnnotation() causes it. Switching out the annotations with MapMarker() removes the runtime errors, but unfortunately isn't suited for my uses case. It might help someone else though. The purple runtime error pops up quite a bit. And most of the time it's valid: you're updating a @Published var from within the view you display that same @Published var. Which is bad. But I don't see this cause at all with the MapAnnotation implementation, something else must be triggering this.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’23
Reply to Xcode 15 iOS 17 Failed to install app on the device
To add some more context: I'm using a fully up-to-date Xcode, against a fully up-to-date iPhone 15. I use Xcode managed signing. I changed nothing to my bundle ID or anything It runs fine in simulator I can build my other project, but I see no differences in setup except for Firestore being used in the one and not the other
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23
Reply to Xcode 15 iOS 17 Failed to install app on the device
Oh wow. I managed to solve it. I removed my Cocoapods integration which I used for Firebase. After that I reintegrated Firebase using the Xcode package manager. This is what solved it for me: Close Xcode, terminal navigate to your Xcode Project directory brew install cocoapods-deintegrate cocoapods-clean pod deintegrate pod clean rm Podfile Open Xcode, 'add packages' Add Firebase to build target GOGOGOGOGO ;)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’23