5 Replies
      Latest reply on May 19, 2020 7:17 PM by SergioDCQ
      SergioDCQ Level 1 Level 1 (0 points)

        Hello,

         

        Just starting to learn Xcode and I can test the first chapter's app on my iPhone if it's conncted via USB-C.  The book walks me through the part where I can allow Xcode to connect to the iPhone via WiFi, just checking "Connect via Network."

         

        Yet Xcode cannot find my phone unless it's connected via USB. When I go to Devices that checkbox stays checked, unless I unplug the phone it which case that box doesn't even appear.

         

        And yes, they are both on the same WiFi, it's the only one I have and it's up and running.

         

        Any thoughs?

        • Re: iPhone won't connect to Xcode over WiFi
          KMT Level 9 Level 9 (15,735 points)

               >The book walks me through the part where I can allow Xcode to connect to the iPhone via WiFi, just checking "Connect via Network."

           

          What did the person you bought that outdated book from have to say when you asked them to $upport their product? Might as well get some of what you paid for, right? Does that book even know about Xcode 11.4.1? Pls. don't expect devForums to act as it's defacto support channel.

           

          Do you have a paid Developer Program account or are you working with Xcode's free provisioning? Just curious...

           

          In the mean time, via Xcode 11.4.1:

          • Disconnect your device and shut it off, then restart your (real mac, not a VM etc.) computer.
          • Open Xcode with the project you've already been able to build to your device.
          • Choose Window > Devices and Simulators, then in the window that appears, click Devices.
          • Turn your device on, cable it to your computer and confirm Wi-Fi is on, same network for both.
          • In the left column (Devices and Simulators), select your device, and in the detail area, confirm that 'Show as run destination' is checked, then check/select 'Connect via network'. Xcode pairs with your device ('connect via network' dissapears). Wait as necessary for any dialogs about xcode copying files from device.
          • Disconnect your device from USB.
          • Look at Xcode's build/run menu for your device, should be top of that list. Select it, hit (build/then/run), be patient.
          • Find the receipt for that book and send it back for a refund. Don't be tempted to replace it.
            • Re: iPhone won't connect to Xcode over WiFi
              SergioDCQ Level 1 Level 1 (0 points)

              In the end it comes down to rebooting one or both devices (Mac and iPhone).  But in the end I have to keep doing it, at least twice today. Wish I could find what's causing this to happen.

                • Re: iPhone won't connect to Xcode over WiFi
                  KMT Level 9 Level 9 (15,735 points)

                  Find the Console application in the Utilities folder, run it and browse system and/or networking logs during live testing.

                    • Re: iPhone won't connect to Xcode over WiFi
                      SergioDCQ Level 1 Level 1 (0 points)

                      I cleared the system log (for the system, not user), plugged my iPhone in via USB, made sure Connect via Network was checked, unplugged the iPhone (and the iPhone disappeared.

                       

                      Below is what was in the system log. But this is more than my knowledge.  Am going to see if Xcode can help me, but thought you might be able to spot the problem. Starting at the 32 second is when I pulled out the USB cable.

                       

                       

                       

                       

                      May 19 22:15:10 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: Entered:_AMMuxedVersion2DeviceConnected, mux-device:43

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: Entered:_AMMuxedVersion2DeviceConnected, mux-device:43

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: tid:900f - unable to query device capabilities

                      May 19 22:15:10 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: tid:bb37 - unable to query device capabilities

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class PDFToRasterImageRef is implemented in both /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/A/AMPLibrary and /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent. One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class AMPArtworkSourceInfo is implemented in both /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/A/AMPLibrary and /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent. One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class AMPLibraryClientEventsXPCObject is implemented in both /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/A/AMPLibrary and /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent. One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class AMPLClient is implemented in both /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/A/AMPLibrary and /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent. One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class AMPLFrameworkClient is implemented in both /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/A/AMPLibrary and /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent. One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class AMPLMediaAppClient is implemented in both /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/A/AMPLibrary and /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent. One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class AMPLSharingClient is implemented in both /System/Library/PrivateFrameworks/AMPLibrary.framework/Versions/A/AMPLibrary and /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent. One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class asn1ReceiptToken is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff8ca69a08) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x111bb52a8). One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class ISPurchaseReceipt is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff8ca69990) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x111bb52f8). One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class asn1Token is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff8ca69a80) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x111bb5348). One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class asn1SetToken is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff8ca69a58) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x111bb5370). One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class asn1SequenceToken is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff8ca69a30) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x111bb5398). One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class asn1IntegerToken is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff8ca699b8) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x111bb53c0). One of the two will be used. Which one is undefined.

                      May 19 22:15:10 Sergios-MacBook-Pro AMPDevicesAgent[1130]: objc[1130]: Class asn1OSToken is implemented in both /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore (0x7fff8ca699e0) and /System/Library/PrivateFrameworks/CoreFP.framework/Versions/A/CoreFP (0x111bb53e8). One of the two will be used. Which one is undefined.

                      May 19 22:15:11 Sergios-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.xpc.launchd.domain.pid.AMPDevicesAgent.1130): Failed to bootstrap path: path = /System/Library/PrivateFrameworks/AMPDevices.framework/Versions/A/Support/AMPDevicesAgent, error = 2: No such file or directory

                      May 19 22:15:11 Sergios-MacBook-Pro AMPDevicesAgent[1130]: Entered:_AMMuxedVersion2DeviceConnected, mux-device:43

                      May 19 22:15:11 Sergios-MacBook-Pro AMPDevicesAgent[1130]: tid:7603 - unable to query device capabilities

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: Entered:_AMMuxedDeviceDisconnected, mux-device:43

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: Entered:_AMMuxedDeviceDisconnected, mux-device:43

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: Entered:__thr_AMMuxedDeviceDisconnected, mux-device:43

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: Entered:__thr_AMMuxedDeviceDisconnected, mux-device:43

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: Entered:_AMMuxedDeviceDisconnected, mux-device:43

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: tid:2927 - BootedOS mode device disconnected

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: Entered:__thr_AMMuxedDeviceDisconnected, mux-device:43

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: tid:430f - BootedOS mode device disconnected

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: tid:900f - BootedOS mode device disconnected

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: tid:9e47 - Invalid ECID passed to make key with

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: tid:740b - Invalid ECID passed to make key with

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: tid:9e47 - Failed to create ecid key for RSD device

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: tid:740b - Failed to create ecid key for RSD device

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: tid:2927 - Invalid ECID passed to make key with

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: tid:2927 - Failed to create ecid key for RSD device

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: tid:2927 - Failed to get ECID from MDRemoteService device

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: tid:2927 - Invalid ECID passed to make key with

                      May 19 22:15:32 Sergios-MacBook-Pro MobileDeviceUpdater[1069]: tid:2927 - Couldn't generate a deviceKey for an MDRemoteServiceDeviceRef.

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: tid:9e47 - Failed to get ECID from MDRemoteService device

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: tid:9e47 - Invalid ECID passed to make key with

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDeviceDiscoveryAgent[399]: tid:9e47 - Couldn't generate a deviceKey for an MDRemoteServiceDeviceRef.

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: tid:1201b - Failed to get ECID from MDRemoteService device

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: tid:1201b - Invalid ECID passed to make key with

                      May 19 22:15:32 Sergios-MacBook-Pro AMPDevicesAgent[1130]: tid:1201b - Couldn't generate a deviceKey for an MDRemoteServiceDeviceRef.

                • Re: iPhone won't connect to Xcode over WiFi
                  edford Apple Staff Apple Staff (905 points)

                  We have some network debugging information in this Xcode help article.