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

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

Xcode 27.2 – iPhone Simulator Black Screen, Data Migration Failed, and SwiftUI Preview Timeout on M1 Mac
Hi everyone, I've been experiencing persistent issues with the iPhone Simulator and SwiftUI Previews for several days. I've tried numerous troubleshooting steps, but nothing has permanently resolved the problem. My environment MacBook Pro – Apple M1 8 GB RAM macOS 27.2.1 Xcode 27.2 (27B52) iOS Simulator runtimes tested: 26.5, 27.0, and 27.2 Problems Xcode frequently gets stuck on "Preparing iPhone Simulator." DeviceHub displays a black screen. SwiftUI Previews take an unusually long time to load or fail completely. Simulators sometimes shut down unexpectedly. Xcode builds my application successfully but sometimes gets stuck launching it on the simulator. Error messages DeviceKitError 4002: Live device view took longer than expected to connect. Data Migration Failed. Failed to launch app in reasonable time. Mach error -308 – (ipc/mig) server died. Testing results I tested the simulator independently while Xcode was completely closed. The iOS 27.2 iPhone 18 Pro Max simulator successfully completed its startup after 4 minutes and 51 seconds. I could access the Home Screen and open Settings. However, after closing and reopening DeviceHub, the simulator displayed a black screen. I captured a screenshot directly using the simctl command, and the screenshot was also completely black. The simulator subsequently entered the Shutdown state unexpectedly. I also tested the iOS 27.0 simulator, which returned "Data Migration Failed" after 9 minutes and 13 seconds. Additionally, I created a completely new SwiftUI project to determine whether my existing project was causing the issue. The new project also experienced SwiftUI Preview launch timeouts. My existing application builds successfully and runs on my physical iPhone 13 Pro Max. Troubleshooting already performed Reinstalled Xcode from the Mac App Store. Verified that macOS and Xcode are up to date. Tested multiple iPhone simulator models and iOS runtimes. Created new simulator devices. Restarted CoreSimulator services. Cleaned the Xcode build folder. Tested Legacy Previews Execution. Tested a newly created SwiftUI project. Booted simulators independently using Terminal. Unfortunately, none of these steps permanently resolved the issue.I've always experienced slow loading times with the iPhone Simulator and SwiftUI Previews on my Mac. However, the problem has recently become significantly worse, with black screens, unexpected simulator shutdowns, data migration failures, and preview timeouts. I suspect the issue may have worsened after updating macOS, but I cannot confirm whether the update is responsible. I have also submitted a report through Apple Feedback Assistant with simulator diagnostics. Questions Has anyone experienced similar issues with Xcode 27.2, particularly on an Apple Silicon Mac with 8 GB of RAM? Could this be related to CoreSimulator, DeviceHub, runtime data migration, or resource limitations? Is there a known workaround or solution that does not require reinstalling macOS? I have spent several days troubleshooting this issue, and it is significantly affecting my iOS development workflow. Any suggestions or assistance would be greatly appreciated. Thank you!
0
0
4
7m
Device Hub shared my clipboard with a coworker before I ever opted in
My coworker and I share an iPhone for testing from two separate Macs. I started seeing their code in my clipboard history, and they started seeing mine. Apparently the C in ⌘C stands for coworker. I never manually enabled Use Shared Clipboard. It was already checked when I opened Device Hub to investigate. I observed this on Xcode 27.2 and macOS 27.2.1. The system logs showed DeviceHub writing the incoming text directly to the Mac’s clipboard, where my clipboard manager saved it without me pressing Paste. Automatic clipboard sharing is an extremely unsafe default for shared test devices. Pairing an iPhone for debugging shouldn’t silently give another developer’s Mac a copy of whatever I put on my clipboard. The Swift snippets were funny. A password or API token copied as plain text could take the same route and stay in someone else’s clipboard history long after the debugging session ends. Please default Use Shared Clipboard to off, require explicit opt-in for each connection, and prevent a shared device from forwarding clipboard contents between Macs.
0
2
70
10h
Device Hub in Xcode 27 does not support game controllers
I wanted to test my App for Apple TV and iPad/iPhone with a DualShock 2 game controller. This worked perfect with the former Xcode version. Now nothing happens, if I use the game controller. In blue tooth is is connected and if I use my game without Device Hub it is also working. Additionally it is nearly impossible to debug my game on Apple Watch with the Digital Crown, it takes minutes to start the simulators for iPhone, my Mac is getting extremely hot, ... Is there a possibility to use the old simulator? Device Hub is not really usable for developers.
2
1
181
1d
Swift Testing UI tests (Xcode 27.3 beta 2): launch() in the second test leaves the app "notRunning" (FB25692723)
Xcode 27.3 beta 2 lets us write UI tests with Swift Testing and XCUIAutomation, so I tried moving our UI tests over. In a UI testing bundle, when more than one Swift Testing test launches the app, XCUIApplication().launch() in the second test returns after about 0.5 seconds with state == .notRunning. Every element query in that test then fails. The app process is actually spawned and keeps running, but XCUIAutomation never attaches to it: state stays .notRunning even after wait(for: .runningForeground, timeout: 5). Minimal repro, in a new project with a SwiftUI app that shows a "Ready" text: import Testing import XCUIAutomation @MainActor struct SwiftTestingLaunchTests { @Test func `Launch 1`() throws { try launchAndCheck() } @Test func `Launch 2`() throws { try launchAndCheck() } @Test func `Launch 3`() throws { try launchAndCheck() } @Test func `Launch 4`() throws { try launchAndCheck() } private func launchAndCheck() throws { let app = XCUIApplication() app.launch() try #require(app.state == .runningForeground, "state right after launch(): \(app.state.rawValue)") try #require(app.staticTexts["Ready"].waitForExistence(timeout: 10)) } }Result (same in 4 of 4 runs, parallel testing off): ✔ Test "Launch 1" passed after 4.784 seconds. ✘ Test "Launch 2" recorded an issue at SwiftTestingLaunchTests.swift:15:13: Expectation failed: app.state == .runningForeground ↳ state right after launch(): 1 ✔ Test "Launch 3" passed after 5.516 seconds. ✔ Test "Launch 4" passed after 5.594 seconds.The same 4 tests written with XCTest (XCTestCase, XCUIApplication().launch(), XCTAssertEqual(app.state, .runningForeground)) pass every time on the same simulator. In the activity log, only the failing launch goes through "Wait for accessibility to load", right after terminating the previous instance: Launch 2 (fails): t = 6.99s Launch com.example.LaunchRepro t = 6.99s Terminate com.example.LaunchRepro:17666 t = 7.46s Wait for accessibility to load t = 7.47s Setting up automation session Launch 3 (passes): t = 8.59s Launch com.example.LaunchRepro t = 8.59s Terminate com.example.LaunchRepro:17672 t = 9.84s Setting up automation sessionWhat I tried, none of which helped: calling terminate() before launch() calling launch() again when state is not .runningForeground (this kills the instance that was starting) calling activate() when state is not .runningForeground In our real app (11 UI tests), the same 3 tests failed this way in every run, and each one passed when run alone. For now we keep the XCUIAutomation tests in XCTest and use Swift Testing only for tests that don't drive the UI. Environment: Xcode 27.3 beta 2 (27C5035i), iOS 27.3 simulator (24C5049d), iPhone 18 Pro simulator. Filed as FB25692723 with the minimal project attached. Has anyone else seen this, or found a workaround?
1
0
58
1d
Apple Watch (watchOS 27.2.1) stuck on connecting when pairing with MacBook Air in Xcode 27.2
Hi, I'm trying to pair my Apple Watch (watchOS 27.2.1) with Xcode 27.2 on my MacBook Air so I can install my personal watchOS app (using a Personal Team / free Apple ID). Current situation: iPhone 15 (iOS 27.2.1) is connected via USB and recognized properly in Xcode (xcrun devicectl list devices shows the iPhone as connected). However, the paired Apple Watch does not appear in Xcode Devices or devicectl. On Apple Watch, under Settings > Privacy & Security > Developer Mode, my MacBook Air appears, and Xcode shows "Waiting to pair." When I tap MacBook Air on the Watch, it gets stuck spinning on "Connecting..." and the 6-digit pairing code never appears. Because the Watch UDID is not in the provisioning profile, installing the embedded Watch app from the iPhone Watch app fails with "Could not verify integrity." What I have already tried: Installed the watchOS 27.2 platform component in Xcode Settings. Rebooted Apple Watch, iPhone, and MacBook Air. Tried both the same home Wi-Fi and direct Mac Internet Sharing (iPhone USB -> Wi-Fi) to bypass the router. Confirmed macOS Firewall is disabled. Is there any known issue or workaround to complete wireless pairing between watchOS 27.2.1 and Xcode 27.2?
0
0
27
1d
XCode 16.2 is randomly removing my account
I am signed into Xcode for automatic signing. Which works for a random amount of builds and then the Account/AppleID dissappears from Xcode. This is a vital part of our CI/CD processes and disrupts the workflow alot. MacOS version: Apple M2 15.3 (24D60) Sequoia related: https://developer.apple.com/forums/thread/724434 https://stackoverflow.com/questions/50252887/account-automatically-removed-from-xcode
2
2
616
1d
Xcode 16 on macOS Sequoia Keeps Removing Apple Accounts
I've recently set up new M4 Mac Minis with macOS Sequoia and Xcode 16. After logging into my Apple account in Xcode, everything works fine initially. However, the next day—or sometimes just a few hours later—my builds fail, and when I check the Accounts tab in Xcode's Settings, my account is missing. I have to re-add and re-authenticate my account, only for the same issue to recur later. To investigate further, I upgraded an older Mac Mini from macOS Sonoma and Xcode 15.1.0 to macOS Sequoia and Xcode 16.2. Unfortunately, this machine now exhibits the same behavior, suggesting the issue is related to either macOS Sequoia or Xcode 16. Has there been a change in Xcode or macOS that causes this automatic removal of accounts? Is there a solution or workaround to prevent Xcode from removing my Apple account? Any insights or suggestions would be greatly appreciated!
5
11
1.2k
1d
Xcode rebuilds entire project when nothing has changed
Using Xcode 15.3 on a Mac M1 with MacOS 14.5. The project consists of C++, ObjC and Swift source files. CocoaPods is used for several libraries. CMake is used to generate the build files etc.. The issue is that any time I attempt to run the application (on any iOS device), it will always rebuild from scratch, which takes a considerable amount of time for this very large project. This occurs without any changes to the project; no source code changes, no resource file changes, nothing at all. Would anyone have any idea as to why this would be happening? Is there any diagnostic information I can enable in Xcode to show me exactly what changes it has detected, or what reason it may have for doing a full rebuild?
4
4
662
1d
ContactProvider contacts: incoming call shows photo but not the name (and nothing when locked)
We use a Contact Provider extension (iOS 18+) to provide a read-only company directory (~[Anzahl] employees) for caller identification on managed company iPhones. Setup ContactProviderExtension using the default domain. The host app writes a JSON snapshot to an App Group container, then calls ContactProviderManager().signalEnumerator(). enable() was called and confirmed. enumerateContent / enumerateChanges deliver items like this: let contact = CNMutableContact() contact.contactType = .person contact.givenName = "Jane" contact.familyName = "Doe" contact.organizationName = "<Company>" contact.departmentName = "..." contact.jobTitle = "..." contact.phoneNumbers = [ CNLabeledValue(label: CNLabelWork, value: CNPhoneNumber(stringValue: "+4970311234567")), CNLabeledValue(label: CNLabelPhoneNumberMobile, value: CNPhoneNumber(stringValue: "+491711234567")) ] contact.emailAddresses = [...] contact.imageData = jpegData // 240x240, optional return .contact(contact, ContactItem.Identifier(stableId)) Phone numbers are stored in E.164 format. What works The contacts appear correctly in the Contacts app (own read-only list, full name, organization, numbers, photo). After a call, Recents shows the correct name. Regular contacts in the user's own address book are shown with their name on incoming calls, both locked and unlocked. The problem (incoming cellular call from a number that exists only in the provider) Device unlocked: the Dynamic Island shows the contact photo (or the initials if there is no photo) but the PHONE NUMBER instead of the name. Expanding it also shows only the number. Device locked: only the number is shown, no name, no photo. Recents afterwards: correct name. So the system clearly matches the contact (photo/initials appear), but does not use the name on the incoming call UI. Already checked No duplicate contact with the same number (old Exchange address book removed). MDM restrictions: "allow managed apps to write contacts to unmanaged accounts" and "allow unmanaged apps to read contacts from managed accounts" are both enabled. Setting contactType = .person explicitly did not change anything. [nur wenn getestet] [Ergebnis Test B: normaler Kontakt mit derselben Nummer funktioniert / funktioniert nicht] [Ergebnis Test A: Gerät ohne MDM, falls gemacht] Environment iOS [Version], [Gerätemodell] App distributed via MDM (Sophos) as a managed app. Feedback: [FB-Nummer, falls schon gemeldet] Questions Is this expected behavior for Contact Provider contacts on the incoming call UI, or a known issue? Is anything required in the ContactItem / CNContact (or extension configuration) for the name to be used on incoming calls, especially on a locked device? Given that DTS suggested Contact Provider for a business directory use case, is caller identification on a locked device supposed to work? Thanks!
0
0
34
1d
Xcode 27 Destroys the 'Find in Project' Functionality with S-L-O-O-O-O-W T-Y-P-I-N-G of search terms
After destroying the normal window tab operations in Xcode 26, the developers of Xcode found a new victim: the 'Find in Project' functionality. I guess it was hard to tolerate that this functionality worked so well for so many years. Xcode 27 puts an end to this. Who needs to be able to search Xcode projects when there are so many AI agents floating around? As the title says, typing search terms in the Find field is next to impossible. For example, it takes 27 seconds to type 33 characters. Xcode 27.2 (and every earlier version). FB25688852
0
0
174
2d
Xcode/SwiftPM manifest parsing: supported attribution of permissionDenied (exit 74)
An offline iOS project build using local Swift packages stopped at Resolve Package Graph. The retained package activity log reports permissionDenied during Parsing package manifest; xcodebuild exited 74. The evidence does not identify the failing subprocess, executable/output path, denied resource or operation. It does not establish that a signing operation was attempted or caused the failure. The attempt used a restrictive sandbox denying network access, writes outside the isolated run directory (except /dev/null), specified signing/device tools and certain simulator-service lookups. DerivedData and package paths were explicitly set. A separate failure saving a default-location result bundle was recorded; it has not been established as the cause of the manifest failure. We seek diagnostic guidance, not a speculative permission expansion: What supported Xcode/SwiftPM diagnostic or logging facility can attribute this error to the exact manifest-processing subprocess, producer command, executable/output path and denied operation/resource (filesystem, sandbox, service or execution permission)? Can this attribution be obtained from retained logs, or through a narrowly scoped diagnostic that does not build/sign the iOS application, access Apple Developer credentials/private signing keys, alter Keychain/certificates, or require provisioning? If the diagnostic itself compiles or executes a manifest helper, does it create a keyless ad-hoc signature? How can its producer and output be identified, and can this be distinguished from application signing before authorising execution? Please state if no signing-free diagnostic is supported. Which minimal sanitised toolchain/version information and log fields are needed, and which documented options apply to xcodebuild rather than only standalone SwiftPM? This is an Xcode/SwiftPM package-manifest enquiry, separate from a Node.js/dyld startup enquiry. We are not attributing this failure to dyld or to signing. No raw logs, private paths, credentials or project source are attached. Further execution awaits review of a supported diagnostic procedure.
0
0
96
2d
Xcode 27: the `@State` macro adds ~8 ms per property to every incremental build (FB25682496)
After moving a large app to Xcode 27.2, our one-line edit builds got 31% slower: 38 s became 50 s. We traced it to @State, which is a macro in the iOS 27 SDK. Posting the numbers in case other teams with big app targets are seeing the same thing. What we measured. Same machine, same tree, same xcodebuild command. Our app module has ~2,480 Swift files and 1,920 @State properties. Xcode 26.3Xcode 27.2One-line edit in a function body37–39 s50–51 sSwiftEmitModule task13.2 s23.0 stypecheck-decl (-stats-output-dir)6.0 s19.1 sClean build (compile + link)~147 s~148 sClean builds don't change. The cost lands in the emit-module job, which Xcode re-runs after every edit, even an edit inside a function body. Isolated. We generated 626 small views with 1,878 @State and timed one swiftc -emit-module -wmo job: No @State@State var x: T = value@State var x: T set in initXcode 26.33.2–3.5 s3.7 s3.7 sXcode 27.23.7 s19.1 s7.2 sWhy. Dump the expansion with -Xfrontend -dump-macro-expansions. A @State var x: Int = 0 expands into __x, _x: State<_>!, $x and a static initial-value property. None of them has a written type, and each repeats the initial value, so the compiler type-checks that value about four times during declaration checking. An explicit type on the property doesn't change the expansion. What helps today: Properties with no initial value (@State var x: T, set in init with _x = State(initialValue:)) expand to much less and cost about 2 ms instead of 8 ms. We're not rewriting hundreds of views on the strength of that, though. Fewer views in the app module. Moving views into Swift packages means an edit only re-checks the package it's in. That's our long-term fix anyway. We've filed FB25682496 with a standalone reproduction script. If you're seeing longer incremental builds on Xcode 27 in a SwiftUI-heavy target, check SwiftEmitModule in the build timing summary (-showBuildTimingSummary). We'd be glad to hear whether your numbers match.
0
0
72
3d
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.5k
4d
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
81
4d
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
222
5d
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
54
6d
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
73
6d
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
799
6d
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
124
6d
Xcode 27.2 – iPhone Simulator Black Screen, Data Migration Failed, and SwiftUI Preview Timeout on M1 Mac
Hi everyone, I've been experiencing persistent issues with the iPhone Simulator and SwiftUI Previews for several days. I've tried numerous troubleshooting steps, but nothing has permanently resolved the problem. My environment MacBook Pro – Apple M1 8 GB RAM macOS 27.2.1 Xcode 27.2 (27B52) iOS Simulator runtimes tested: 26.5, 27.0, and 27.2 Problems Xcode frequently gets stuck on "Preparing iPhone Simulator." DeviceHub displays a black screen. SwiftUI Previews take an unusually long time to load or fail completely. Simulators sometimes shut down unexpectedly. Xcode builds my application successfully but sometimes gets stuck launching it on the simulator. Error messages DeviceKitError 4002: Live device view took longer than expected to connect. Data Migration Failed. Failed to launch app in reasonable time. Mach error -308 – (ipc/mig) server died. Testing results I tested the simulator independently while Xcode was completely closed. The iOS 27.2 iPhone 18 Pro Max simulator successfully completed its startup after 4 minutes and 51 seconds. I could access the Home Screen and open Settings. However, after closing and reopening DeviceHub, the simulator displayed a black screen. I captured a screenshot directly using the simctl command, and the screenshot was also completely black. The simulator subsequently entered the Shutdown state unexpectedly. I also tested the iOS 27.0 simulator, which returned "Data Migration Failed" after 9 minutes and 13 seconds. Additionally, I created a completely new SwiftUI project to determine whether my existing project was causing the issue. The new project also experienced SwiftUI Preview launch timeouts. My existing application builds successfully and runs on my physical iPhone 13 Pro Max. Troubleshooting already performed Reinstalled Xcode from the Mac App Store. Verified that macOS and Xcode are up to date. Tested multiple iPhone simulator models and iOS runtimes. Created new simulator devices. Restarted CoreSimulator services. Cleaned the Xcode build folder. Tested Legacy Previews Execution. Tested a newly created SwiftUI project. Booted simulators independently using Terminal. Unfortunately, none of these steps permanently resolved the issue.I've always experienced slow loading times with the iPhone Simulator and SwiftUI Previews on my Mac. However, the problem has recently become significantly worse, with black screens, unexpected simulator shutdowns, data migration failures, and preview timeouts. I suspect the issue may have worsened after updating macOS, but I cannot confirm whether the update is responsible. I have also submitted a report through Apple Feedback Assistant with simulator diagnostics. Questions Has anyone experienced similar issues with Xcode 27.2, particularly on an Apple Silicon Mac with 8 GB of RAM? Could this be related to CoreSimulator, DeviceHub, runtime data migration, or resource limitations? Is there a known workaround or solution that does not require reinstalling macOS? I have spent several days troubleshooting this issue, and it is significantly affecting my iOS development workflow. Any suggestions or assistance would be greatly appreciated. Thank you!
Replies
0
Boosts
0
Views
4
Activity
7m
Device Hub shared my clipboard with a coworker before I ever opted in
My coworker and I share an iPhone for testing from two separate Macs. I started seeing their code in my clipboard history, and they started seeing mine. Apparently the C in ⌘C stands for coworker. I never manually enabled Use Shared Clipboard. It was already checked when I opened Device Hub to investigate. I observed this on Xcode 27.2 and macOS 27.2.1. The system logs showed DeviceHub writing the incoming text directly to the Mac’s clipboard, where my clipboard manager saved it without me pressing Paste. Automatic clipboard sharing is an extremely unsafe default for shared test devices. Pairing an iPhone for debugging shouldn’t silently give another developer’s Mac a copy of whatever I put on my clipboard. The Swift snippets were funny. A password or API token copied as plain text could take the same route and stay in someone else’s clipboard history long after the debugging session ends. Please default Use Shared Clipboard to off, require explicit opt-in for each connection, and prevent a shared device from forwarding clipboard contents between Macs.
Replies
0
Boosts
2
Views
70
Activity
10h
Device Hub in Xcode 27 does not support game controllers
I wanted to test my App for Apple TV and iPad/iPhone with a DualShock 2 game controller. This worked perfect with the former Xcode version. Now nothing happens, if I use the game controller. In blue tooth is is connected and if I use my game without Device Hub it is also working. Additionally it is nearly impossible to debug my game on Apple Watch with the Digital Crown, it takes minutes to start the simulators for iPhone, my Mac is getting extremely hot, ... Is there a possibility to use the old simulator? Device Hub is not really usable for developers.
Replies
2
Boosts
1
Views
181
Activity
1d
Swift Testing UI tests (Xcode 27.3 beta 2): launch() in the second test leaves the app "notRunning" (FB25692723)
Xcode 27.3 beta 2 lets us write UI tests with Swift Testing and XCUIAutomation, so I tried moving our UI tests over. In a UI testing bundle, when more than one Swift Testing test launches the app, XCUIApplication().launch() in the second test returns after about 0.5 seconds with state == .notRunning. Every element query in that test then fails. The app process is actually spawned and keeps running, but XCUIAutomation never attaches to it: state stays .notRunning even after wait(for: .runningForeground, timeout: 5). Minimal repro, in a new project with a SwiftUI app that shows a "Ready" text: import Testing import XCUIAutomation @MainActor struct SwiftTestingLaunchTests { @Test func `Launch 1`() throws { try launchAndCheck() } @Test func `Launch 2`() throws { try launchAndCheck() } @Test func `Launch 3`() throws { try launchAndCheck() } @Test func `Launch 4`() throws { try launchAndCheck() } private func launchAndCheck() throws { let app = XCUIApplication() app.launch() try #require(app.state == .runningForeground, "state right after launch(): \(app.state.rawValue)") try #require(app.staticTexts["Ready"].waitForExistence(timeout: 10)) } }Result (same in 4 of 4 runs, parallel testing off): ✔ Test "Launch 1" passed after 4.784 seconds. ✘ Test "Launch 2" recorded an issue at SwiftTestingLaunchTests.swift:15:13: Expectation failed: app.state == .runningForeground ↳ state right after launch(): 1 ✔ Test "Launch 3" passed after 5.516 seconds. ✔ Test "Launch 4" passed after 5.594 seconds.The same 4 tests written with XCTest (XCTestCase, XCUIApplication().launch(), XCTAssertEqual(app.state, .runningForeground)) pass every time on the same simulator. In the activity log, only the failing launch goes through "Wait for accessibility to load", right after terminating the previous instance: Launch 2 (fails): t = 6.99s Launch com.example.LaunchRepro t = 6.99s Terminate com.example.LaunchRepro:17666 t = 7.46s Wait for accessibility to load t = 7.47s Setting up automation session Launch 3 (passes): t = 8.59s Launch com.example.LaunchRepro t = 8.59s Terminate com.example.LaunchRepro:17672 t = 9.84s Setting up automation sessionWhat I tried, none of which helped: calling terminate() before launch() calling launch() again when state is not .runningForeground (this kills the instance that was starting) calling activate() when state is not .runningForeground In our real app (11 UI tests), the same 3 tests failed this way in every run, and each one passed when run alone. For now we keep the XCUIAutomation tests in XCTest and use Swift Testing only for tests that don't drive the UI. Environment: Xcode 27.3 beta 2 (27C5035i), iOS 27.3 simulator (24C5049d), iPhone 18 Pro simulator. Filed as FB25692723 with the minimal project attached. Has anyone else seen this, or found a workaround?
Replies
1
Boosts
0
Views
58
Activity
1d
Apple Watch (watchOS 27.2.1) stuck on connecting when pairing with MacBook Air in Xcode 27.2
Hi, I'm trying to pair my Apple Watch (watchOS 27.2.1) with Xcode 27.2 on my MacBook Air so I can install my personal watchOS app (using a Personal Team / free Apple ID). Current situation: iPhone 15 (iOS 27.2.1) is connected via USB and recognized properly in Xcode (xcrun devicectl list devices shows the iPhone as connected). However, the paired Apple Watch does not appear in Xcode Devices or devicectl. On Apple Watch, under Settings > Privacy & Security > Developer Mode, my MacBook Air appears, and Xcode shows "Waiting to pair." When I tap MacBook Air on the Watch, it gets stuck spinning on "Connecting..." and the 6-digit pairing code never appears. Because the Watch UDID is not in the provisioning profile, installing the embedded Watch app from the iPhone Watch app fails with "Could not verify integrity." What I have already tried: Installed the watchOS 27.2 platform component in Xcode Settings. Rebooted Apple Watch, iPhone, and MacBook Air. Tried both the same home Wi-Fi and direct Mac Internet Sharing (iPhone USB -> Wi-Fi) to bypass the router. Confirmed macOS Firewall is disabled. Is there any known issue or workaround to complete wireless pairing between watchOS 27.2.1 and Xcode 27.2?
Replies
0
Boosts
0
Views
27
Activity
1d
XCode 16.2 is randomly removing my account
I am signed into Xcode for automatic signing. Which works for a random amount of builds and then the Account/AppleID dissappears from Xcode. This is a vital part of our CI/CD processes and disrupts the workflow alot. MacOS version: Apple M2 15.3 (24D60) Sequoia related: https://developer.apple.com/forums/thread/724434 https://stackoverflow.com/questions/50252887/account-automatically-removed-from-xcode
Replies
2
Boosts
2
Views
616
Activity
1d
Xcode 16 on macOS Sequoia Keeps Removing Apple Accounts
I've recently set up new M4 Mac Minis with macOS Sequoia and Xcode 16. After logging into my Apple account in Xcode, everything works fine initially. However, the next day—or sometimes just a few hours later—my builds fail, and when I check the Accounts tab in Xcode's Settings, my account is missing. I have to re-add and re-authenticate my account, only for the same issue to recur later. To investigate further, I upgraded an older Mac Mini from macOS Sonoma and Xcode 15.1.0 to macOS Sequoia and Xcode 16.2. Unfortunately, this machine now exhibits the same behavior, suggesting the issue is related to either macOS Sequoia or Xcode 16. Has there been a change in Xcode or macOS that causes this automatic removal of accounts? Is there a solution or workaround to prevent Xcode from removing my Apple account? Any insights or suggestions would be greatly appreciated!
Replies
5
Boosts
11
Views
1.2k
Activity
1d
Xcode rebuilds entire project when nothing has changed
Using Xcode 15.3 on a Mac M1 with MacOS 14.5. The project consists of C++, ObjC and Swift source files. CocoaPods is used for several libraries. CMake is used to generate the build files etc.. The issue is that any time I attempt to run the application (on any iOS device), it will always rebuild from scratch, which takes a considerable amount of time for this very large project. This occurs without any changes to the project; no source code changes, no resource file changes, nothing at all. Would anyone have any idea as to why this would be happening? Is there any diagnostic information I can enable in Xcode to show me exactly what changes it has detected, or what reason it may have for doing a full rebuild?
Replies
4
Boosts
4
Views
662
Activity
1d
ContactProvider contacts: incoming call shows photo but not the name (and nothing when locked)
We use a Contact Provider extension (iOS 18+) to provide a read-only company directory (~[Anzahl] employees) for caller identification on managed company iPhones. Setup ContactProviderExtension using the default domain. The host app writes a JSON snapshot to an App Group container, then calls ContactProviderManager().signalEnumerator(). enable() was called and confirmed. enumerateContent / enumerateChanges deliver items like this: let contact = CNMutableContact() contact.contactType = .person contact.givenName = "Jane" contact.familyName = "Doe" contact.organizationName = "<Company>" contact.departmentName = "..." contact.jobTitle = "..." contact.phoneNumbers = [ CNLabeledValue(label: CNLabelWork, value: CNPhoneNumber(stringValue: "+4970311234567")), CNLabeledValue(label: CNLabelPhoneNumberMobile, value: CNPhoneNumber(stringValue: "+491711234567")) ] contact.emailAddresses = [...] contact.imageData = jpegData // 240x240, optional return .contact(contact, ContactItem.Identifier(stableId)) Phone numbers are stored in E.164 format. What works The contacts appear correctly in the Contacts app (own read-only list, full name, organization, numbers, photo). After a call, Recents shows the correct name. Regular contacts in the user's own address book are shown with their name on incoming calls, both locked and unlocked. The problem (incoming cellular call from a number that exists only in the provider) Device unlocked: the Dynamic Island shows the contact photo (or the initials if there is no photo) but the PHONE NUMBER instead of the name. Expanding it also shows only the number. Device locked: only the number is shown, no name, no photo. Recents afterwards: correct name. So the system clearly matches the contact (photo/initials appear), but does not use the name on the incoming call UI. Already checked No duplicate contact with the same number (old Exchange address book removed). MDM restrictions: "allow managed apps to write contacts to unmanaged accounts" and "allow unmanaged apps to read contacts from managed accounts" are both enabled. Setting contactType = .person explicitly did not change anything. [nur wenn getestet] [Ergebnis Test B: normaler Kontakt mit derselben Nummer funktioniert / funktioniert nicht] [Ergebnis Test A: Gerät ohne MDM, falls gemacht] Environment iOS [Version], [Gerätemodell] App distributed via MDM (Sophos) as a managed app. Feedback: [FB-Nummer, falls schon gemeldet] Questions Is this expected behavior for Contact Provider contacts on the incoming call UI, or a known issue? Is anything required in the ContactItem / CNContact (or extension configuration) for the name to be used on incoming calls, especially on a locked device? Given that DTS suggested Contact Provider for a business directory use case, is caller identification on a locked device supposed to work? Thanks!
Replies
0
Boosts
0
Views
34
Activity
1d
Xcode 27 Destroys the 'Find in Project' Functionality with S-L-O-O-O-O-W T-Y-P-I-N-G of search terms
After destroying the normal window tab operations in Xcode 26, the developers of Xcode found a new victim: the 'Find in Project' functionality. I guess it was hard to tolerate that this functionality worked so well for so many years. Xcode 27 puts an end to this. Who needs to be able to search Xcode projects when there are so many AI agents floating around? As the title says, typing search terms in the Find field is next to impossible. For example, it takes 27 seconds to type 33 characters. Xcode 27.2 (and every earlier version). FB25688852
Replies
0
Boosts
0
Views
174
Activity
2d
Xcode/SwiftPM manifest parsing: supported attribution of permissionDenied (exit 74)
An offline iOS project build using local Swift packages stopped at Resolve Package Graph. The retained package activity log reports permissionDenied during Parsing package manifest; xcodebuild exited 74. The evidence does not identify the failing subprocess, executable/output path, denied resource or operation. It does not establish that a signing operation was attempted or caused the failure. The attempt used a restrictive sandbox denying network access, writes outside the isolated run directory (except /dev/null), specified signing/device tools and certain simulator-service lookups. DerivedData and package paths were explicitly set. A separate failure saving a default-location result bundle was recorded; it has not been established as the cause of the manifest failure. We seek diagnostic guidance, not a speculative permission expansion: What supported Xcode/SwiftPM diagnostic or logging facility can attribute this error to the exact manifest-processing subprocess, producer command, executable/output path and denied operation/resource (filesystem, sandbox, service or execution permission)? Can this attribution be obtained from retained logs, or through a narrowly scoped diagnostic that does not build/sign the iOS application, access Apple Developer credentials/private signing keys, alter Keychain/certificates, or require provisioning? If the diagnostic itself compiles or executes a manifest helper, does it create a keyless ad-hoc signature? How can its producer and output be identified, and can this be distinguished from application signing before authorising execution? Please state if no signing-free diagnostic is supported. Which minimal sanitised toolchain/version information and log fields are needed, and which documented options apply to xcodebuild rather than only standalone SwiftPM? This is an Xcode/SwiftPM package-manifest enquiry, separate from a Node.js/dyld startup enquiry. We are not attributing this failure to dyld or to signing. No raw logs, private paths, credentials or project source are attached. Further execution awaits review of a supported diagnostic procedure.
Replies
0
Boosts
0
Views
96
Activity
2d
Xcode 27: the `@State` macro adds ~8 ms per property to every incremental build (FB25682496)
After moving a large app to Xcode 27.2, our one-line edit builds got 31% slower: 38 s became 50 s. We traced it to @State, which is a macro in the iOS 27 SDK. Posting the numbers in case other teams with big app targets are seeing the same thing. What we measured. Same machine, same tree, same xcodebuild command. Our app module has ~2,480 Swift files and 1,920 @State properties. Xcode 26.3Xcode 27.2One-line edit in a function body37–39 s50–51 sSwiftEmitModule task13.2 s23.0 stypecheck-decl (-stats-output-dir)6.0 s19.1 sClean build (compile + link)~147 s~148 sClean builds don't change. The cost lands in the emit-module job, which Xcode re-runs after every edit, even an edit inside a function body. Isolated. We generated 626 small views with 1,878 @State and timed one swiftc -emit-module -wmo job: No @State@State var x: T = value@State var x: T set in initXcode 26.33.2–3.5 s3.7 s3.7 sXcode 27.23.7 s19.1 s7.2 sWhy. Dump the expansion with -Xfrontend -dump-macro-expansions. A @State var x: Int = 0 expands into __x, _x: State<_>!, $x and a static initial-value property. None of them has a written type, and each repeats the initial value, so the compiler type-checks that value about four times during declaration checking. An explicit type on the property doesn't change the expansion. What helps today: Properties with no initial value (@State var x: T, set in init with _x = State(initialValue:)) expand to much less and cost about 2 ms instead of 8 ms. We're not rewriting hundreds of views on the strength of that, though. Fewer views in the app module. Moving views into Swift packages means an edit only re-checks the package it's in. That's our long-term fix anyway. We've filed FB25682496 with a standalone reproduction script. If you're seeing longer incremental builds on Xcode 27 in a SwiftUI-heavy target, check SwiftEmitModule in the build timing summary (-showBuildTimingSummary). We'd be glad to hear whether your numbers match.
Replies
0
Boosts
0
Views
72
Activity
3d
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.5k
Activity
4d
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
81
Activity
4d
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
222
Activity
5d
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
54
Activity
6d
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
73
Activity
6d
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
799
Activity
6d
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
124
Activity
6d