Xcode 9.3无线调试无法正常使用的解决办法
Hey there, let's work through this wireless debugging problem together. I've dealt with similar glitches in older Xcode/iOS versions, so here are some practical steps to get that network icon showing up:
Double-check your Wi-Fi setup
Make sure both your Mac and iPhone are connected to the same 2.4GHz Wi-Fi network (older hardware and Xcode 9.3 often have issues with 5GHz networks). Also confirm their IP addresses are in the same subnet (e.g., both start with192.168.x.x). You can find your Mac's IP inSystem Preferences > Network, and your iPhone's inSettings > Wi-Fi > tap the "i" next to your network.Re-pair the device for wireless debugging
- Connect your iPhone to your Mac with a cable, then open Xcode's
Window > Devices and Simulators. - Uncheck the "Connect via network" box, disconnect the cable, and wait 10 seconds.
- Reconnect the cable, recheck "Connect via network", then unplug the cable. Keep an eye on the devices list—this fresh pairing often fixes the missing icon.
- Connect your iPhone to your Mac with a cable, then open Xcode's
Reset your iPhone's network settings
Sometimes cached network data messes with the connection. Go toSettings > General > Reset > Reset Network Settings(note: this will erase saved Wi-Fi passwords, so have them handy). Reconnect to your Wi-Fi, then repeat the wireless debugging setup steps.Clear Xcode's Derived Data
Corrupted cached data can cause weird issues. Open Xcode'sPreferences > Locations, click the arrow next to "Derived Data", delete the entire folder, then restart Xcode. This forces Xcode to rebuild its device support files from scratch.Manually add the device via IP
In theDevices and Simulatorswindow, click the+button in the bottom-left corner. Enter your iPhone's IP address (from its Wi-Fi settings), then click "Connect". This bypasses automatic discovery and might kickstart the wireless connection.
内容的提问来源于stack exchange,提问作者john f2

