Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

No MAS receipt after exit(173)
App receipt generation is broken (again). I'm getting the message my app is "damaged" on macOS Monterey 12.3.1 with Xcode 13.3.1 when no receipt is delivered after the app quits with exit(173) and I'm prompted for Mac App Store credentials. I tried App Store log out / log in (sandbox and regular account), cleaning derived data as well as reboot to no avail. Being aware of several old postings (and new comments), I decided to start a new thread to increase visibility ... and also filed a bug report FB10014055. Please consider a duplicate report if you're affected to raise Apple's awareness (all system status are reported as "green")...
12
1
4.4k
1d
Apple Watch Series 6 not detected by Xcode 27.2 — Developer Mode missing
I’m trying to install my own app on my Apple Watch using Xcode, but my Mac cannot detect the watch. Devices and software: Apple Watch Series 6 — watchOS 26.6.1 iPhone 17 Pro — iOS 27.3 Xcode 27.2 — build 27B52 The iPhone appears connected in Device Hub, and I can install and run the iPhone app. The Apple Watch is paired with the iPhone, but it does not appear in Device Hub, devicectl, or xcdevice. The Developer Mode option is also missing from the watch’s Settings. Installing the companion app through the Watch app on the iPhone fails with: “Unable to install because its integrity could not be verified.” The current provisioning profile includes only the iPhone because we haven’t been able to detect and register the watch. We have already restarted all three devices, reconnected the iPhone by cable with both devices unlocked, reset Location & Privacy on the iPhone, renewed its pairing with the Mac, and tried a different Wi-Fi network. The issue persists. How can I get Xcode to recognize this watch and make Developer Mode available with this combination of software versions? If necessary, please direct me to Apple Developer Support for Xcode/watchOS.
0
0
67
1d
Paired Apple Watch never appears in Xcode 27 / devicectl, so the Developer Mode toggle never shows on the watch
My paired Apple Watch never shows up in Xcode, so the Developer Mode toggle never appears on the watch (Settings > Privacy & Security). The paired iPhone works perfectly, and I build and install to it every day. Setup Mac: macOS Tahoe 26.6, Xcode 27.0 (watchOS 27 SDK and platform installed) iPhone 15 Pro Max, Developer Mode ON, shows as connected in xcrun devicectl list devices over USB Apple Watch on watchOS 26.x, passcode set, unlocked, on wrist Free personal team (also tried a second free Apple ID; both are signed in to Xcode) Symptom xcrun devicectl list devices lists the iPhone and an iPad, never the watch Devices and Simulators shows no watch under the iPhone No ~/Library/Developer/Xcode/watchOS DeviceSupport folder has ever been created Unified log on the Mac shows no CoreDevice / remotepairing activity for the watch at all. It looks like the Mac never hears from it. Network No router. The Mac gets internet from an iPad over USB and re-shares it over Wi-Fi (macOS Internet Sharing). iPhone and watch are joined to that network. I also tried the Mac and phone on the iPhone's Personal Hotspot. VPN is off and the firewall is off. Already tried, no change Unpaired the watch and paired again (restored from backup) iPhone: Settings > Developer > Clear Trusted Computers, re-trusted, xcrun devicectl manage pair Accepted the "Trust this computer" prompt on the watch after a restart iPhone Developer Mode off, restart, on, restart Signed out of and back in to Xcode accounts; accepted the latest agreements Restarted the Mac, iPhone and watch; waited 5+ minutes with the Devices window open each time Bluetooth and Wi-Fi on everywhere; watch and Mac on the same Wi-Fi Is there a way to force Xcode to discover the watch through the iPhone, or a log predicate that shows why the watch is never offered? Any pointers appreciated.
1
1
181
2d
Supported way to supervise an iOS Simulator XCTest host before application code executes?
We are investigating a supported architecture for running existing app-hosted XCTest unit and integration tests in iOS Simulator under external process supervision. Our environment is Xcode 27.2, targeting ARM64 iOS Simulator. The tests use SwiftData, CoreData and SQLite with synthetic, test-owned databases. We need to run selected tests serially in isolated processes, monitor their resource usage, and verify that all test-related processes have terminated before cleaning up test databases. Our primary question: Is there a documented, supported way to establish external process supervision before the actual iOS Simulator XCTest host executes any application or test-bundle code? In particular, we are looking for guidance on the following: Pre-execution control: Can the actual XCTest host be launched suspended and released only after an external supervisor has established monitoring? We need coverage of application and test-bundle initialization, not merely a callback before the first test method. Process identity: Is there a supported mechanism to identify and monitor the actual host process using an OS-verifiable identity that remains reliable despite PID reuse? Process termination: Is there a supported way to identify and terminate only the processes belonging to a specific test run, including detached or reparented children, without affecting unrelated Simulator processes? XCTest integration: Can this be achieved while preserving normal XCTest discovery, setup/teardown, asynchronous tests and genuine .xcresult reporting? We have investigated public XCTest APIs, standard xcodebuild workflows and macOS process-control mechanisms. We also successfully compiled and linked a separate ARM64 Simulator executable against our unchanged application debug dylib and XCTest dependencies. However, this was strictly a compile/link experiment: the executable was never launched, and we have not established that a custom XCTest host is supported. We are not seeking private APIs or undocumented CoreSimulator behavior. If this level of supervision is not supported, what is Apple’s recommended documented alternative? In particular, does the standard Xcode-managed XCTest workflow provide any documented guarantees regarding host process identity, lifecycle containment and complete termination of test-related processes? References to official documentation or supported examples would be greatly appreciated.
0
0
31
2d
Apple Watch SE 3 fails to pair with Xcode Device Hub: protocol_shoes does not support endpoint type 3
Hi all, I cannot pair a physical Apple Watch SE 3 with Xcode, and I would like to know if anyone else sees this or has found a workaround. Environment Apple Watch SE 3 (GPS, Watch7,13), watchOS 27.2.1 (24S132) Companion iPhone 15 Plus, iOS 27.2 (24B119) Tested on two different Macs: a MacBook Air (macOS 27.2.1, Xcode 27.2) and an iMac Developer Mode is enabled on both the iPhone and the Watch The iPhone is trusted, connects to the Mac, and appears in Device Hub Problem The Watch shows “Pair with <Mac name>” in its Developer Mode settings. When I tap it, pairing does not complete and the Watch does not appear in Device Hub. Watch log (remotepairingdeviced). The sysdiagnose shows the pairing request failing within about 20 ms. Log prefixes and the endpoint address are omitted: Received request to wirelessly pair from peer Path is satisfied; interface: ipsec2; uses wifi, proxy Endpoint type is not an address or host, cannot synthesize URL protocol_shoes does not support endpoint type 3 Failed to attach application protocol shoes Received pairing outcome failure (errorCode: -1, "An unknown error occurred.")What I tried Restarted the Watch, iPhone and Mac Tested on two Macs and on different Wi-Fi networks Turning Bluetooth off on the iPhone: the Watch then no longer discovers the Mac at all The same failure appears in the Watch sysdiagnoses for all attempts. I filed a report in Feedback Assistant: FB25623613 Has anyone seen this error or found a workaround? Thanks
0
0
57
3d
Default widget extension not configurable on Mac
I've created a basic Multiplatform Project in Xcode, by going to File > New > Project. I've also included the default widget extension target. When I run the widget on Mac, and I control-click and choose "Edit Widget" the widget just kinda turns gray and floats over other windows, but does not let me configure anything. We leave the option to use configure with app intents turned on when adding the widget extension target. When I run the same project on an iPhone simulator, I can configure the widget without any issue. If someone else has a few minutes, can they see if this repeats for them? We are running this test because we are seeing the same experience in a real widget we are trying to develop but we can't get it to go into configuration mode on Mac.
5
1
790
3d
Xcode 27.3 Beta GitHub Copilot not working
I have not been able to get the new GitHub Copilot Agent component to work in Beta 1 or Beta 2. I had a custom ACP agent configured to use copilot --acp.I removed that configuration and configured the new GitHub Copilot component. It says "Signed in to GitHub Copilot" and does show the drop-down of all the Models. Any attempt to start a new conversation says "Configure an agent in Xcode settings to start a conversation" The "New Conversation" and "New Group" buttons are not disabled but they do nothing in the Coding Assistant sidebar I can't see any useful messages in the Console.app for "copilot" or Xcode that point to an obvious problem. I removed ~/Library/Developer/Xcode/CodingAssistant/ I removed ~/Library/Caches/com.apple.dt.Xcode/ I can't find any relevant settings that might be a problem with defaults read com.apple.dt.Xcode Is there any way to diagnose why it does not think an Agent is actually configured. Are there other settings that can be cleared? Or is this a known issue? Thank you for starting down the path to add official GitHub Copilot support.
1
1
106
3d
Documentation in Xcode not downloading
Switched to Xcode 27.2 and it started downloading documentation. After download is finished documentation window is empty, prompting to look up documenation online or download it. Triggering any download does not help – no documentation is available. (Sidenote: Reinstalled Xcode 27.2 and documentation was there. But Xcode started a download automatically and without confirmation and afterwards it is gone)
2
2
107
3d
Xcode 27 for Intel Macs
According to the release notes (https://developer.apple.com/documentation/xcode-release-notes/xcode-27-release-notes), "Xcode 27 beta requires a Mac running macOS Tahoe 26.4 or later." I've tried it on my Intel MacBook running macOS Tahoe 26.5, and it wouldn't run. Looking into it, the binary for the application is an arm64 executable only (which explains why it wouldn't run). Is that a mistake in the release notes, or a mistake with the Xcode 27 beta?
7
2
7.2k
3d
Can devicectl list devices request a developer disk image mount for a paired USB iPhone?
I’m testing discovery of an already-paired iPhone over USB with Xcode 26.6 (17F113), CoreDevice 518.33, and iOS 27.0.1 (24A446). I need to identify the same device repeatedly, including after a restart, and control when a developer disk image (DDI) mount can be requested. The command under review is: devicectl list devices --timeout 2 --json-output <OUTPUT_PATH>Can this invocation initiate or schedule a DDI mount, either directly or through an Apple background service? In particular, if the command times out before writing JSON, could a mount request already have been issued and continue after the process exits? Is there a documented guarantee for this command or a supported option that explicitly prevents mounting? If enumeration provides no such guarantee, is there a supported readonly command or API that reports the device identity, authenticated pairing state, wired transport, and current tunnel peer without requesting a mount? I can check USB ancestry, interface index, and routes on the Mac. Which documented fields let me tie those observations to the same authenticated CoreDevice peer after restart?
0
0
32
3d
Change bar not rendering in source editor gutter — Xcode 27.0 (27A266a)
Summary: The source control change bar no longer appears in the source editor gutter, even though all relevant settings are enabled and the working copy is correctly recognized. This is a regression from earlier Xcode versions. Steps to Reproduce: Create a fresh test project that is fully independent of any existing codebase: mkdir /tmp/changebar-test && cd /tmp/changebar-test swift package init --type executable --name ChangeBarTest git init && git add -A && git commit -m "init" Open Package.swift in Xcode 27.0. Confirm the branch name (e.g. main) is shown in the bottom status bar, which indicates the working copy is correctly established. Confirm Settings > Source Control > "Show source control changes" is checked. Open Sources/ChangeBarTest/ChangeBarTest.swift. Add a new line, e.g. print("test"), and save with Cmd-S. Expected Results: A change bar appears in the gutter next to the modified line (thin blue bar for uncommitted local changes), as it did in previous Xcode versions. Actual Results: No change bar appears anywhere in the gutter. Hovering over the gutter region produces no highlight and no popup. Additional Evidence: IDESourceControlShowChangeBar is set to 1 (verified via defaults read com.apple.dt.Xcode). IDEEditorDefaultCodeReviewPreference is 0. The Source Control navigator correctly lists the repository, the current branch, and three uncommitted commits, so SCM integration itself is functional. Reproduces with a brand-new Swift Package (no CMake, no .gitignore, no third-party dependencies), so this is not project-specific. Switching between built-in appearance presets (Default Dark, Dusk) does not help. Toggling "Show source control changes" off and on, restarting Xcode, and clearing UserInterfaceState.xcuserstate do not help. The Xcode 27 Release Notes contain no mention of change bar or gutter behavior changes, so this appears to be an undocumented regression. Impact: Developers lose the primary at-a-glance indication of which lines they have modified before committing. Reviewing local changes now requires opening the comparison editor or running git diff externally, which significantly slows down the edit-review-commit loop.
0
0
15
3d
Xcode Needs an Integrated Terminal
Hello Apple Developer Team! I'd like to suggest adding a native integrated terminal to Xcode. Xcode is a great development environment, but the lack of a built-in terminal creates unnecessary context switching between the IDE and Terminal or iTerm2. This is more than just a minor inconvenience. At my workplace, several developers prefer alternative editors for iOS development simply because they provide an integrated command line. A native terminal panel in Xcode, similar to those available in other modern IDEs, would make everyday development much more convenient. Ideally, it would support interactive shells (Zsh or Bash), persistent sessions, multiple tabs, and easy access through a keyboard shortcut. I recently experimented with creating an improvised terminal in Xcode using Bash and Custom Behaviors. It works for simple commands, but obviously cannot replace a proper integrated terminal. I believe this would be a valuable addition to Xcode and would help keep developers within Apple's own development environment. Please consider adding this feature. We'd really appreciate it! Final thoughts I believe an integrated terminal would be a valuable addition to Xcode and would help developers avoid unnecessary context switching. Other development environments have demonstrated how convenient this functionality can be. What do you think? Would you like to see a native terminal in Xcode as well? I'd be interested to hear the community's thoughts and whether this feature is already being considered. Thank you!
1
0
92
4d
Simulator and Canvas 27.3 "identityservicesd quit unexpectedly"
Anyone working with the 27.3 devices beta in Xcode 27.3 on macOS 27.3? Canvas and device hub/simulator are throwing this error while open, several on first load, then periodically (not sure of the periodicity). Any help is appreciated. Not sure if it's impacting at the code or app, but it is interfering with active work (it assumes modal position while working). Can reproduce from Device Hub only (all other apps, including XCode closed), screencast here - demos 27.2 for the time it is started no errors, 27.3 as soon as it is started "identityservicesd quit unexpectedly" errors. Looks like stages in the rendering also - noticed dock not displayed, error, then dock displayed, next - home icons not displayed, error, then home icons displayed, etc. https://app.screencast.com/iK0BaVIVpjt0O
6
4
523
4d
Determining SpriteKit Interaction using SKRenderer
Hey, Wondering how other developers have been able to determine the location of a mouse event or tap (ie NSEvent) when using MetalView (MKTView) with SKRenderer with a SpriteKit scene (.sks scene) for a 2D game. In the original scenario with SpriteKit, we could use SKViews convertPoint(fromView:) to determine where in the scene the user tapped. But with the SKRenderer we can no longer use convertPoint(fromView:) as its reliant on SKView being used and thus its making it difficult to determine. What I do have is: locationInWindow: NSPoint for showing me where in the MKTView which was touched Any ideas, would be great Many thanks
1
0
1.2k
4d
Apple Watch won’t show PIN when pairing in Device Hub (Solved)
Xcode 27 Beta 3 / watchOS 27 Beta 3 - Apple Watch won’t show PIN when pairing in Device Hub (Solved) I ran into an issue where my Apple Watch could no longer pair with Xcode after I manually removed it from Device Hub. Environment Xcode 27 Beta 3 macOS Tahoe Beta iOS 27 Beta 3 watchOS 27 Beta 3 Symptoms iPhone appears in Device Hub and is Connected. Apple Watch does not appear in Device Hub. On Apple Watch: Settings → Privacy & Security → Developer Mode → Devices My Mac appears in the list. Tapping the Mac: Enter watch passcode. Tap Pair. Expected: Xcode should display a 6-digit PIN. Actual: Xcode remains on “Waiting to Pair” forever. No PIN is shown. Additional observations Running: xcrun devicectl list devices Only shows the iPhone. The Apple Watch never appears. Also, while reproducing the issue, coredeviced receives no pairing request at all. So it doesn’t look like the pairing challenge is failing—the pairing request never reaches the Mac. Things I tried (none worked) Restarted Mac, iPhone and Apple Watch. Removed pairing from Device Hub. Removed the Mac from Apple Watch Developer Mode → Devices. Turned Developer Mode off/on. Erased and re-paired the Apple Watch with the iPhone. Re-enabled wireless development. None of these solved the issue. Solution What finally worked was surprisingly simple: Completely power off the iPhone. Keep the Apple Watch and Mac powered on. Pair the Apple Watch from Device Hub again. Immediately after the iPhone was powered off, Xcode displayed the pairing PIN and the pairing completed successfully. After the watch was paired, I powered the iPhone back on and everything continued to work normally. My guess It seems the iPhone (the companion device) may be holding a stale developer pairing state after the watch is manually unpaired from Device Hub. With the iPhone powered off, the watch appears to communicate directly with the Mac, allowing the pairing challenge to be created successfully. Hopefully this helps anyone else who gets stuck at “Waiting to Pair” with no PIN appearing.
1
5
902
4d
SwiftUICore.tbd is missing previous entries on ios 17 and below
Toolchain Xcode 26.2 (17C52), iOS 26.2 SDK Also reproduced in the iOS 27.2 SDK (Xcode 27.2): the same six symbols are missing redirects there too Swift 6.2.3 (swiftlang-6.2.3.3.21) macOS 26.6.2 Deployment target: iOS 15.0 Crash confirmed on: iOS 17.5 simulator (plus App Store crash reports from iOS ≤ 17 devices) Missing $ld$previous entries in SwiftUICore.tbd static AlignmentID.combineExplicit(childValue::into:) ZIndexTraitKey: type metadata accessor, nominal type descriptor, protocol witness table protocol witness table for _FixedSizeLayout protocol witness table for Never (as View) Third-party packages that referenced them (context only) PackageVersionModulepurchases-ios-spm (RevenueCat)5.88.0RevenueCatUIOSInAppBrowserLib-iOS2.3.2OSInAppBrowserLibion-ios-camera2.0.0IONCameraLibSymptoms Without a workaround: dyld Library not loaded: /System/Library/Frameworks/SwiftUICore.framework/SwiftUICore at launch on iOS ≤ 17. With -weak_framework SwiftUICore: the app starts, but EXC_BREAKPOINT in swift_getAssociatedTypeWitness when a SwiftUI view that uses these symbols is presented.
0
0
30
5d
Xcode shows my role as "Admin" on a new team and blocks creating a Developer ID Application certificate
Hi everyone, I enrolled in the Apple Developer Program a few days ago and received the enrollment-complete email. I enrolled myself, I am the only member, and I should be the Account Holder. What I see Xcode > Settings > Accounts shows one Apple ID with one team. The Role is "Admin", not Account Holder or Agent. The team page in Xcode shows a green check for Certificates, Identifiers & Profiles. However, on developer.apple.com, I can open Certificates, Identifiers & Profiles, and the site lists me as both Account Holder and Admin. In Xcode, Manage Certificates > + > Developer ID Application fails. The message says only the Account Holder can create it. What I already tried Signed out of my Apple ID in Xcode, quit Xcode, and signed back in. Confirmed that I have only one Apple ID and only one team. Environment Xcode: 27.2 macOS: 27.2.1 Golden Gate Questions Is "Admin" simply how Xcode labels the Account Holder on a single-member team, or does it mean my role is really Admin? What does Xcode check before it allows a Developer ID Application certificate? Could it be missing cloud-managed Developer ID certificate access on a new team? Is there anything I can fix myself, or does Apple need to change something on the account? Note: I don't want to do any manual steps after spending a good amount of money for enrollment. I have also opened a Developer Support request. Screenshots are attached. Thank you!
5
0
246
5d
Xcode 27 No iOS 27 Simulators
Tried three times now and absolutely cannot get Xcode 27 to install iOS 27 Simulators. I have done a complete uninstall of Xcode (including things in ~/Library). And even purged /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime/ When Xcode 27 (27A266a; release version) is installed and run the first time, I'm greeted with the SDK screen. I select iOS and it downloads that runtime. I can see it in Xcode's Components panel in Settings. I only see Any iOS Device as a target device in Xcode. If I launch Device Hub, it's empty and I cannot add any devices since the Add dialog shows No Runtimes Available. Selecting "Add Platforms in Xcode" takes me back to Xcode, but I only ever see iOS 26.5 or older in the list. I've even tried the various xcrun simctl commands, but to no avail. Why is it so difficult to have a clean install of Xcode 27, have it install the iOS 27 SDK and then be able to build and run existing projects? I'm on the release version of macOS 27.0.1 though the problems persisted earlier today on macOS 27.0 as well.
19
3
3k
5d
Xcode 26.6 cannot download iOS 26.5 Simulator runtime — stuck on “Preparing…”
I am unable to download and install the iOS Simulator runtime in Xcode 26.6. Environment: MacBook Air with Apple silicon macOS Tahoe 26.6 Xcode 26.6 Build version 17F113 xcode-select -p: /Applications/Xcode.app/Contents/Developer xcodebuild -showsdks correctly reports: Simulator - iOS 26.5 -sdk iphonesimulator26.5 However: xcrun simctl list runtimes returns: == Runtimes == No Simulator runtime is installed. In: Xcode > Settings > Components I attempted to install: iOS 26.5.1 + iOS 26.5 Simulator but it remains at: Preparing... for a very long time without actually downloading the runtime. I also tried: xcodebuild -downloadPlatform iOS This eventually failed with: Download was cancelled exit code 70 I also tried: xcodebuild -downloadPlatform iOS -exportPath ~/Downloads/XcodePlatforms The destination directory remains at 0 bytes. Checks already completed: More than 860 GiB free disk space Mac restarted Xcode quit and reopened xcode-select points to the correct Xcode installation /etc/hosts contains no Apple blocking entries gdmf.apple.com resolves correctly HTTPS connectivity to gdmf.apple.com works Apple MobileAsset / software update services are running iOS Simulator SDK itself is installed correctly The project can compile for iphonesimulator26.5, but Simulator execution and tests are blocked because no runtime can be installed. Questions: Is this a known issue with Xcode 26.6? Is there an official alternative way to download the iOS Simulator runtime? Can I install an earlier supported iOS Simulator runtime instead? Is there a MobileAsset or Xcode cache reset procedure recommended by Apple? Thank you.
5
4
1.5k
6d
No MAS receipt after exit(173)
App receipt generation is broken (again). I'm getting the message my app is "damaged" on macOS Monterey 12.3.1 with Xcode 13.3.1 when no receipt is delivered after the app quits with exit(173) and I'm prompted for Mac App Store credentials. I tried App Store log out / log in (sandbox and regular account), cleaning derived data as well as reboot to no avail. Being aware of several old postings (and new comments), I decided to start a new thread to increase visibility ... and also filed a bug report FB10014055. Please consider a duplicate report if you're affected to raise Apple's awareness (all system status are reported as "green")...
Replies
12
Boosts
1
Views
4.4k
Activity
1d
Apple Watch Series 6 not detected by Xcode 27.2 — Developer Mode missing
I’m trying to install my own app on my Apple Watch using Xcode, but my Mac cannot detect the watch. Devices and software: Apple Watch Series 6 — watchOS 26.6.1 iPhone 17 Pro — iOS 27.3 Xcode 27.2 — build 27B52 The iPhone appears connected in Device Hub, and I can install and run the iPhone app. The Apple Watch is paired with the iPhone, but it does not appear in Device Hub, devicectl, or xcdevice. The Developer Mode option is also missing from the watch’s Settings. Installing the companion app through the Watch app on the iPhone fails with: “Unable to install because its integrity could not be verified.” The current provisioning profile includes only the iPhone because we haven’t been able to detect and register the watch. We have already restarted all three devices, reconnected the iPhone by cable with both devices unlocked, reset Location & Privacy on the iPhone, renewed its pairing with the Mac, and tried a different Wi-Fi network. The issue persists. How can I get Xcode to recognize this watch and make Developer Mode available with this combination of software versions? If necessary, please direct me to Apple Developer Support for Xcode/watchOS.
Replies
0
Boosts
0
Views
67
Activity
1d
Paired Apple Watch never appears in Xcode 27 / devicectl, so the Developer Mode toggle never shows on the watch
My paired Apple Watch never shows up in Xcode, so the Developer Mode toggle never appears on the watch (Settings > Privacy & Security). The paired iPhone works perfectly, and I build and install to it every day. Setup Mac: macOS Tahoe 26.6, Xcode 27.0 (watchOS 27 SDK and platform installed) iPhone 15 Pro Max, Developer Mode ON, shows as connected in xcrun devicectl list devices over USB Apple Watch on watchOS 26.x, passcode set, unlocked, on wrist Free personal team (also tried a second free Apple ID; both are signed in to Xcode) Symptom xcrun devicectl list devices lists the iPhone and an iPad, never the watch Devices and Simulators shows no watch under the iPhone No ~/Library/Developer/Xcode/watchOS DeviceSupport folder has ever been created Unified log on the Mac shows no CoreDevice / remotepairing activity for the watch at all. It looks like the Mac never hears from it. Network No router. The Mac gets internet from an iPad over USB and re-shares it over Wi-Fi (macOS Internet Sharing). iPhone and watch are joined to that network. I also tried the Mac and phone on the iPhone's Personal Hotspot. VPN is off and the firewall is off. Already tried, no change Unpaired the watch and paired again (restored from backup) iPhone: Settings > Developer > Clear Trusted Computers, re-trusted, xcrun devicectl manage pair Accepted the "Trust this computer" prompt on the watch after a restart iPhone Developer Mode off, restart, on, restart Signed out of and back in to Xcode accounts; accepted the latest agreements Restarted the Mac, iPhone and watch; waited 5+ minutes with the Devices window open each time Bluetooth and Wi-Fi on everywhere; watch and Mac on the same Wi-Fi Is there a way to force Xcode to discover the watch through the iPhone, or a log predicate that shows why the watch is never offered? Any pointers appreciated.
Replies
1
Boosts
1
Views
181
Activity
2d
Supported way to supervise an iOS Simulator XCTest host before application code executes?
We are investigating a supported architecture for running existing app-hosted XCTest unit and integration tests in iOS Simulator under external process supervision. Our environment is Xcode 27.2, targeting ARM64 iOS Simulator. The tests use SwiftData, CoreData and SQLite with synthetic, test-owned databases. We need to run selected tests serially in isolated processes, monitor their resource usage, and verify that all test-related processes have terminated before cleaning up test databases. Our primary question: Is there a documented, supported way to establish external process supervision before the actual iOS Simulator XCTest host executes any application or test-bundle code? In particular, we are looking for guidance on the following: Pre-execution control: Can the actual XCTest host be launched suspended and released only after an external supervisor has established monitoring? We need coverage of application and test-bundle initialization, not merely a callback before the first test method. Process identity: Is there a supported mechanism to identify and monitor the actual host process using an OS-verifiable identity that remains reliable despite PID reuse? Process termination: Is there a supported way to identify and terminate only the processes belonging to a specific test run, including detached or reparented children, without affecting unrelated Simulator processes? XCTest integration: Can this be achieved while preserving normal XCTest discovery, setup/teardown, asynchronous tests and genuine .xcresult reporting? We have investigated public XCTest APIs, standard xcodebuild workflows and macOS process-control mechanisms. We also successfully compiled and linked a separate ARM64 Simulator executable against our unchanged application debug dylib and XCTest dependencies. However, this was strictly a compile/link experiment: the executable was never launched, and we have not established that a custom XCTest host is supported. We are not seeking private APIs or undocumented CoreSimulator behavior. If this level of supervision is not supported, what is Apple’s recommended documented alternative? In particular, does the standard Xcode-managed XCTest workflow provide any documented guarantees regarding host process identity, lifecycle containment and complete termination of test-related processes? References to official documentation or supported examples would be greatly appreciated.
Replies
0
Boosts
0
Views
31
Activity
2d
Apple Watch SE 3 fails to pair with Xcode Device Hub: protocol_shoes does not support endpoint type 3
Hi all, I cannot pair a physical Apple Watch SE 3 with Xcode, and I would like to know if anyone else sees this or has found a workaround. Environment Apple Watch SE 3 (GPS, Watch7,13), watchOS 27.2.1 (24S132) Companion iPhone 15 Plus, iOS 27.2 (24B119) Tested on two different Macs: a MacBook Air (macOS 27.2.1, Xcode 27.2) and an iMac Developer Mode is enabled on both the iPhone and the Watch The iPhone is trusted, connects to the Mac, and appears in Device Hub Problem The Watch shows “Pair with <Mac name>” in its Developer Mode settings. When I tap it, pairing does not complete and the Watch does not appear in Device Hub. Watch log (remotepairingdeviced). The sysdiagnose shows the pairing request failing within about 20 ms. Log prefixes and the endpoint address are omitted: Received request to wirelessly pair from peer Path is satisfied; interface: ipsec2; uses wifi, proxy Endpoint type is not an address or host, cannot synthesize URL protocol_shoes does not support endpoint type 3 Failed to attach application protocol shoes Received pairing outcome failure (errorCode: -1, "An unknown error occurred.")What I tried Restarted the Watch, iPhone and Mac Tested on two Macs and on different Wi-Fi networks Turning Bluetooth off on the iPhone: the Watch then no longer discovers the Mac at all The same failure appears in the Watch sysdiagnoses for all attempts. I filed a report in Feedback Assistant: FB25623613 Has anyone seen this error or found a workaround? Thanks
Replies
0
Boosts
0
Views
57
Activity
3d
Default widget extension not configurable on Mac
I've created a basic Multiplatform Project in Xcode, by going to File > New > Project. I've also included the default widget extension target. When I run the widget on Mac, and I control-click and choose "Edit Widget" the widget just kinda turns gray and floats over other windows, but does not let me configure anything. We leave the option to use configure with app intents turned on when adding the widget extension target. When I run the same project on an iPhone simulator, I can configure the widget without any issue. If someone else has a few minutes, can they see if this repeats for them? We are running this test because we are seeing the same experience in a real widget we are trying to develop but we can't get it to go into configuration mode on Mac.
Replies
5
Boosts
1
Views
790
Activity
3d
Xcode 27.3 Beta GitHub Copilot not working
I have not been able to get the new GitHub Copilot Agent component to work in Beta 1 or Beta 2. I had a custom ACP agent configured to use copilot --acp.I removed that configuration and configured the new GitHub Copilot component. It says "Signed in to GitHub Copilot" and does show the drop-down of all the Models. Any attempt to start a new conversation says "Configure an agent in Xcode settings to start a conversation" The "New Conversation" and "New Group" buttons are not disabled but they do nothing in the Coding Assistant sidebar I can't see any useful messages in the Console.app for "copilot" or Xcode that point to an obvious problem. I removed ~/Library/Developer/Xcode/CodingAssistant/ I removed ~/Library/Caches/com.apple.dt.Xcode/ I can't find any relevant settings that might be a problem with defaults read com.apple.dt.Xcode Is there any way to diagnose why it does not think an Agent is actually configured. Are there other settings that can be cleared? Or is this a known issue? Thank you for starting down the path to add official GitHub Copilot support.
Replies
1
Boosts
1
Views
106
Activity
3d
Documentation in Xcode not downloading
Switched to Xcode 27.2 and it started downloading documentation. After download is finished documentation window is empty, prompting to look up documenation online or download it. Triggering any download does not help – no documentation is available. (Sidenote: Reinstalled Xcode 27.2 and documentation was there. But Xcode started a download automatically and without confirmation and afterwards it is gone)
Replies
2
Boosts
2
Views
107
Activity
3d
Xcode 27 for Intel Macs
According to the release notes (https://developer.apple.com/documentation/xcode-release-notes/xcode-27-release-notes), "Xcode 27 beta requires a Mac running macOS Tahoe 26.4 or later." I've tried it on my Intel MacBook running macOS Tahoe 26.5, and it wouldn't run. Looking into it, the binary for the application is an arm64 executable only (which explains why it wouldn't run). Is that a mistake in the release notes, or a mistake with the Xcode 27 beta?
Replies
7
Boosts
2
Views
7.2k
Activity
3d
Can devicectl list devices request a developer disk image mount for a paired USB iPhone?
I’m testing discovery of an already-paired iPhone over USB with Xcode 26.6 (17F113), CoreDevice 518.33, and iOS 27.0.1 (24A446). I need to identify the same device repeatedly, including after a restart, and control when a developer disk image (DDI) mount can be requested. The command under review is: devicectl list devices --timeout 2 --json-output <OUTPUT_PATH>Can this invocation initiate or schedule a DDI mount, either directly or through an Apple background service? In particular, if the command times out before writing JSON, could a mount request already have been issued and continue after the process exits? Is there a documented guarantee for this command or a supported option that explicitly prevents mounting? If enumeration provides no such guarantee, is there a supported readonly command or API that reports the device identity, authenticated pairing state, wired transport, and current tunnel peer without requesting a mount? I can check USB ancestry, interface index, and routes on the Mac. Which documented fields let me tie those observations to the same authenticated CoreDevice peer after restart?
Replies
0
Boosts
0
Views
32
Activity
3d
Change bar not rendering in source editor gutter — Xcode 27.0 (27A266a)
Summary: The source control change bar no longer appears in the source editor gutter, even though all relevant settings are enabled and the working copy is correctly recognized. This is a regression from earlier Xcode versions. Steps to Reproduce: Create a fresh test project that is fully independent of any existing codebase: mkdir /tmp/changebar-test && cd /tmp/changebar-test swift package init --type executable --name ChangeBarTest git init && git add -A && git commit -m "init" Open Package.swift in Xcode 27.0. Confirm the branch name (e.g. main) is shown in the bottom status bar, which indicates the working copy is correctly established. Confirm Settings > Source Control > "Show source control changes" is checked. Open Sources/ChangeBarTest/ChangeBarTest.swift. Add a new line, e.g. print("test"), and save with Cmd-S. Expected Results: A change bar appears in the gutter next to the modified line (thin blue bar for uncommitted local changes), as it did in previous Xcode versions. Actual Results: No change bar appears anywhere in the gutter. Hovering over the gutter region produces no highlight and no popup. Additional Evidence: IDESourceControlShowChangeBar is set to 1 (verified via defaults read com.apple.dt.Xcode). IDEEditorDefaultCodeReviewPreference is 0. The Source Control navigator correctly lists the repository, the current branch, and three uncommitted commits, so SCM integration itself is functional. Reproduces with a brand-new Swift Package (no CMake, no .gitignore, no third-party dependencies), so this is not project-specific. Switching between built-in appearance presets (Default Dark, Dusk) does not help. Toggling "Show source control changes" off and on, restarting Xcode, and clearing UserInterfaceState.xcuserstate do not help. The Xcode 27 Release Notes contain no mention of change bar or gutter behavior changes, so this appears to be an undocumented regression. Impact: Developers lose the primary at-a-glance indication of which lines they have modified before committing. Reviewing local changes now requires opening the comparison editor or running git diff externally, which significantly slows down the edit-review-commit loop.
Replies
0
Boosts
0
Views
15
Activity
3d
Xcode Needs an Integrated Terminal
Hello Apple Developer Team! I'd like to suggest adding a native integrated terminal to Xcode. Xcode is a great development environment, but the lack of a built-in terminal creates unnecessary context switching between the IDE and Terminal or iTerm2. This is more than just a minor inconvenience. At my workplace, several developers prefer alternative editors for iOS development simply because they provide an integrated command line. A native terminal panel in Xcode, similar to those available in other modern IDEs, would make everyday development much more convenient. Ideally, it would support interactive shells (Zsh or Bash), persistent sessions, multiple tabs, and easy access through a keyboard shortcut. I recently experimented with creating an improvised terminal in Xcode using Bash and Custom Behaviors. It works for simple commands, but obviously cannot replace a proper integrated terminal. I believe this would be a valuable addition to Xcode and would help keep developers within Apple's own development environment. Please consider adding this feature. We'd really appreciate it! Final thoughts I believe an integrated terminal would be a valuable addition to Xcode and would help developers avoid unnecessary context switching. Other development environments have demonstrated how convenient this functionality can be. What do you think? Would you like to see a native terminal in Xcode as well? I'd be interested to hear the community's thoughts and whether this feature is already being considered. Thank you!
Replies
1
Boosts
0
Views
92
Activity
4d
Simulator and Canvas 27.3 "identityservicesd quit unexpectedly"
Anyone working with the 27.3 devices beta in Xcode 27.3 on macOS 27.3? Canvas and device hub/simulator are throwing this error while open, several on first load, then periodically (not sure of the periodicity). Any help is appreciated. Not sure if it's impacting at the code or app, but it is interfering with active work (it assumes modal position while working). Can reproduce from Device Hub only (all other apps, including XCode closed), screencast here - demos 27.2 for the time it is started no errors, 27.3 as soon as it is started "identityservicesd quit unexpectedly" errors. Looks like stages in the rendering also - noticed dock not displayed, error, then dock displayed, next - home icons not displayed, error, then home icons displayed, etc. https://app.screencast.com/iK0BaVIVpjt0O
Replies
6
Boosts
4
Views
523
Activity
4d
Determining SpriteKit Interaction using SKRenderer
Hey, Wondering how other developers have been able to determine the location of a mouse event or tap (ie NSEvent) when using MetalView (MKTView) with SKRenderer with a SpriteKit scene (.sks scene) for a 2D game. In the original scenario with SpriteKit, we could use SKViews convertPoint(fromView:) to determine where in the scene the user tapped. But with the SKRenderer we can no longer use convertPoint(fromView:) as its reliant on SKView being used and thus its making it difficult to determine. What I do have is: locationInWindow: NSPoint for showing me where in the MKTView which was touched Any ideas, would be great Many thanks
Replies
1
Boosts
0
Views
1.2k
Activity
4d
Apple Watch won’t show PIN when pairing in Device Hub (Solved)
Xcode 27 Beta 3 / watchOS 27 Beta 3 - Apple Watch won’t show PIN when pairing in Device Hub (Solved) I ran into an issue where my Apple Watch could no longer pair with Xcode after I manually removed it from Device Hub. Environment Xcode 27 Beta 3 macOS Tahoe Beta iOS 27 Beta 3 watchOS 27 Beta 3 Symptoms iPhone appears in Device Hub and is Connected. Apple Watch does not appear in Device Hub. On Apple Watch: Settings → Privacy & Security → Developer Mode → Devices My Mac appears in the list. Tapping the Mac: Enter watch passcode. Tap Pair. Expected: Xcode should display a 6-digit PIN. Actual: Xcode remains on “Waiting to Pair” forever. No PIN is shown. Additional observations Running: xcrun devicectl list devices Only shows the iPhone. The Apple Watch never appears. Also, while reproducing the issue, coredeviced receives no pairing request at all. So it doesn’t look like the pairing challenge is failing—the pairing request never reaches the Mac. Things I tried (none worked) Restarted Mac, iPhone and Apple Watch. Removed pairing from Device Hub. Removed the Mac from Apple Watch Developer Mode → Devices. Turned Developer Mode off/on. Erased and re-paired the Apple Watch with the iPhone. Re-enabled wireless development. None of these solved the issue. Solution What finally worked was surprisingly simple: Completely power off the iPhone. Keep the Apple Watch and Mac powered on. Pair the Apple Watch from Device Hub again. Immediately after the iPhone was powered off, Xcode displayed the pairing PIN and the pairing completed successfully. After the watch was paired, I powered the iPhone back on and everything continued to work normally. My guess It seems the iPhone (the companion device) may be holding a stale developer pairing state after the watch is manually unpaired from Device Hub. With the iPhone powered off, the watch appears to communicate directly with the Mac, allowing the pairing challenge to be created successfully. Hopefully this helps anyone else who gets stuck at “Waiting to Pair” with no PIN appearing.
Replies
1
Boosts
5
Views
902
Activity
4d
SwiftUICore.tbd is missing previous entries on ios 17 and below
Toolchain Xcode 26.2 (17C52), iOS 26.2 SDK Also reproduced in the iOS 27.2 SDK (Xcode 27.2): the same six symbols are missing redirects there too Swift 6.2.3 (swiftlang-6.2.3.3.21) macOS 26.6.2 Deployment target: iOS 15.0 Crash confirmed on: iOS 17.5 simulator (plus App Store crash reports from iOS ≤ 17 devices) Missing $ld$previous entries in SwiftUICore.tbd static AlignmentID.combineExplicit(childValue::into:) ZIndexTraitKey: type metadata accessor, nominal type descriptor, protocol witness table protocol witness table for _FixedSizeLayout protocol witness table for Never (as View) Third-party packages that referenced them (context only) PackageVersionModulepurchases-ios-spm (RevenueCat)5.88.0RevenueCatUIOSInAppBrowserLib-iOS2.3.2OSInAppBrowserLibion-ios-camera2.0.0IONCameraLibSymptoms Without a workaround: dyld Library not loaded: /System/Library/Frameworks/SwiftUICore.framework/SwiftUICore at launch on iOS ≤ 17. With -weak_framework SwiftUICore: the app starts, but EXC_BREAKPOINT in swift_getAssociatedTypeWitness when a SwiftUI view that uses these symbols is presented.
Replies
0
Boosts
0
Views
30
Activity
5d
Xcode shows my role as "Admin" on a new team and blocks creating a Developer ID Application certificate
Hi everyone, I enrolled in the Apple Developer Program a few days ago and received the enrollment-complete email. I enrolled myself, I am the only member, and I should be the Account Holder. What I see Xcode > Settings > Accounts shows one Apple ID with one team. The Role is "Admin", not Account Holder or Agent. The team page in Xcode shows a green check for Certificates, Identifiers & Profiles. However, on developer.apple.com, I can open Certificates, Identifiers & Profiles, and the site lists me as both Account Holder and Admin. In Xcode, Manage Certificates > + > Developer ID Application fails. The message says only the Account Holder can create it. What I already tried Signed out of my Apple ID in Xcode, quit Xcode, and signed back in. Confirmed that I have only one Apple ID and only one team. Environment Xcode: 27.2 macOS: 27.2.1 Golden Gate Questions Is "Admin" simply how Xcode labels the Account Holder on a single-member team, or does it mean my role is really Admin? What does Xcode check before it allows a Developer ID Application certificate? Could it be missing cloud-managed Developer ID certificate access on a new team? Is there anything I can fix myself, or does Apple need to change something on the account? Note: I don't want to do any manual steps after spending a good amount of money for enrollment. I have also opened a Developer Support request. Screenshots are attached. Thank you!
Replies
5
Boosts
0
Views
246
Activity
5d
Xcode 27 No iOS 27 Simulators
Tried three times now and absolutely cannot get Xcode 27 to install iOS 27 Simulators. I have done a complete uninstall of Xcode (including things in ~/Library). And even purged /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime/ When Xcode 27 (27A266a; release version) is installed and run the first time, I'm greeted with the SDK screen. I select iOS and it downloads that runtime. I can see it in Xcode's Components panel in Settings. I only see Any iOS Device as a target device in Xcode. If I launch Device Hub, it's empty and I cannot add any devices since the Add dialog shows No Runtimes Available. Selecting "Add Platforms in Xcode" takes me back to Xcode, but I only ever see iOS 26.5 or older in the list. I've even tried the various xcrun simctl commands, but to no avail. Why is it so difficult to have a clean install of Xcode 27, have it install the iOS 27 SDK and then be able to build and run existing projects? I'm on the release version of macOS 27.0.1 though the problems persisted earlier today on macOS 27.0 as well.
Replies
19
Boosts
3
Views
3k
Activity
5d
Xcode 26.6 cannot download iOS 26.5 Simulator runtime — stuck on “Preparing…”
I am unable to download and install the iOS Simulator runtime in Xcode 26.6. Environment: MacBook Air with Apple silicon macOS Tahoe 26.6 Xcode 26.6 Build version 17F113 xcode-select -p: /Applications/Xcode.app/Contents/Developer xcodebuild -showsdks correctly reports: Simulator - iOS 26.5 -sdk iphonesimulator26.5 However: xcrun simctl list runtimes returns: == Runtimes == No Simulator runtime is installed. In: Xcode > Settings > Components I attempted to install: iOS 26.5.1 + iOS 26.5 Simulator but it remains at: Preparing... for a very long time without actually downloading the runtime. I also tried: xcodebuild -downloadPlatform iOS This eventually failed with: Download was cancelled exit code 70 I also tried: xcodebuild -downloadPlatform iOS -exportPath ~/Downloads/XcodePlatforms The destination directory remains at 0 bytes. Checks already completed: More than 860 GiB free disk space Mac restarted Xcode quit and reopened xcode-select points to the correct Xcode installation /etc/hosts contains no Apple blocking entries gdmf.apple.com resolves correctly HTTPS connectivity to gdmf.apple.com works Apple MobileAsset / software update services are running iOS Simulator SDK itself is installed correctly The project can compile for iphonesimulator26.5, but Simulator execution and tests are blocked because no runtime can be installed. Questions: Is this a known issue with Xcode 26.6? Is there an official alternative way to download the iOS Simulator runtime? Can I install an earlier supported iOS Simulator runtime instead? Is there a MobileAsset or Xcode cache reset procedure recommended by Apple? Thank you.
Replies
5
Boosts
4
Views
1.5k
Activity
6d