Xcode 16 won't connect to or compile to my iPhone since upgrade

I upgraded Xcode to 16, my Mac to Sequoia and my iphone and iPad to IOS 18.

My developer devices are my iPhone, my iPad, my Husband's iPad and iPhone, all running IOS 18. Before upgrading Xcode to 16 I could compile onto all of these devices with no difficulty.

But now, Xcode 16 recognises and compiles to all of my developer devices except my iPhone.

My Mac recognises my iPhone when I plug it into a USB-C port, but Xcode does not. Xcode does not even try to pair with it or let me try to add it as a device.

I have tried switching off dev mode on the phone, switching it back on again, plugging and replugging, rebooting Xcode. But Xcode will not recognise my iPhone, which is a 13 mini.

Any idea what to do?

I plugged my iPhone into a usb port using a vanilla Apple lightning cable and typed this into Terminal:

xcrun devicectl list devices then lists the following. And for info, MCW's iPad and MCW's iPhone are in Shanghai at the moment, I am in the UK.

Devices: Name Hostname Identifier State Model


EasterdownDev1 00008020-00094D403C41402E.coredevice.local DE6CB0B3-399A-4B54-9ADD-E8758D8D4837 available (paired) iPad mini (5th generation) (iPad11,1) MCW's iPad 00008030-001E18E90AF0C02E.coredevice.local 3AE52B50-D69F-4827-82DA-E6968B0D5A5F unavailable iPad (9th generation) (iPad12,1)
MCW's iPhone 00008101-001868D20222001E.coredevice.local 13AABF38-441B-4C4D-9FE8-440D3D9472CC unavailable iPhone 12 mini (iPhone13,1)

Answered by vickieW in 812799022

Can you upgrade to Xcode 16.1, macOS 15.1, and iOS 18.1 and see if that makes a difference? I work with the engineering teams responsible for the device connection components, and the software continues to evolve, including in these point versions, as well as the current betas (Xcode 16.2, iOS 18.2, and so on), so its possible that moving up to the latest point release (or even to the beta versions) will help.

Upgrading to Xcode 16.1, macOS 15.1 and IOS 18.1 has sorted out this problem.

Thank you so much.

And for info - I could not get CoreDevice logging to switch on on my iPhone. It definitely installed. Maybe Apple needs to look at this?

And thanks again to Apple for fixing this behind the scenes.

Do you have any VPNs that are running, or other system security software (Endpoint security or MDM management) that may be required by an employer? If so, make sure that software gets ruled out from interfering.

My Mac recognises my iPhone when I plug it into a USB-C port

I plugged my iPhone into a usb port using a vanilla Apple lightning cable

Is the cable in visibly good condition with no obvious wear signs that indicate its closer to end of life than beginning of life? I've seen this happen on occasion, where a device shows up in Finder, but not to Xcode, due to a bad cable. There may be something else to the story here and the cable is fine, but trying with a different cable is an easy way to rule things out if you happen to have another cable handy.

I upgraded Xcode to 16, my Mac to Sequoia and my iphone and iPad to IOS 18.

Can you upgrade to Xcode 16.1, macOS 15.1, and iOS 18.1 and see if that makes a difference? I work with the engineering teams responsible for the device connection components, and the software continues to evolve, including in these point versions, as well as the current betas (Xcode 16.2, iOS 18.2, and so on), so its possible that moving up to the latest point release (or even to the beta versions) will help.

xcrun devicectl list devices then lists the following.

I presume what you're calling attention to is that you have iPhone 13 mini, but no such device is listed at all. A similar device, iPhone 12 mini, is listed, but you can account for its whereabouts and so that's not the right device. Do I have that correct?

If so, I'd like to see you file a bug report with the CoreDevice logging profile installed (to both iOS and macOS) so that we can understand why your iPhone isn't visible at all. Once that logging profile is installed, capture a sysdiagnose for macOS and iOS, and open the bug report through Feedback Assistant. Post the FB number here for reference, and we'll see where that takes us.

— Ed Ford,  DTS Engineer

Thank you so much for your reply

Do you have any VPNs that are running, or other system security software (Endpoint security or MDM management) that may be required by an employer? If so, make sure that software gets ruled out from interfering.

No VPN running or active or activated on either device

s the cable in visibly good condition with no obvious wear signs that indicate its closer to end of life than beginning of life?

I believe the cable is in good condition, especially as I can compile onto my iPad, my Husband's iPad and my Husband's iPhone (the iPhone 12 referred to by xcrun) using it. I have tried turning off wifi and using only the cable to connect to the other devices. In other words, with my network switched off, I have compiled with Xcode onto to the other devices using this cable. Even repeating this experiment with my own iPad running IOS 18.01 just now.

I presume what you're calling attention to is that you have iPhone 13 mini, but no such device is listed at all. A similar device, iPhone 12 mini, is listed, but you can account for its whereabouts and so that's not the right device. Do I have that correct?

Yes. the iPhone 12 mini belongs to my husband. This device along with his iPad are currently in China and I am in the UK, which is why I chose to retest now, This issue has been ongoing for months but I've just been using my husband's iphone to test on. I can't do that at the moment as he is away.

if so, I'd like to see you file a bug report with the CoreDevice logging profile installed (to both iOS and macOS) so that we can understand why your iPhone isn't visible at all. Once that logging profile is installed, capture a sysdiagnose for macOS and iOS

I have been trying to do this and at the moment CoreDevice won't switch on on my iPhone. I thought I would post this update and will try the CoreDeviceProfiles again. I've been trying to attach the sysdiagnose file from my macbook here, but when I use the forum buttons to upload a file, it is greyed out.

I asked this on a previous thread, maybe you will find it useful despite the current lack of a sysdiagnose file from my iPhone. [https://developer.apple.com/forums/thread/765013)

Any Apple Engineers out there who wrote this error message?

DeviceLinkListener.c:_copyMobileDeviceValue| ERROR: Attempt to copy a value from an unpaired device. Cowardly refusing to do so ERROR: .... Cowardly refusing to do so Any thoughts? I click on 'trust this computer' (on the iPhone) and the error is triggered. FB15285137

Thank you, I will try the CoreDevice again later on.

Vickie

Accepted Answer

Can you upgrade to Xcode 16.1, macOS 15.1, and iOS 18.1 and see if that makes a difference? I work with the engineering teams responsible for the device connection components, and the software continues to evolve, including in these point versions, as well as the current betas (Xcode 16.2, iOS 18.2, and so on), so its possible that moving up to the latest point release (or even to the beta versions) will help.

Upgrading to Xcode 16.1, macOS 15.1 and IOS 18.1 has sorted out this problem.

Thank you so much.

And for info - I could not get CoreDevice logging to switch on on my iPhone. It definitely installed. Maybe Apple needs to look at this?

And thanks again to Apple for fixing this behind the scenes.

Xcode 16 won't connect to or compile to my iPhone since upgrade
 
 
Q