ordinaryindustries / Mini-Forge-Issue-Tracker

0 stars 0 forks source link

[Bug]: App crashes on launch #27

Open ordinaryindustries opened 9 months ago

ordinaryindustries commented 9 months ago

Description

After adding the Color property to the SwiftData model the app crashes at launch with the following error:

SwiftData/SchemaProperty.swift:369: Fatal error: Unexpected type for CompositeAttribute: AnyColorBox

Removing the property restores functionality. As best I can tell, Color has been taught to conform to the Coddle protocol. I ran into something somewhat similar earlier in development and it was a conflict in the device's database. The fix then was to delete the app and reinstall but that doesn't help with this current issue.

I put it on Reddit to see if the community has any ideas on how to debug this. https://www.reddit.com/r/iOSProgramming/comments/180zqhf/how_do_you_debug_an_app_that_crashes_immediately/

(╯°□°)╯︵ ┻━┻

Steps to reproduce

Build and run the app.

Expected behavior

The app should not crash on launch.

Device type

All simulators and a physical iPhone 14 Pro Max

Operating system version

17.0.1 to 17.2

What app version did this occur on?

17

Attach screenshots

No response

Additional information

No response

ordinaryindustries commented 9 months ago

Reddit was unfruitful. We should open a code-level support ticket with Apple.

ordinaryindustries commented 9 months ago

Bumping to P1 as this is crucial that we be able to store.