Ask HN: What are some tips to make Xcode UI tests / Preview more stable?
Just started iOS development (SwiftUI) 6 weeks ago. A first app is developed, but getting the tooling set up for UI tests has been a PitA. Unstable. Unable to mock the “Sign in with Apple” feature (so I don’t need to authenticate 40 times per test suite). Unreliable previews on the XCode canvas.
XCode is not a super stable. Parse errors and runtime errors are incredibly difficult to troubleshoot depending on how accurate the error message is (eg. the `.toolbar` View modifier seems to always take the bullet for other code errors).
Is there a great resource for XCode development? (Assume I have already watched all relevant WWDC videos, all of the top 20 relevant YouTube videos, and the top 10 websites and Medium articles in Google search results.) I’m considering buying the HackingWithSwift book on testing Swift.