Skip to main content
The 2024 Developer Survey results are live! See the results
It’s iOS not IOS
Source Link
Joakim Danielson
  • 49.2k
  • 5
  • 27
  • 63

SwiftData error on IOS18iOS 18, Never access a full future backing data

Try to update my app from IOSiOS 17 to IOiOS 18. I'm using SwiftData to save the data on the memory. On IOSiOS 17 all works fine, but I tried to export my app to IOSiOS 18, and I get a strange error when I try to delete a playlist from SwiftData memory.

Thread 10: Fatal error: Never access a full future backing data - PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://4885953A-BDB2-4CD1-9299-B2FBBB899EB7/PlaylistItem/p372), implementation: SwiftData.PersistentIdentifierImplementation) with Optional(B2A80504-2FE1-4C86-8341-3DDE8B6AB913)

The code where this error happen is very simple,

  func deletePlaylist(_ playlist: PlayListModel) async throws {
        print("attempt to delate :, \(playlist.playlistName)")
        context.delete(playlist)
        try context.save() // error here on the save 
    }

Error only happen on iOS 18 not on the 17.

SwiftData error on IOS18, Never access a full future backing data

Try to update my app from IOS 17 to IO 18. I'm using SwiftData to save the data on the memory. On IOS 17 all works fine, but I tried to export my app to IOS 18, and I get a strange error when I try to delete a playlist from SwiftData memory.

Thread 10: Fatal error: Never access a full future backing data - PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://4885953A-BDB2-4CD1-9299-B2FBBB899EB7/PlaylistItem/p372), implementation: SwiftData.PersistentIdentifierImplementation) with Optional(B2A80504-2FE1-4C86-8341-3DDE8B6AB913)

The code where this error happen is very simple,

  func deletePlaylist(_ playlist: PlayListModel) async throws {
        print("attempt to delate :, \(playlist.playlistName)")
        context.delete(playlist)
        try context.save() // error here on the save 
    }

Error only happen on iOS 18 not on the 17.

SwiftData error on iOS 18, Never access a full future backing data

Try to update my app from iOS 17 to iOS 18. I'm using SwiftData to save the data on the memory. On iOS 17 all works fine, but I tried to export my app to iOS 18, and I get a strange error when I try to delete a playlist from SwiftData memory.

Thread 10: Fatal error: Never access a full future backing data - PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://4885953A-BDB2-4CD1-9299-B2FBBB899EB7/PlaylistItem/p372), implementation: SwiftData.PersistentIdentifierImplementation) with Optional(B2A80504-2FE1-4C86-8341-3DDE8B6AB913)

The code where this error happen is very simple,

  func deletePlaylist(_ playlist: PlayListModel) async throws {
        print("attempt to delate :, \(playlist.playlistName)")
        context.delete(playlist)
        try context.save() // error here on the save 
    }

Error only happen on iOS 18 not on the 17.

added 2 characters in body
Source Link
toyota Supra
  • 4.1k
  • 7
  • 18
  • 22

tryTry to update my app from iOSIOS 17 to ioIO 18,. I'm using SwiftData to save the data on the memory, on iOS. On IOS 17 all works fine, but I tried to export my app to iOSIOS 18, and I get a strange error when I try to delatedelete a playlist from SwiftData memory.

Thread 10: Fatal error: Never access a full future backing data - PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://4885953A-BDB2-4CD1-9299-B2FBBB899EB7/PlaylistItem/p372), implementation: SwiftData.PersistentIdentifierImplementation) with Optional(B2A80504-2FE1-4C86-8341-3DDE8B6AB913)

theThe code where this error happen is very simple,

  func deletePlaylist(_ playlist: PlayListModel) async throws {
        print("attempt to delate :, \(playlist.playlistName)")
        context.delete(playlist)
        try context.save() // error here on the save 
    }

Error only happen on iOS 18 not on the 17.

try to update my app from iOS 17 to io 18, I'm using SwiftData to save the data on the memory, on iOS 17 all works fine but I tried to export my app to iOS 18 and I get a strange error when I try to delate a playlist from SwiftData memory.

Thread 10: Fatal error: Never access a full future backing data - PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://4885953A-BDB2-4CD1-9299-B2FBBB899EB7/PlaylistItem/p372), implementation: SwiftData.PersistentIdentifierImplementation) with Optional(B2A80504-2FE1-4C86-8341-3DDE8B6AB913)

the code where this error happen is very simple,

  func deletePlaylist(_ playlist: PlayListModel) async throws {
        print("attempt to delate :, \(playlist.playlistName)")
        context.delete(playlist)
        try context.save() // error here on the save 
    }

Error only happen on iOS 18 not on the 17.

Try to update my app from IOS 17 to IO 18. I'm using SwiftData to save the data on the memory. On IOS 17 all works fine, but I tried to export my app to IOS 18, and I get a strange error when I try to delete a playlist from SwiftData memory.

Thread 10: Fatal error: Never access a full future backing data - PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://4885953A-BDB2-4CD1-9299-B2FBBB899EB7/PlaylistItem/p372), implementation: SwiftData.PersistentIdentifierImplementation) with Optional(B2A80504-2FE1-4C86-8341-3DDE8B6AB913)

The code where this error happen is very simple,

  func deletePlaylist(_ playlist: PlayListModel) async throws {
        print("attempt to delate :, \(playlist.playlistName)")
        context.delete(playlist)
        try context.save() // error here on the save 
    }

Error only happen on iOS 18 not on the 17.

edited tags
Link
Joakim Danielson
  • 49.2k
  • 5
  • 27
  • 63
Source Link
Damiano Miazzi
  • 1.9k
  • 2
  • 21
  • 51
Loading