I'm trying to run my app on my iPhone and XCode is unable to detect it.
Versions (as of time of writing, these are all the latest versions)
XCode: 15.0.1
iOS: 17.1.2
macOS: Sonoma 14.1.2
What I've tried
Updating all hardware to the latest versions.
Restarting all hardware.
Clearing cache/derived data.
Using different USBC ports/cables.
Using the XCode 15.1-Beta 3 (the latest beta)
Clearing trusted computers and re-trusting
Disabling Multipath Networking (solution for someone else on the dev forums)
Creating a brand new xcode project.
Disabling all wifi/bluetooth and reconnecting
Using different wifi networks
Calling mac support (they directed me back here)
Scouring forums
What happens
I start by disconnecting my phone from my computer, clear trusted computers, restart xcode, and start (basically) from a completely blank slate. First I open XCode to my project. Then I connect my iPhone via USBC. I see that XCode says "iPhone not eligible while pairing in progress" (or something like that). I see on my phone that I must trust this computer, I hit trust, I enter my phone's passcode, then that disappears on my phone, and in XCode the message about eligibility disappears. I then click on the device selector to choose between either a simulator or a hardware device and under hardware I only see a message that says "No eligible devices connected to my mac". If I open the "Manage Run Destinations" organizer I see all the simulators there in the simulators tab, but when I go to the Devices tab, I see nothing. Sometimes when I go through this process, I can get a banner to appear up top, but still no device shows up on the left. The banner will show me that it is indeed my iPhone, but it will be missing information like "Serial Number" or "Capacity". Here's a screenshot of what I see. Keep in mind, this banner up top does not always show up when I go through this process.
iPhone CAN be detected on my other laptop
When I do this exact same thing on my other laptop, everything works just fine. Here are the specs I'm running on that laptop.
(using the same cable/wifi network/etc)
XCode 15.0.1
macOS: Ventura 13.6.1
iPhone 17.1.2 (I'm using the same iPhone)
The only difference here being the macOS version. However, the problem started on my "broken" computer while I was running a previous major macOS version. This problem is actually what prompted my to do a system update to Sonoma.
Please for the love of god, halp!!!
Dive into the vast array of tools, services, and support available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I want to use a ci_script to change the CI_BUILD_NUMBER to a new value.
But in XCODE CLOUD there seems to be no programmatic way to change it?
I bought a new iPhone 16, iOS18 (22A3354). Data is synced from the old device. The old device has a certificate under Settings - General - "VPN & Device Management". The iPhone16 device is not synced to the certificate. After I manually added it on my iPhone16, I didn't find the certificate in Settings - General - About - certificate trust settings. I tried restarting and reimporting, it still doesn't work. Erase the iPhone and re-import the certificate, which is successfully trusted.
I tried another iPhone 15 device, upgraded to iOS18. After the certificate is imported, the certificate is successfully trusted.
The problem seems to be related to data synchronization to iOS18 devices.
Is this just a bug? Is there any solution?
Topic:
Developer Tools & Services
SubTopic:
General
I just swapped over to Xcode 16 and archived my build. I have ENABLE_BITCODE = NO in my Build settings (it's listed under user defined settings). When I go to validate the build, I get a failure "Invalid Executable, ***.framework contains bitcode".
Nothing about my project settings has changed. If i swap back to Xcode 15 everything's fine when I validate. One thing I noticed though is that if I go through the process of validating, on the confirmation screen for Xcode 16 RC, the line about Bitcode: Not included does not exist like it does if I hit the confirmation screen in Xcode 15.
We are encountering build failures during the following stages on Xcode Cloud:
• Export archive for ad-hoc distribution -> fail
• Export archive for development distribution -> fail
• Export archive for app-store distribution -> fail
Run command: 'xcodebuild -exportArchive -archivePath /Volumes/workspace/tmp/a603f613-f0a2-4053-9316-2f25ca93250d.xcarchive -exportPath /Volumes/workspace/adhocexport -exportOptionsPlist /Volumes/workspace/ci/ad-hoc-exportoptions.plist '-DVTPortalRequest.Endpoint=http://172.16.56.69:8089' -DVTProvisioningIsManaged=YES -IDEDistributionLogDirectory=/Volumes/workspace/tmp/ad-hoc-export-archive-logs -DVTSkipCertificateValidityCheck=YES -DVTServicesLogLevel=3'
Error
Command exited with non-zero exit-code: 70
2025-01-21T05:11:20.962717086Z error: exportArchive There is a problem with the request entity
2025-01-21T05:11:20.962756880Z
2025-01-21T05:11:20.962760011Z error: exportArchive No signing certificate "iOS Distribution" found
2025-01-21T05:11:20.962764378Z
2025-01-21T05:11:20.962767137Z error: exportArchive There is a problem with the request entity
2025-01-21T05:11:20.962771440Z
2025-01-21T05:11:20.962774232Z error: exportArchive No signing certificate "iOS Distribution" found
The build process was functioning correctly until this morning with same branch. We also have verified that our certificates are valid and successfully uploaded to TestFlight using these certificates on the local Xcode environment.
This appears to be an issue on the Xcode Cloud side as no significant configuration changes were made on our end.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
My current workflow to have a Swift Package with a Demo is like this:
PackageFolder > DemoFolder
I have a package, with a Demo folder inside. I can open the Demo project and Drag&Drop the local PackageFolder to override the remote dependency with the local one. This allows to edit the package while inside the demo project.
With Xcode 16 this does no longer work because Xcode does not allow to drop an ancestor of the file path where the project is located. Xcode does not tell this while you drop, it just does not allow it. But it tells you thats the reason, when you try to add the local package as a dependency to the project: "The selected package cannot be a direct ancestor of the project.".
(Dropping other local packages still works, see: https://forums.developer.apple.com/forums/thread/756824)
What is the expected way to handle a package with a demo project with Xcode 16?
Submitted feedback FB17075016
Xcode 16.3 release
macOS 15.4
iOS 18.4 / iPadOS 18.4 release builds
Memory graph fails to build when targeting physical devices running release builds referenced above. Memory graph will build against a simulator device.
Created a new project in Xcode 16.3. While adding breakpoints app is crashing every time in Xcode and playground both. Tried with swift 5 and swift 6 getting same error.
Crash reason : Couldn't find the Objective-C runtime library in loaded images.
Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process
lldb-rpc-server-2025-04-14-092736.txt
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Swift Playground
Xcode
Playground Support
LLDB
My membership expires in 10 days and I'm trying to find out how I can renew it.According to Applet:"You can renew starting 30 days before the expiration date of your existing membership or any time after it expires. Your expiration date is available in your account on the developer website. To renew, sign in to your account with the Apple ID you used to enroll, and click the "Renew Now” button. If your membership is still active when you renew, your new membership will activate as soon as your current membership expires and you will receive two (2) new TSIs."So, I sign in to my account with the Apple ID I used to enroll and I can't see the "Reset Now" button anywyere.All I can see is the "Overview", "Membership", "Certificates, IDs & Profiles", "iTunes Connect", "CloudKit Dashboard" and "Code-Level Support" under the "Programs Resources" section, on the left, and the "Documentation", "Forums", "Bug Reporter" and "News & Updates" under the "Additional Resources" section, again on the left.I went to each and every of these and there is no "Renew Now" button anywhere.Any ideas?Thanks in advance.
Hi there,
I uploaded an update bundle for the posted app, but I got a rejection message.
ITMS-90048: This bundle is invalid - Your archive contains paths that are not allowed: [._Symbols]
The XCode version I'm using is 16.2, and I've been trying to find a route using Run Script and Finder, but I don't know what the hell it is about.
Does anybody know what could cause this issue?
Any help would be appreciated.
Thanks.
When running a SwiftUI Multiplatform app in Xcode Cloud I'm getting the following error:
CIWatcher encountered an error in CIWatcherTests failed with:
Failed to install or launch the test runner. (Underlying Error: Could not launch “CIWatcherTests”. Runningboard has returned error 5. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn’t be completed. Launch failed. (Underlying Error: Launchd job spawn failed)))
This runs fine on iOS and all those tests pass.
The SwiftUI app on Mac is a menu bar app so I'm not sure if this could be the issue as it's not launching for some reason on the Xcode Cloud system? Maybe I need to add some run option to make this work?
When run locally both iOS and macOS pass all the tests successfully
Hello,
I'm unable to run any test cases in Xcode 16 with the iOS 18 simulator.
Steps to Reproduce:
Create a new iOS project in Xcode 16 using the default iOS app template with the testing option checked.
Run any test or UI test case by clicking the "Play" icon in the Test navigator.
Xcode gets stuck at the "Testing" state indefinitely.
Environment:
macOS 15 beta 8
Xcode 16 beta 6
iOS 18 beta 7 simulator
Hello,
I uploaded a new build to TestFlight, and it has been about an hour since the processing was completed.
However, the update is still not showing up in the TestFlight app.
From my experience, the update usually appears within 10 to 30 minutes, but this time it is taking unusually long.
I’m wondering if anyone else has experienced a similar issue and found a solution.
Any advice or guidance would be greatly appreciated.
Thank you!
Will RC be allowed to upload to App Store Connect?
I have tried a couple of times with 17A321 and I keep getting unsupported SDK or Xcode version.
Submitted feedback FB20178551
So yesterday I noticed that some of images in my app stopped appearing. All of them were placed in the on-demand resources, that is I've assigned tags to them. Up until yesterday they were working correctly but since then whenever I try to load the assets I get the error message saying:
Error Domain=NSCocoaErrorDomain Code=4099 "Connection invalidated to streaming unzip service."
My code for loading the asset is pretty straightforward and it was working perfectly fine before:
let resourceRequest = NSBundleResourceRequest(tags: ["vinyl"])
defer {
resourceRequest.endAccessingResources()
}
do {
if await !resourceRequest.conditionallyBeginAccessingResources() {
try await resourceRequest.beginAccessingResources()
}
} catch {
assertionFailure("Vinyl image was not available, error: \(error)")
}
I'm obviously using it in asynchronous context, but the old method which used completion handler gives me the same error.
Has anyone encountered this issue as well? I just updated my devices to iOS 15.5, maybe that update broke on-demand resources?
Tested on Xcode 13.4, iOS 15.5
When the Icon Composer file is imported into the project folder, and after building, there is a warning that says:
Failed to parse icontool JSON output.
Parts of the warnings show this:
Entity: line 1: parser error : Start tag expected, '<' not found
\211PNG
^
Entity: line 1: parser error : Start tag expected, '<' not found
\211PNG
^
Entity: line 1: parser error : Start tag expected, '<' not found
\211PNG
^
/* com.apple.actool.notices */
warning: Failed to parse icontool JSON output.
Underlying Errors:
Description: The data couldn’t be read because it isn’t in the correct format.
Failure Reason: The data is not in the correct format.
Debug Description: Garbage at end around line 6, column 0.
/* com.apple.actool.compilation-results */
I have created the icon with png files in each layer group in icon composer.
However the project is able to compile, and running shows the correct icon.
What is the issue with this?
Hello,
Has anyone used Sentry with Xcode Cloud? How are you uploading dSYM files? One way is fastlane but Xcode Cloud doesn't come with Fastlane preinstalled, the other is sentry-cli but the same issue, it's not preinstalled.
We have a simple workflow that just runs the Test action on my unit_tests scheme (see Xcode Cloud workflow configuration screenshot). The workflow is configured to use Xcode 16.4 (Latest Release), macOS Sequoia 15.6 (Latest Release), and iOS 18.0 simulators.
Today, this workflow has been consistently running indefinitely. The Xcode cloud runner tries to launch the simulator to execute the tests, but it fails. See the error message in the screenshot from Xcode Cloud logs. Link to corresponding build is in my Feedback Assistant ticket.
It continues to retry this operation for a very long time — I had one job that ran for over 90 minutes. Link to corresponding build also in that same Feedback Assistant ticket.
Are Xcode Cloud runners perhaps currently undergoing maintenance? Or is something else going on. I would appreciate if Xcode Cloud usage from today could be refunded to my team’s account.
Feedback Assistant ticket #FB20195292.
Error message:
MyApp encountered an error (Failed to prepare device 'iPhone 16' for impending launch. (Underlying Error: Unable to boot the Simulator. launchd failed to respond. (Underlying Error: Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding)))
I am getting the following error when installing Xcode 16 Beta:
The operation couldn’t be completed. (ModelCatalog.CatalogErrors.AssetErrors error 1.)
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
User Info: {
DVTErrorCreationDateKey = "2024-06-20 20:18:46 +0000";
}
Failed to find asset: com.apple.fm.language.code_safety_guardrail.base - no asset
Domain: ModelCatalog.CatalogErrors.AssetErrors
Code: 1
We started seeing an access issue today when attempting to go to the Xcode Cloud tab in App Store Connect. When you navigate to https://appstoreconnect.apple.com/teams/:teamId/apps/:appId/ci we're seeing the following message:
The page you’re looking for can’t be found.
The page you’re looking for does not exist, or you do not have permission to view it.
I am the account holder so it shouldn't be a permissions issue. Is there an ongoing outage or problem in Xcode Cloud? And, if so, where can I monitor this accurately?