“Connect via network” wireless debugging not working Xcode 9

前端 未结 4 551
死守一世寂寞
死守一世寂寞 2021-01-31 18:13

I am trying to run my iOS app via wifi network. But its not working as I expected.

Connected Network sign is not displaying.

I am using

相关标签:
4条回答
  • 2021-01-31 18:43

    I was having the same issue and performed the following steps to get things working:

    1. Open "Devices and Simulators"
    2. Connect your device and check the "Connect via network" checkbox
    3. Disconnect your device
    4. Right click listing for your device in the left hand column (Under Disconnected)
    5. Select "Connect via IP Address.." and enter your device's IP address

    0 讨论(0)
  • 2021-01-31 18:49

    Prerequisites: iOS => 11.0; Xcode 9; Same network for both iOS device and Mac

    This worked for me: 1. Plug in iPhone, select "Connect via network" 2. Select you iPhone as the target for debug build. 3. Unplug, build app in that iPhone (it will fail). 4. Plug back in, check for network symbol (it appeared here for me). 5. Unplug and build wirelessly successfully.

    Sorry this is a hand-waivey answer :/

    0 讨论(0)
  • 2021-01-31 18:56

    After numerous Wi-fi resets and device restarts (for iOS 12, Xcode 10) I found the solution for me was:

    1. Disconnect iOS device from Mac
    2. Go to Settings -> Develop on the iOS device
    3. Tap "Clear Trusted Computers"
    4. Reconnect iOS device to Mac via cable
    5. On iOS device tap "Trust This Computer" and enter passcode
    6. Go to Device Manager in Xcode and enable "Connect Via Network"

    The network symbol appeared and I was good to go.

    0 讨论(0)
  • 2021-01-31 18:56

    I just figure it out. Plug cable in, run app (must setting connect to network), and stop. Plug cable out, go to Debug > Attach to process (select your app) now its working

    0 讨论(0)
提交回复
热议问题