Post

Replies

Boosts

Views

Activity

Reply to Xcode build crashes on: No such module '_SwiftData_SwiftUI'
I had the same problem (& tried the same cleaning/deleting steps) when I first installed Xcode 16 beta 2. It only occurred in a project that I had created using Xcode 16 beta 1. I never could figure out what was causing it. I ended up just re-creating the project fresh in beta 2 and that worked. Luckily it wasn't a very big project. I copied over most of the code files as-is from the crashing project, so I suspect Xcode was just "confused" about something in the project file.
Jul ’24
Reply to WeatherKit iOS SDK 401 network error
Just in case anyone else makes the same mistake I did. When adding the Bundle Identifier under Signing & Capabilities, somehow I had added it to the iOS section, but not to the field directly under Team (maybe because I added the BundleID before changing the Team to me?). I noticed this after reading through this post and going back to check if I had everything correct. I saw that there were 2 Bundle Identifier fields and the top one still had the Apple sample project BundleID. When I copied my BundleID to the field underneath Team, everything started working (& the 2nd Bundle Identifier field in the iOS section just disappeared).
Topic: App & System Services SubTopic: General Tags:
Jun ’22
Reply to macOS Swift UI App Life Cycle vs NSApplicationDelegate
Have you tried @NSApplicationDelegateAdaptor? I've only tested it briefly with applicationDidFinishLaunching(), but that method does get called. @main struct TestApp: App {   @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate var body: some Scene {} } class AppDelegate: NSObject, NSApplicationDelegate {     func applicationDidFinishLaunching(_ notification: Notification) {         print("hello")     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’20