Summary:
I have had this problem for the last several versions of Xcode. I have a very large iOS app that uses many different frameworks. When I use Xcode to debug my iOS app from my iMac, after just a few seconds of the debugger being connected to my running iOS app, I lose my network connection on my iMac.
So far my only solution is to quit Xcode and put my iMac to sleep. After waking the iMac up again, the network connection is restored.
Details:
My iMac is connected to my local network via ethernet. I am not using Wi-Fi (which is turned off).
My iMac is currently running macOS 10.12.6 but the problem has been around with several previous versions. I am currently using Xcode 9 but the problem existed all through Xcode 8 and maybe even Xcode 7 (I forget exactly when it started). I'm not positive but this problem may have started when I added a lot of CloudKit features to my app a while back.
Question:
1. How do I file a bug report on this? I can't reproduce this problem with any other app, even small test apps using CloudKit. I don't know what useful details I can put in the bug report that would allow Apple to find and fix the problem. I can't send them the complete source code to my iOS app. Are there any specific logs or diagnostic information I can look at?
2. Is there a way to restore my network connection without quitting Xcode and putting my iMac to sleep? It's really annoying not being able to do research over the Internet while trying to debug a coding issue.