Search results for

“Xcode”

93,872 results found

Post

Replies

Boosts

Views

Activity

Reply to Need MetricKit Implementation details for MacOS background Application, mainly for
Also one more point, when i integrated metric Kit and used Xcode to simulate MetricKit payloads, i was getting the callback i.e func didReceive(_ payloads: [MXMetricPayload]) Main issue was that when i launched my app with changes and waited for more than 24 hours, but i did not get any callback, so wanted to know if it works on background apps or not? Also does it work on MacOS or not? Could u pls help to answer it
1d
Reply to Background Assets - Apple Hosted - iOS26
Hello, @andy_nash, @StonedStudio, @tom_krikorian, @Dokug, and @zepsec! I’m happy to report that this issue is now resolved in the OS 26.5 beta 1 simulators that we released today with Xcode 26.5 beta 1. If you still see crashes or errors that mention a “team ID” after updating to the OS 26.5 beta 1 simulators, then please file a new feedback report and reply to this thread with the feedback ID. Note that there’s still a separate known issue that prevents the URL override from working in simulator environments. I’ll post again in this thread when that separate issue is fixed. Thanks!
1d
Background Assets: Second and subsequent download cancellations fail (iOS 26.0–26.3 RC)
Summary I'm using Background Assets to download Apple-hosted Asset Packs(downloadPolicy = onDemand). The first download cancellation succeeds, but on the second and subsequent downloads, progress.cancel() fails to work and the download completes to the end. Environment iOS 26.0 – 26.3 RC (all produce the same result) Xcode Version 26.2 (17C52) Using Apple-hosted Asset Packs Steps to Reproduce Start downloading an Asset Pack Call progress.cancel() during download → Succeeds Start downloading the same Asset Pack again Call progress.cancel() during download → Fails (download completes to the end) Observed Error Logs After 1st cancellation: A download with the ID X-XXXXXXXX-XXX failed: Error Domain=NSURLErrorDomain Code=-999 cancelled ↑ This is expected (cancellation succeeded) The fact that version 0 of the asset pack with the ID X-XXXXXX-XXX finished being downloaded couldn't be reported: Error Domain=NSCocoaErrorDomain Code=3851 Property list invalid for format: 200
2
0
128
1d
Apple watch Xcode pairing & connection issues
I’m blocked debugging a watchOS app on a physical Apple Watch. The iPhone connects to Xcode normally (wired), but the Watch either fails to connect with a tunnel timeout or disappears entirely from Xcode after I unpaired it inside Devices & Simulators. Environment Mac: macOS 26.x (Apple Silicon Mac) Xcode: 26.2 iPhone: iOS 26.1 Apple Watch Ultra: watchOS 26.2 (build 23S303) Connection: iPhone connected to Mac via USB (trusted). Watch paired to iPhone and working normally in the Watch app. Issue A (when Watch is visible in Xcode) In Xcode → Window → Devices and Simulators, the Watch shows up but is not usable and fails to connect. Error: “Previous preparation error: A connection to this device could not be established.” “Timed out while attempting to establish tunnel using negotiated network parameters.” In some attempts the Watch shows “Capacity: Unknown” / limited details, and then fails during preparation. Issue B (after unpairing Watch in Xcode only
18
0
1.8k
1d
Reply to Xcode 26.4 rc
I'm seeing the same issue in Xcode 26.4 release. Failed to authenticate. API Error: 401 {type:error,error:{type:authentication_error,message:OAuth token has expired. Please obtain a new token or refresh your existing token.},request_id:req_011CZaDXn4KLC1KJ3SsLdBwC} This is happening for Claude Agent within Xcode and the only way I can fix it is to log out of Claude and then log back in. Very frustrating.
1d
Different app behavior when running on device from Xcode
I have an app I am working on that makes a REST call, updates the UI with the info, and sends a notification. When I run Build and Run my app from Xcode using my iPhone as the destination, it works exactly as I want it to - my REST calls and notifications continue to work when the app is in the background. However, when I run my app that has been installed on my iPhone from the Xcode build/run directly (without Xcode in the picture), it does NOT behave correctly and only works when my app is in the foreground. What am I missing?
4
0
102
1d
Reply to Different app behavior when running on device from Xcode
Thank you @Tomato and @DTS Engineer ! The purpose of my app is to provide a notification mechanism when there are drastic air quality changes. To accomplish this, I have an async function that makes a GET request to an air quality sensor (using UrlSession), decode the payload, and then do comparisons with previous readings. If the readings have changed drastically, an UNMutableNotificationContent() is scheduled. Currently, my async function is called from within a repeating scheduled timer so that I can poll my sensor every minute: Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in timerVal -= 1 if timerVal == 0 { timerVal = startVal getAQI() } } This all works just fine (including when the app is in the background) ONLY when I run the app from Build and Run in Xcode on my dev iPhone as the destination. I've left the app running this way for hours in the background and with the phone locked and it works great! However, when I try to run the app purely from the app shortcut on my iPhone
Topic: Community SubTopic: Apple Developers Tags:
1d
SwiftUI Chart scrolling on macOS
I'm running macOS 26.3 and using Xcode 26.4. I'm trying to create a SwiftUI Chart that can scroll horizontally. In the SwiftUI Preview, and also running the app on macOS, the chart displays a scrollbar, but the scrollbar does not respond to mouse interaction (dragging the scrollbar, or clicking in the gutters on either side of the scrollbar). Here's the sample code: import SwiftUI import Charts private struct DataPoint: Identifiable { let id: Int let x: Double let value: Double } struct ContentView: View { private let points: [DataPoint] = (0..<60).map { index in let wave = sin(Double(index) * 0.28) * 18 let trend = Double(index) * 0.35 return DataPoint(id: index, x: Double(index), value: 60 + wave + trend) } var body: some View { Chart(points) { point in BarMark( x: .value(Data Point, point.x), y: .value(Value, point.value) ) .foregroundStyle(.blue.gradient) } .chartScrollableAxes(.horizontal) // Doesn't work: // .scrollIndicators(.hidden) // .never also does n
3
0
103
1d
Installation of XCode CLT on Tahoe 26.1
I am unable to install due to the following error: can't install the software because it is not currently available from the software update server Mac OS: Tahoe 26.1 CLI: Iterm2 Command : xcode-select --install Output: Command transitions to a GUI installer and attempts to download but fails with the attached error. As a result I am unable to proceed with installing Homebrew from CLI or downloaded pkg
3
0
57
2d
Reply to Installation of XCode CLT on Tahoe 26.1
Thanks for the post, I don’t see what are you selecting to install. Download Directly from the Apple Developer Portal is the recommended way or better use the Apple Store for the release version. Go to the Apple Developer Downloads page. Sometimes the GUI fails, but forcing the macOS software update utility through the terminal works. If Xcode is a beta or internal build, the xcode-select --install command will almost always fail because Apple does not host beta Command Line Tools on the public production update servers. I would recommend to install the Xcode you want from the developer portal if beta or RC and the App Store if you want the latest release version. Albert 
  Worldwide Developer Relations.
2d
Unable to use FoundationModels in older app?
Hi, I'm trying to add FoundationModels to an older project but always get the following error: Unable to resolve 'dependency' 'FoundationModels' import FoundationModels The error comes and goes while its compiling and then doesn't run the app. I have my target set to 26.0 (and can't go any higher) and am using Xcode 26 (17E192). Is anyone else having this issue? Thanks, Dan Uff
1
0
109
2d
My app fails to launch since I have changed of iPhone (from iPhone13 pro to iPhone 17 pro)
Since I have changed of iPhone (yesterday) to run my draft application, I systematically, and instantaneously get a message The application failed to launch., i.e. the application successfully built and was downloaded to the new iPhone (Iphone 17 pro - iOS 26.4). I have checked that this new iPhone is well registered on my list of authorized devices. Could you help me to fix this issue ? Here is the verbose attached to the failure: The application failed to launch. Domain: com.apple.dt.CoreDeviceError Code: 10002 User Info: { BundleIdentifier = com.laurent-guise.ble-laser; DVTErrorCreationDateKey = 2026-03-30 07:59:46 +0000; IDERunOperationFailingWorker = IDELaunchCoreDeviceWorker; } The request to open com.laurent-guise.ble-laser failed. Domain: FBSOpenApplicationServiceErrorDomain Code: 1 Failure Reason: The request was denied by service delegate (SBMainWorkspace). User Info: { BSErrorCodeDescription = RequestDenied; FBSOpenApplicationRequestID = 0x3868; } The operation couldn’t be completed. The process fa
1
0
41
2d
Reply to Need MetricKit Implementation details for MacOS background Application, mainly for
Also one more point, when i integrated metric Kit and used Xcode to simulate MetricKit payloads, i was getting the callback i.e func didReceive(_ payloads: [MXMetricPayload]) Main issue was that when i launched my app with changes and waited for more than 24 hours, but i did not get any callback, so wanted to know if it works on background apps or not? Also does it work on MacOS or not? Could u pls help to answer it
Replies
Boosts
Views
Activity
1d
Reply to Background Assets - Apple Hosted - iOS26
Hello, @andy_nash, @StonedStudio, @tom_krikorian, @Dokug, and @zepsec! I’m happy to report that this issue is now resolved in the OS 26.5 beta 1 simulators that we released today with Xcode 26.5 beta 1. If you still see crashes or errors that mention a “team ID” after updating to the OS 26.5 beta 1 simulators, then please file a new feedback report and reply to this thread with the feedback ID. Note that there’s still a separate known issue that prevents the URL override from working in simulator environments. I’ll post again in this thread when that separate issue is fixed. Thanks!
Replies
Boosts
Views
Activity
1d
Background Assets: Second and subsequent download cancellations fail (iOS 26.0–26.3 RC)
Summary I'm using Background Assets to download Apple-hosted Asset Packs(downloadPolicy = onDemand). The first download cancellation succeeds, but on the second and subsequent downloads, progress.cancel() fails to work and the download completes to the end. Environment iOS 26.0 – 26.3 RC (all produce the same result) Xcode Version 26.2 (17C52) Using Apple-hosted Asset Packs Steps to Reproduce Start downloading an Asset Pack Call progress.cancel() during download → Succeeds Start downloading the same Asset Pack again Call progress.cancel() during download → Fails (download completes to the end) Observed Error Logs After 1st cancellation: A download with the ID X-XXXXXXXX-XXX failed: Error Domain=NSURLErrorDomain Code=-999 cancelled ↑ This is expected (cancellation succeeded) The fact that version 0 of the asset pack with the ID X-XXXXXX-XXX finished being downloaded couldn't be reported: Error Domain=NSCocoaErrorDomain Code=3851 Property list invalid for format: 200
Replies
2
Boosts
0
Views
128
Activity
1d
Apple watch Xcode pairing & connection issues
I’m blocked debugging a watchOS app on a physical Apple Watch. The iPhone connects to Xcode normally (wired), but the Watch either fails to connect with a tunnel timeout or disappears entirely from Xcode after I unpaired it inside Devices & Simulators. Environment Mac: macOS 26.x (Apple Silicon Mac) Xcode: 26.2 iPhone: iOS 26.1 Apple Watch Ultra: watchOS 26.2 (build 23S303) Connection: iPhone connected to Mac via USB (trusted). Watch paired to iPhone and working normally in the Watch app. Issue A (when Watch is visible in Xcode) In Xcode → Window → Devices and Simulators, the Watch shows up but is not usable and fails to connect. Error: “Previous preparation error: A connection to this device could not be established.” “Timed out while attempting to establish tunnel using negotiated network parameters.” In some attempts the Watch shows “Capacity: Unknown” / limited details, and then fails during preparation. Issue B (after unpairing Watch in Xcode only
Replies
18
Boosts
0
Views
1.8k
Activity
1d
Reply to Xcode 26.4 rc
I'm seeing the same issue in Xcode 26.4 release. Failed to authenticate. API Error: 401 {type:error,error:{type:authentication_error,message:OAuth token has expired. Please obtain a new token or refresh your existing token.},request_id:req_011CZaDXn4KLC1KJ3SsLdBwC} This is happening for Claude Agent within Xcode and the only way I can fix it is to log out of Claude and then log back in. Very frustrating.
Replies
Boosts
Views
Activity
1d
Different app behavior when running on device from Xcode
I have an app I am working on that makes a REST call, updates the UI with the info, and sends a notification. When I run Build and Run my app from Xcode using my iPhone as the destination, it works exactly as I want it to - my REST calls and notifications continue to work when the app is in the background. However, when I run my app that has been installed on my iPhone from the Xcode build/run directly (without Xcode in the picture), it does NOT behave correctly and only works when my app is in the foreground. What am I missing?
Replies
4
Boosts
0
Views
102
Activity
1d
Reply to Different app behavior when running on device from Xcode
Thank you @Tomato and @DTS Engineer ! The purpose of my app is to provide a notification mechanism when there are drastic air quality changes. To accomplish this, I have an async function that makes a GET request to an air quality sensor (using UrlSession), decode the payload, and then do comparisons with previous readings. If the readings have changed drastically, an UNMutableNotificationContent() is scheduled. Currently, my async function is called from within a repeating scheduled timer so that I can poll my sensor every minute: Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in timerVal -= 1 if timerVal == 0 { timerVal = startVal getAQI() } } This all works just fine (including when the app is in the background) ONLY when I run the app from Build and Run in Xcode on my dev iPhone as the destination. I've left the app running this way for hours in the background and with the phone locked and it works great! However, when I try to run the app purely from the app shortcut on my iPhone
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
1d
SwiftUI Chart scrolling on macOS
I'm running macOS 26.3 and using Xcode 26.4. I'm trying to create a SwiftUI Chart that can scroll horizontally. In the SwiftUI Preview, and also running the app on macOS, the chart displays a scrollbar, but the scrollbar does not respond to mouse interaction (dragging the scrollbar, or clicking in the gutters on either side of the scrollbar). Here's the sample code: import SwiftUI import Charts private struct DataPoint: Identifiable { let id: Int let x: Double let value: Double } struct ContentView: View { private let points: [DataPoint] = (0..<60).map { index in let wave = sin(Double(index) * 0.28) * 18 let trend = Double(index) * 0.35 return DataPoint(id: index, x: Double(index), value: 60 + wave + trend) } var body: some View { Chart(points) { point in BarMark( x: .value(Data Point, point.x), y: .value(Value, point.value) ) .foregroundStyle(.blue.gradient) } .chartScrollableAxes(.horizontal) // Doesn't work: // .scrollIndicators(.hidden) // .never also does n
Replies
3
Boosts
0
Views
103
Activity
1d
Installation of XCode CLT on Tahoe 26.1
I am unable to install due to the following error: can't install the software because it is not currently available from the software update server Mac OS: Tahoe 26.1 CLI: Iterm2 Command : xcode-select --install Output: Command transitions to a GUI installer and attempts to download but fails with the attached error. As a result I am unable to proceed with installing Homebrew from CLI or downloaded pkg
Replies
3
Boosts
0
Views
57
Activity
2d
Reply to Installation of XCode CLT on Tahoe 26.1
It turned out to be a Mac OS version compatibility issue. I needed to upgrade to 26.2 or higher to install XCode CLT
Replies
Boosts
Views
Activity
2d
Reply to iCloud Sync not working with iPhone, works fine for Mac.
I can confirm my App works again (iPad 26.5 beta) .✅ ⁇ I cannot confirm the apple example program works as I've run out of devices (and I'm not sure if CkSyncEngine behaves properly with sandbox users or Xcode simulation)
Replies
Boosts
Views
Activity
2d
Reply to Different app behavior when running on device from Xcode
Clarification - when not running through Xcode, my app stops making my REST calls/notifications, which are on run repeatedly using a Timer Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { _ in
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
2d
Reply to Installation of XCode CLT on Tahoe 26.1
Thanks for the post, I don’t see what are you selecting to install. Download Directly from the Apple Developer Portal is the recommended way or better use the Apple Store for the release version. Go to the Apple Developer Downloads page. Sometimes the GUI fails, but forcing the macOS software update utility through the terminal works. If Xcode is a beta or internal build, the xcode-select --install command will almost always fail because Apple does not host beta Command Line Tools on the public production update servers. I would recommend to install the Xcode you want from the developer portal if beta or RC and the App Store if you want the latest release version. Albert 
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2d
Unable to use FoundationModels in older app?
Hi, I'm trying to add FoundationModels to an older project but always get the following error: Unable to resolve 'dependency' 'FoundationModels' import FoundationModels The error comes and goes while its compiling and then doesn't run the app. I have my target set to 26.0 (and can't go any higher) and am using Xcode 26 (17E192). Is anyone else having this issue? Thanks, Dan Uff
Replies
1
Boosts
0
Views
109
Activity
2d
My app fails to launch since I have changed of iPhone (from iPhone13 pro to iPhone 17 pro)
Since I have changed of iPhone (yesterday) to run my draft application, I systematically, and instantaneously get a message The application failed to launch., i.e. the application successfully built and was downloaded to the new iPhone (Iphone 17 pro - iOS 26.4). I have checked that this new iPhone is well registered on my list of authorized devices. Could you help me to fix this issue ? Here is the verbose attached to the failure: The application failed to launch. Domain: com.apple.dt.CoreDeviceError Code: 10002 User Info: { BundleIdentifier = com.laurent-guise.ble-laser; DVTErrorCreationDateKey = 2026-03-30 07:59:46 +0000; IDERunOperationFailingWorker = IDELaunchCoreDeviceWorker; } The request to open com.laurent-guise.ble-laser failed. Domain: FBSOpenApplicationServiceErrorDomain Code: 1 Failure Reason: The request was denied by service delegate (SBMainWorkspace). User Info: { BSErrorCodeDescription = RequestDenied; FBSOpenApplicationRequestID = 0x3868; } The operation couldn’t be completed. The process fa
Replies
1
Boosts
0
Views
41
Activity
2d