Post

Replies

Boosts

Views

Activity

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)
4
0
179
5d
Xcode 16 won't pair with iPhone, Error is: DeviceLinkListener.c:_copyMobileDeviceValue| ERROR: Attempt to copy a value from an unpaired device. Cowardly refusing to do so
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 MacOS Sequoia iOS 18, iPhone 13 mini (previously paired happily with Xcode 15)
1
0
219
Sep ’24
IOS app fails to build on Xcode 16 RC but had no issues on Xcode 15
Xcode 16 RC refuses to recognise my iPhone 13 mini running IOS 18 as a device and won’t compile onto it. Using the exact same setup I can compile onto my iPad running IOS 17.5. Xcode used to compile onto it (Xcode 15.x and iphone on IOS 17.x). My iphone is a known device in my developer account. I have switched on ‘Developer Mode’ in the iPhone Settings and rebooted. I am using an Apple lightning cable. I’ve tried changing USB ports. The Mac recognises it in Finder. On one app my minimum deployment is IOS 17. I have created a new app where the minimum deployment is IOS 18 and tried both in combinations, below. I can plug in my iPad running iPadOS 17 and Xcode 16 RC will compile successfully onto it (app is minimum deployment IOS 17) , just not my iPhone now that I upgraded it to IOS 18. I have: installed the Iphone 13 mini simulator with IOS 18 on Xcode 16 RC and compiled successfully to that with both apps. rebooted all devices and replugged all devices in countless combinations, countless times. tried different apps with different minimum deployments, including sample code written by others. tried setting my minimum deployments to IOS 18 The main issue is that at best, Xcode 16 RC ‘sees’ my iPhone mini and tries to pair with it but doesn’t succeed. I tried following this thread: https://developer.apple.com/forums/thread/764196?answerId=804884022#804884022 and tried ‘Quick fix 1’. Which at least allowed Xcode to sometimes ‘see’ my phone, but after a few reboots, no longer does. Quick Fix 1: “Open Terminal and run (replacing the path to Xcode 16.0 if needed): sudo installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /“ Apple M1 Pro - Sequoia 15.0 (24A335) Xcode Version 16.0 (16A242d) I have submitted feedback: FB15264854
2
2
1.4k
Sep ’24
Xcode requires additional components to preview SwiftUI
Up until yesterday I was able to use preview in Xcode. I don't know if it is since my system updated to 13 (I never used the beta) but suddenly I can't use preview with SwiftUI. This is in the same project that was previewing with no issues. In response I have went to preferences-> components and downloaded the simulator for the version I'm trying to simulate, ie. IOS 14.5. This did not help. Error says "Xcode is missing components needed to preview on IOS" Diagnostics says "PlatformDoesNotHaveAgentsError: Missing required components for iOS Xcode is missing components needed to preview on iOS ================================== | HumanReadableSwiftError | | LocationError: noBundle
5
0
2.2k
Sep ’21