Close Menu
  • Home
  • AI
  • Big Data
  • Cloud Computing
  • iOS Development
  • IoT
  • IT/ Cybersecurity
  • Tech
    • Nanotechnology
    • Green Technology
    • Apple
    • Software Development
    • Software Engineering

Subscribe to Updates

Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

    What's Hot

    The Download: supercharged scams and studying AI healthcare

    April 26, 2026

    How Viasat is providing a blueprint for the industrial edge

    April 26, 2026

    Hampshire College to close: Why colleges are going out of business

    April 26, 2026
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    Big Tee Tech Hub
    • Home
    • AI
    • Big Data
    • Cloud Computing
    • iOS Development
    • IoT
    • IT/ Cybersecurity
    • Tech
      • Nanotechnology
      • Green Technology
      • Apple
      • Software Development
      • Software Engineering
    Big Tee Tech Hub
    Home»iOS Development»crash – iOS app crashing in simulator after SwiftData refactor
    iOS Development

    crash – iOS app crashing in simulator after SwiftData refactor

    big tee tech hubBy big tee tech hubNovember 13, 2025002 Mins Read
    Share Facebook Twitter Pinterest Copy Link LinkedIn Tumblr Email Telegram WhatsApp
    Follow Us
    Google News Flipboard
    crash – iOS app crashing in simulator after SwiftData refactor
    Share
    Facebook Twitter LinkedIn Pinterest Email Copy Link


    I’ve been working on a small, SwiftUI/SwiftData app for personal usage. This has been going well until yesterday when I decided I should refactor the SwiftData side of things (split some tables up, move things around. All to better map the schema to the application domain). But now the App crashes when it is opened in the simulator, with lots and lots of “CoreData” errors in the log:

    CoreData: error: Failed to stat path '/Users/xxxxxx/Library/Developer/CoreSimulator/Devices/272B947E-AC7B-495F-9190-7A9E6113277F/data/Containers/Data/Application/2CA83FBE-E2FC-42C5-878B-B86E751FA667/Library/Application Support/default.store', errno 2 / No such file or directory.
    CoreData: error: Failed to stat path '/Users/xxxxxx/Library/Developer/CoreSimulator/Devices/272B947E-AC7B-495F-9190-7A9E6113277F/data/Containers/Data/Application/2CA83FBE-E2FC-42C5-878B-B86E751FA667/Library/Application Support/default.store', errno 2 / No such file or directory.
    CoreData: error: Executing as effective user 502
    CoreData: error: Executing as effective user 502
    CoreData: error: Failed to statfs file; errno 2 / No such file or directory.
    CoreData: error: Failed to statfs file; errno 2 / No such file or directory.
    CoreData: error: Logging status information for directory path: /Users/xxxxxx/Library/Developer/CoreSimulator/Devices/272B947E-AC7B-495F-9190-7A9E6113277F/data/Containers/Data/Application/261084F1-C9EE-4338-9D89-F2B5FAFDDBC6/Library/Application Support
    CoreData: error: Executing as effective user 502
    CoreData: error: Executing as effective user 502
    CoreData: error: Information for /
    CoreData: error: Information for /
    CoreData: error:   File Device ID:  0
    CoreData: error:   File Device ID:  0
    CoreData: error:   Device ID:       16777230
    CoreData: error:   Device ID:       16777230
    CoreData: error:   File Size:       704 bytes
    CoreData: error:   File Size:       704 bytes
    ...
    

    In setting breakpoints and stepping over code, the crash occurs when setting the “.modelContainer(for:)” in the @main application code.

    From googling around, my best guess is that there is a mismatch between my new schema and the schema in the previously created sqlite files that are in the simulator directories.

    But I have tried following every suggestion I could find that hinted at how to fix this (deleting the App from the simulator, resetting the simulator etc). Obviously I’ve failed at that. I think at I should be diving deep into the simulator directory structure and purging the data there. But I am not sure where I should be looking, or what files/directories I should be purging.

    What is the best practice to recover from this situation?



    Source link

    app crash crashing iOS refactor simulator SwiftData
    Follow on Google News Follow on Flipboard
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Copy Link
    tonirufai
    big tee tech hub
    • Website

    Related Posts

    ios – Apply shadow only outside of a SwifUI transparent button?

    April 26, 2026

    ios – How to add pictures after keynote update with iPadOS 26.3.1?

    April 25, 2026

    ios – AVCaptureDevice.exposurePointOfInterest readback does not match set value on iPad Pro M4 / M3(UltraWide)and Gen2,3,4(TrueDepth) using resizeAspectFill

    April 25, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Editors Picks

    The Download: supercharged scams and studying AI healthcare

    April 26, 2026

    How Viasat is providing a blueprint for the industrial edge

    April 26, 2026

    Hampshire College to close: Why colleges are going out of business

    April 26, 2026

    Bringing Professional-Level Skills to Cisco Networking Academy

    April 26, 2026
    Timer Code
    15 Second Timer for Articles
    20
    About Us
    About Us

    Welcome To big tee tech hub. Big tee tech hub is a Professional seo tools Platform. Here we will provide you only interesting content, which you will like very much. We’re dedicated to providing you the best of seo tools, with a focus on dependability and tools. We’re working to turn our passion for seo tools into a booming online website. We hope you enjoy our seo tools as much as we enjoy offering them to you.

    Don't Miss!

    The Download: supercharged scams and studying AI healthcare

    April 26, 2026

    How Viasat is providing a blueprint for the industrial edge

    April 26, 2026

    Subscribe to Updates

    Get the latest technology news from Bigteetechhub about IT, Cybersecurity and Big Data.

      • About Us
      • Contact Us
      • Disclaimer
      • Privacy Policy
      • Terms and Conditions
      © 2026 bigteetechhub.All Right Reserved

      Type above and press Enter to search. Press Esc to cancel.