Post

Replies

Boosts

Views

Activity

Reply to NSPersistentCloudkitContainer Memory Leak -> Crash? (iOS 15 beta 4 & 5)
Hello from 2025! iOS 18.5 and Xcode 16.4 here. App was working just fine after implementing CloudKit/CoreData syncing for a few days... then just now it stopped working. Hangs on startup with the long-running message folks have shared above. What on Earth... It's only trying to pull down about 300 entities consisting of a single String and Date :confused:
Jun ’25
Reply to Avoid Duplicate Records with CloudKit & CoreData
Hello from 2025! This seems like a mismatched degree of effort for this functionality. I.e. if you're using CoreData+CloudKit, of course you want to sync your entities across devices without creating duplicates; otherwise why use it? For others that are finding this in 2025 and beyond, is it still the case that we need to do all of this to avoid duplication when CloudKit is syncing our entities? I've been researching for two days, hoping that I'll eventually stumble into a magical incantation of a store or entity setting that will let the underlying CD+CK integration handle this. Unfortunately no luck. Is there a way to construct a CoreData Entity such that the underlying CKRecord.ID uses a particular value? If that were the case, it would let the underlying framework handle this.
Jun ’25
Reply to Core Data transformable attribute problem in Xcode16
Using Xcode 16.2 (16C5032a): The only Custom Class value that works for me is NSArray and casting to [Int]. All other combinations discussed above either don't compile or produce runtime errors. For the Transformer value I set either NSSecureUnarchiveFromData or NSSecureUnarchiveFromDataTransformerName ...and then experiment with different Custom Class settings: NSArray Works! Need to cast, but no errors and no crashes. [NSInteger] fault: Declared Objective-C type "[NSInteger]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: fault: Declared Objective-C type "[NSInteger]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: Declared Objective-C type "[NSInteger]" for attribute named perkLevelRequirementsIntArray is not valid NSArray<Int> @NSManaged public var perkLevelRequirementsIntArray: NSArray<Int>? Cannot specialize non-generic type 'NSArray' [Int] fault: Declared Objective-C type "[Int]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: fault: Declared Objective-C type "[Int]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: Declared Objective-C type "[Int]" for attribute named perkLevelRequirementsIntArray is not valid
Apr ’25
Reply to SwiftUI Previews creating views out of thin air?
Since the call stack was collapsed in the screenshot, here's the expanded version. It looks like the SwiftUI Preview system up to something? #0 0x00000001035e247c in closure #2 in AuthFirstCensusView.body.getter at /Users/vz/Documents/GitHub/reckoner-app/reckoner/Authentication/AuthFirstCensusView.swift:103 #1 0x00000001035e277c in partial apply for closure #2 in AuthFirstCensusView.body.getter () #2 0x00000001d1817138 in (1) await resume partial function for partial apply forwarder for closure #1 () async -> () in closure #1 (inout Swift.TaskGroup<()>) async -> () in closure #1 () async -> () in SwiftUI.AppDelegate.application(_: __C.UIApplication, handleEventsForBackgroundURLSession: Swift.String, completionHandler: () -> ()) -> () () #3 0x00000001d17b1e48 in (1) await resume partial function for dispatch thunk of static SwiftUI.PreviewModifier.makeSharedContext() async throws -> τ_0_0.Context () #4 0x00000001d19c10c0 in (1) await resume partial function for generic specialization <()> of reabstraction thunk helper <τ_0_0 where τ_0_0: Swift.Sendable> from @escaping @isolated(any) @callee_guaranteed @async () -> (@out τ_0_0) to @escaping @callee_guaranteed @async () -> (@out τ_0_0, @error @owned Swift.Error) () #5 0x00000001d17b1e48 in (1) await resume partial function for dispatch thunk of static SwiftUI.PreviewModifier.makeSharedContext() async throws -> τ_0_0.Context ()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to Liquid Glass / iOS 26 Tab bar positions incorrectly on iPad; repositions correctly when re-opening app
I suspect it has to do if there's a NavigationStack and/or navigation toolbar in play. In the simulator, if I focus on just the child view (i.e. not the TabView containing it) then the child views work just fine.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to Liquid Glass / iOS 26 Tab bar positions incorrectly on iPad; repositions correctly when re-opening app
(oops, forgot to mention this happens on-device as well; not only in the simulator)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to NSPersistentCloudkitContainer Memory Leak -> Crash? (iOS 15 beta 4 & 5)
Hello from 2025! iOS 18.5 and Xcode 16.4 here. App was working just fine after implementing CloudKit/CoreData syncing for a few days... then just now it stopped working. Hangs on startup with the long-running message folks have shared above. What on Earth... It's only trying to pull down about 300 entities consisting of a single String and Date :confused:
Replies
Boosts
Views
Activity
Jun ’25
Reply to [iOSAppOnMac] ShareKit: Crashes in SHKItemIsPDF() or -[SHKSaveToFilesSharingService saveFileURL:completion:]
Another vote, SwiftUI ShareLink, saving a CSV.
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Jun ’25
Reply to Avoid Duplicate Records with CloudKit & CoreData
Hello from 2025! This seems like a mismatched degree of effort for this functionality. I.e. if you're using CoreData+CloudKit, of course you want to sync your entities across devices without creating duplicates; otherwise why use it? For others that are finding this in 2025 and beyond, is it still the case that we need to do all of this to avoid duplication when CloudKit is syncing our entities? I've been researching for two days, hoping that I'll eventually stumble into a magical incantation of a store or entity setting that will let the underlying CD+CK integration handle this. Unfortunately no luck. Is there a way to construct a CoreData Entity such that the underlying CKRecord.ID uses a particular value? If that were the case, it would let the underlying framework handle this.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Core Data transformable attribute problem in Xcode16
Using Xcode 16.2 (16C5032a): The only Custom Class value that works for me is NSArray and casting to [Int]. All other combinations discussed above either don't compile or produce runtime errors. For the Transformer value I set either NSSecureUnarchiveFromData or NSSecureUnarchiveFromDataTransformerName ...and then experiment with different Custom Class settings: NSArray Works! Need to cast, but no errors and no crashes. [NSInteger] fault: Declared Objective-C type "[NSInteger]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: fault: Declared Objective-C type "[NSInteger]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: Declared Objective-C type "[NSInteger]" for attribute named perkLevelRequirementsIntArray is not valid NSArray<Int> @NSManaged public var perkLevelRequirementsIntArray: NSArray<Int>? Cannot specialize non-generic type 'NSArray' [Int] fault: Declared Objective-C type "[Int]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: fault: Declared Objective-C type "[Int]" for attribute named perkLevelRequirementsIntArray is not valid CoreData: Declared Objective-C type "[Int]" for attribute named perkLevelRequirementsIntArray is not valid
Replies
Boosts
Views
Activity
Apr ’25
Reply to Archive Failed On Xcode 16
I'm also researching this :) Appears to have been answered in another thread.
Replies
Boosts
Views
Activity
Dec ’24
Reply to Infinite loop refreshing view with EnvironmentValue
Hiyooo adding my predicament to this list as well. If you happen to display a sheet/popover attached to this view, the redraws will cause them to close. I'm actually OK with the redraws, so long as they don't close the sheet/popover :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’24
Reply to SwiftUI Previews creating views out of thin air?
This turned out to be an issue with state management on my part, unrelated to Swift / SwiftUI / Previews. Sorry for the trouble :(
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftUI Previews creating views out of thin air?
My developer buddy asked me to clarify that as well, literally 2m after you posted... is your name IZZY?? ;) Indeed this only occurs in the Simulator (via the Run button as you mentioned), not inside of Xcode Previews. That's what's so confusing :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftUI Previews creating views out of thin air?
Since the call stack was collapsed in the screenshot, here's the expanded version. It looks like the SwiftUI Preview system up to something? #0 0x00000001035e247c in closure #2 in AuthFirstCensusView.body.getter at /Users/vz/Documents/GitHub/reckoner-app/reckoner/Authentication/AuthFirstCensusView.swift:103 #1 0x00000001035e277c in partial apply for closure #2 in AuthFirstCensusView.body.getter () #2 0x00000001d1817138 in (1) await resume partial function for partial apply forwarder for closure #1 () async -> () in closure #1 (inout Swift.TaskGroup<()>) async -> () in closure #1 () async -> () in SwiftUI.AppDelegate.application(_: __C.UIApplication, handleEventsForBackgroundURLSession: Swift.String, completionHandler: () -> ()) -> () () #3 0x00000001d17b1e48 in (1) await resume partial function for dispatch thunk of static SwiftUI.PreviewModifier.makeSharedContext() async throws -> τ_0_0.Context () #4 0x00000001d19c10c0 in (1) await resume partial function for generic specialization <()> of reabstraction thunk helper <τ_0_0 where τ_0_0: Swift.Sendable> from @escaping @isolated(any) @callee_guaranteed @async () -> (@out τ_0_0) to @escaping @callee_guaranteed @async () -> (@out τ_0_0, @error @owned Swift.Error) () #5 0x00000001d17b1e48 in (1) await resume partial function for dispatch thunk of static SwiftUI.PreviewModifier.makeSharedContext() async throws -> τ_0_0.Context ()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to SwiftUI Previews creating views out of thin air?
I searched both my code any the only UI library I import N-u-k-eUI (sorry, Apple censors the work that sounds like "Nooke") for makeSharedContext and no findings :(
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to App Store Mac Catalyst warning; asking for a minimum version of macOS that doesn't exist
I continue to receive this error on every build upload however it hasn't stopped TestFlight from working or my app from being approved 🤷‍♂️
Replies
Boosts
Views
Activity
May ’24
Reply to App Store Mac Catalyst warning; asking for a minimum version of macOS that doesn't exist
The two libraries I'm using are Alamofire and Nuke, both of which have ancient version requirements and shouldn't be ticking this to 14.4.
Replies
Boosts
Views
Activity
Feb ’24
Reply to Which is already presenting occurs when another View is presented while the Menu is displayed in SwiftUI.
I suspect this was addressed in iOS 17, as this appears to no longer be an issue when using this sample code. I'm developing against iOS 16 and still need to work around this issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’24