It might be possible, but I think the way to go would be to buy a Mac mini if you are on a budget, or opt for something like a MacBook if you are willing to spend that much. Another thing is that you would need Xcode 15.
Post
Replies
Boosts
Views
Activity
You should call support. The forums can't help much.
I tested this further, and predicates seem to cause memory leaks that jam the app. SwiftData looks simple, but it isn't, at least for now.
Update to 14.0 Beta (23A5301g) and Xcode 15 beta 5. (Beta 5 is quite broken, but there isn't another way around it.)
I just looked into this some more, and found out that it(according to Xcode, I checked activity monitor and it wasn't) using 100% cpu(even though I am using M2 Pro MacBook Pro 14-inch), high energy impact, and lots of memory. In beta 4, it barely used any. I enabled -com.apple.CoreData.SQLDebug and it wasn't showing anything. My iOS app seems to be in an infinite loop of fetching data. It might be related to that but I am not sure. You can view that thread here.
I updated my Mac to the developer beta and a new problem is appearing. View the new thread here
UPDATE: After further testing, the app is crashing but the iPhone simulator screen still shows the app for some reason.
Could you show the file where the ModelContainer was set up? That would help find the issue.
I tried this, but it looks like it immediately crashes when I open the view. No errors are given by swift either, just "Preview Crashed". When I build this and run in the simulator, it says "Index out of range." I looked at the code but cannot see what is happening, could you help?
Thanks for your fast reply. I tried implimenting what you said would work, but I wasn't able to figure out how to do it. Could you please provide a simpler way/make this more clear?