mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#coredata

1 Beitrag1 Beteiligte*r0 Beiträge heute
Nico Reese<p>I have this very simple, almost default, PersistenceController setup, shared between my app and widget target. I have received more than 30,000 crashes last month in my widget target. I have no idea why. Anyone? <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a></p>
Nico Reese<p>Does anyone have a tip on how to fix this warning when using Xcode 26's new defaultIsolation to MainActor?</p><p>It seems like with it enabled, NSManagedObjects are now also on the MainActor, making background tasks impossible. </p><p><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a></p><p><a href="https://forums.swift.org/t/defaultisolation-mainactor-and-core-data-background-tasks/80569/13" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">forums.swift.org/t/defaultisol</span><span class="invisible">ation-mainactor-and-core-data-background-tasks/80569/13</span></a></p>
Nico Reese<p>If any <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> guys are reading this: I filed FB18216198 &amp; FB18216356 showcasing crashes and issues with Xcode 26's new project default for defaultIsolation in conjunction with Dynamic Actor Isolation, which makes using Core Data impossible for me right now when wanting to adhere to Swift 6, unless I'm just really stupid.</p>
Nico Reese<p>Is this the correct way to achieve Swift 6 conformance with context.perform and setting the published variable? So far this was the only way to avoid warnings, but it does look weird to me with the extra context let and the separate function to set the variable. <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a></p>
Nico Reese<p>It's 2025 and it's still incredibly hard to achieve good iCloud sync without duplication of data. It's the developer's job to do this and it's so error prone if you don't do everything correctly. <a href="https://mastodon.social/tags/WWDC" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WWDC</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a></p>
Brendan@TapForms 🇨🇦<p>It's been out for a couple weeks now, but here's my official post introducing Tap Forms Database Pro for macOS and iOS to the Fediverse! Two years in the making, dozens of new features, Apple Silicon support (finally), AI form generation, a new Reports Generator, iCloud sync across different Apple IDs, built-in Template Library, a more modern look and feel, and more!</p><p>Check it out at <a href="https://apps.apple.com/app/apple-store/id1527890083?pt=13038&amp;ct=Mastodon&amp;mt=8" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">apps.apple.com/app/apple-store</span><span class="invisible">/id1527890083?pt=13038&amp;ct=Mastodon&amp;mt=8</span></a></p><p><a href="https://mastodon.social/tags/IndieAppDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieAppDev</span></a> <a href="https://mastodon.social/tags/database" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>database</span></a> <a href="https://mastodon.social/tags/coredata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coredata</span></a> <a href="https://mastodon.social/tags/productivityapps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>productivityapps</span></a></p>
Benjamin van den Hout<p>And here is the blog post detailing the changes.</p><p><a href="https://smork.info/blog/posts/beer-diary-version-2-1-released/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">smork.info/blog/posts/beer-dia</span><span class="invisible">ry-version-2-1-released/</span></a></p><p><a href="https://mstdn.social/tags/ios" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ios</span></a> <a href="https://mstdn.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a> <a href="https://mstdn.social/tags/swiftui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftui</span></a> <a href="https://mstdn.social/tags/coredata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coredata</span></a> <a href="https://mstdn.social/tags/cloudkit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cloudkit</span></a></p>
Stefan Pauwels<p>Undo support for <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> app with <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> <br><a href="https://stefan.pauwels.ch/2025/03/25/undo-support-for-swiftui-app-with-coredata/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">stefan.pauwels.ch/2025/03/25/u</span><span class="invisible">ndo-support-for-swiftui-app-with-coredata/</span></a></p>
Benjamin van den Hout<p>And here is the blog post detailing the changes. It also includes some development background information in case you're interested.</p><p><a href="https://smork.info/blog/posts/beer-diary-version-2-0-released/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">smork.info/blog/posts/beer-dia</span><span class="invisible">ry-version-2-0-released/</span></a></p><p><a href="https://mstdn.social/tags/ios" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ios</span></a> <a href="https://mstdn.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a> <a href="https://mstdn.social/tags/swiftui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftui</span></a> <a href="https://mstdn.social/tags/coredata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coredata</span></a> <a href="https://mstdn.social/tags/cloudkit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cloudkit</span></a></p>
Georg Tuparev<p>It is 2025, and there are still people writing <a href="https://mstdn.social/tags/SQL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SQL</span></a> to combine with their <a href="https://mstdn.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> code.</p><p>In 1993 NeXT introduced Enterprise Object Framework (EOF) and in 1995 - WebObjects. Since that time my team and I never wrote a single SQL query (exception - testing).</p><p>We are complaining about AI, but still write SQL! Folks, this is regression!<br>—</p><p><a href="https://mstdn.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> is based on EOF. Very poor and miserable imitation of EOF indeed (also sign of the downfall of the empire).</p>
Juan Arzola<p>I do like using Cursor for helping me make debugging scripts a lot. This one parses all the <a href="https://sfba.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> sqlite query logs and makes a spreadsheet out of them with their execution time + the fault/action that triggered the query. <a href="https://gist.github.com/juanarzola/d1af93e8d677766c9cd57253b24352d8" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gist.github.com/juanarzola/d1a</span><span class="invisible">f93e8d677766c9cd57253b24352d8</span></a></p>
Marc<p>Does someone know what benefits/effects changing the "Tools Version" of your CoreData-Model has?</p><p><a href="https://swiss.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a> <a href="https://swiss.social/tags/coredata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coredata</span></a></p>
Helge Heß<p>I just had to pull up that song featuring <span class="h-card" translate="no"><a href="https://mastodon.social/@jamesdempsey" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>jamesdempsey</span></a></span> again: <a href="https://youtu.be/-dY1S-txZpI?si=Ai7nC2wLCJcuWH4R&amp;t=3628" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">youtu.be/-dY1S-txZpI?si=Ai7nC2</span><span class="invisible">wLCJcuWH4R&amp;t=3628</span></a> <br><a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> <a href="https://mastodon.social/tags/EOF" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EOF</span></a> <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a></p>
Jay :verified_gay:<p>I was thinking about running <a href="https://iosdev.space/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> + <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> side by side while implementing a new feature that requires some new data types, but the reports of iOS 16 usage is making me rethink that decision.</p>
Jan Früchtl<p>I've now built a system that saves the states of whether a migration is needed and later completed. This is the signal for the widget regarding whether it is allowed to access the shared Core Data stack. I'm not sure if this is solving the problem or if there is a more straightforward solution (there should be, I hope), but this bug is hard to reliably reproduce, so this is the best guess I'm going with for now. 🙈 🤷‍♂️</p><p><a href="https://spezi.social/tags/coredata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coredata</span></a> <a href="https://spezi.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a> <a href="https://spezi.social/tags/iosdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iosdev</span></a></p>
Jan Früchtl<p>Does somebody know how to handle Core Data crashes in the instance where I share a Core Data stack between my App and a Widget?</p><p>After I make a change to the Core Data model and it’s automatically migrated, it seems to crash sometimes (I can't reproduce it reliably). My best guess right now is that these two processes try to load and perform the migration at the same time and therefore crash.</p><p>Anyone can help? <a href="https://spezi.social/tags/coredata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coredata</span></a> <a href="https://spezi.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a></p><p>PS: Looks very similar to these issues: <a href="https://developer.apple.com/forums/thread/668649" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/forums/thr</span><span class="invisible">ead/668649</span></a></p>
Helge Heß<p>If someone is interested how the same, old but sizeable, database looks in <a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftLang</span></a> using either <a href="https://mastodon.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a>, <a href="https://mastodon.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> or Lighter, I have setup the Northwind.swift project. It's a pre-filled database as a Swift package, useful for toying around with the respective frameworks (I would also welcome contributions of additional variants, say like GRDB!)<br><a href="https://github.com/Northwind-swift" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Northwind-swift</span><span class="invisible"></span></a></p>
Heals :heart_nb:<p><span class="h-card" translate="no"><a href="https://mastodon.social/@helge" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>helge</span></a></span> thank you for pointing me at this - looks like a very promising alternative to using momd files :blobcatheart: </p><p>My current setup now consists of:</p><ul><li><a href="https://github.com/Data-swift/ManagedModels.git" rel="nofollow noopener" target="_blank">ManagedModels</a> -- declarative CoreData @ Models in code</li><li><a href="https://github.com/Data-swift/ManagedModels.git" rel="nofollow noopener" target="_blank">CoreDataEvolution</a> -- @ ModelActor support for CoreData</li><li><a href="https://github.com/Data-swift/ManagedModels.git" rel="nofollow noopener" target="_blank">PredicateKit</a> -- Swift # Predicate for CoreData queries</li></ul><p>What could possibly go wrong with so much plumbing :D</p><p><a href="https://indiepocalypse.social/tags/swiftdata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftdata</span></a> <a href="https://indiepocalypse.social/tags/coredata" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coredata</span></a> <a href="https://indiepocalypse.social/tags/iosdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iosdev</span></a> <a href="https://indiepocalypse.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a></p>
Axel Le Pennec<p><span class="h-card" translate="no"><a href="https://mastodon.social/@helge" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>helge</span></a></span> <span class="h-card" translate="no"><a href="https://hachyderm.io/@groue" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>groue</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@fatbobman" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>fatbobman</span></a></span> both async functions are isolated to the same actor (queue?) but it doesn’t mean they will be running on the same thread right? Passing non-Sendable type is ok but I thought the issue with <a href="https://iosdev.space/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> NSManagedObject and <a href="https://iosdev.space/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> Model was that they can’t be passed between threads. Which seems to be the case with two async functions in a ModelActor.</p><p>What do you think <span class="h-card" translate="no"><a href="https://mastodon.social/@mattiem" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>mattiem</span></a></span>?</p><p>Thanks!</p>
Heals :heart_nb:<p>The fact that I'm considering to move my app from <a href="https://indiepocalypse.social/tags/SwiftData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftData</span></a> to <a href="https://indiepocalypse.social/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a> says something about the quality of the former..</p><p><a href="https://indiepocalypse.social/tags/apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>apple</span></a> <a href="https://indiepocalypse.social/tags/appdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>appdev</span></a> <a href="https://indiepocalypse.social/tags/developer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>developer</span></a> <a href="https://indiepocalypse.social/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a></p>