twostraws / ControlRoom

A macOS app to control the Xcode Simulator.
MIT License
5.77k stars 304 forks source link

A lot of previews are crashing #62

Closed alladinian closed 3 years ago

alladinian commented 4 years ago

I'm seeing a lot of previews crashing, mainly due to missing environmentObject injection (for example AppView is missing UIState and NetworkView is missing Preferences - this was pointed out by the crash logs at ~/Library/Logs/DiagnosticReports and verified by manually adding the objects at the respective previews).

I guess this is due to the assumption that injection happens at AppDelegate (?) and thus "inherited" (by silently launching the app) by every preview or this assumption should be valid and this is something that is failing due to my system setup (latest production version of Xcode)? Is anyone else having these problems?

davedelong commented 4 years ago

Interesting. I will investigate. Thanks for reporting!

davedelong commented 4 years ago

OH! This is about Xcode live previews, right?

alladinian commented 4 years ago

Oh yes 😋 sorry, I guess I could have made it a little bit more clear in my message.