Post

Replies

Boosts

Views

Activity

Reply to Code coverage. SwiftUI Wrong Executable Lines
I'm seeing the exact same thing, and I can't believe that this post is the only thing I can find online about it! I have one view that's 183 lines, including comments and empty lines, but without the #Preview, and the code coverage table shows that it has 624 lines. It's bad enough that it's well nigh impossible to unit-test SwiftUI views, but wildly inflating their line counts is causing our overall test coverage numbers to be much lower than they should be. (I've confirmed this in Xcode 16.4 and 26.0.1.)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’25
Reply to Xcode 15: Unable to pair iOS 17 device for debugging via cable
Same problem here. iPhone 13 running 17.5.1; MBP M3, late 2023 running Sonoma 14.5. Disabling the VPN isn't an option because my employer requires it. What's weird is that Xcode can see the phone sometimes (maybe once every couple of days), but even if it does, I get a connection error a few minutes later and I'm back to square one. The phone is in Developer Mode (which I've toggled a few times, to no avail) and I frequently clear the trusted computers.
Jul ’24