Search results for

“Xcode”

93,863 results found

Post

Replies

Boosts

Views

Activity

DeviceActivityMonitor intervalDidEnd not firing for non-repeating timed unlock
I’m building an iOS app that uses FamilyControls + ManagedSettings + DeviceActivity. Goal: temporarily “unlock” a shielded app for N minutes, then automatically re-apply the shield when the timer expires. What I do: In the main app, when user picks an expiry (e.g. 15 min, 30 min). I start a non-repeating DeviceActivity schedule and remove the app’s ApplicationToken from ManagedSettingsStore().shield.applications. I also store activeUnlockBundleID etc. in an App Group so the DeviceActivityMonitor extension can re-lock at the end. Expected: DeviceActivityMonitor.intervalDidEnd(for:) is invoked when the non-repeating interval ends, and I re-add the token to the shield set. Actual: The app does not re-lock when the interval expires. I added OS logs as well as “debug local notifications” from the DeviceActivityMonitor extension in: init() intervalDidStart intervalDidEnd eventDidReachThreshold None of these logs or notifications ever appear, which suggests the extension is never invoked (or cannot schedule local no
0
0
57
2d
Notarization stuck "In Progress" — both DMG and ZIP, Electron app, 5+ attempts
All notarization submissions remain stuck In Progress and never complete. Tested both DMG and ZIP formats — same result. This has been consistent across 5+ attempts on March 29, 2026. App: Electron desktop app (arm64), signed with Developer ID Application, hardened runtime enabled, secure timestamp present. DMG submissions (all stuck): 568cc9c3-e711-41ba-99ce-6af5a1860ae9 (10 min timeout) e0a345c3-ddf8-4771-bdda-e0bc133ff723 (20 min timeout) 6757e5a9-d95b-45b3-95d5-41cb23384bea (20 min timeout) ZIP submission (.app bundle via ditto, ~207MB): Also stuck In Progress for 10+ minutes notarytool log returns Submission log is not yet available for all submissions. Developer ID Notary Service shows Available on System Status page. Environment: macOS GitHub Actions runner (macos-latest), latest Xcode, xcrun notarytool. Seeing similar reports from other developers this week. Is there a known service issue?
1
0
141
2d
Reply to ‌Xcode26-built apps cannot run on iPhone 6 or earlier devices‌
Thank you for the post. I recommend reviewing the Xcode system requirements for the target listed below. Link to Xcode System Requirements The device support section will provide you with the supported iOS versions. You can view all the versions of Xcode by expanding the “Other Xcode versions” tab. Enables the download of the Xcode version tailored to the desired iOS platform, accessible directly from the developer’s website. Albert
  Worldwide Developer Relations.
2d
Reply to Xcode 26.3 Claude Agent — 401 Invalid Bearer Token on Intel Mac (FB22141224)
Update: After extensive investigation I have identified what appears to be the root cause of the 401 Invalid Bearer Token error on my Intel Mac, and I want to share the findings in case they help others reporting similar issues on M1 and M4 machines. WHAT I FOUND (Intel Mac - x86_64): The Claude Agent binary that Xcode downloads is the darwin-arm64 build regardless of host architecture. On my Intel Mac this binary physically cannot execute, which fails silently and surfaces as a 401 error. Confirmed via terminal: file ~/Library/Developer/Xcode/CodingAssistant/Agents/claude/2.1.14/claude Returns: Mach-O 64-bit executable arm64 — wrong for Intel Mac The IDEChatClaudeCodeVersion preference is hardcoded to the ARM64 download URL: defaults read com.apple.dt.Xcode IDEChatClaudeCodeVersion Returns: darwin-arm64 URL regardless of CPU architecture We also confirmed the darwin-x64 binary exists in Anthropic's distribution bucket and runs correctly on Intel — both in the terminal and as a standalone bi
2d
NavigationLink selection in DisclosureGroup not working with .draggable modifier
NavigationLink selection in DisclosureGroup not working with .draggable modifier This was recently also posted here: https://stackoverflow.com/questions/79914290/ I am playing around with a tree data structure with folders and entries.I would like to add dragging of entries and folders between folders, using .draggable and dropDestination. In my current code, dragging works, but selection of entries no longer works, except if I click outside of the Text If I comment out .draggable(subfolder.name) in func FolderRow(), selection works as expected. How can I make sure both selection and drag and drop works for both folders and entries? I also tried using Transferable and Codable, but I get the same result. Here is an MRE: import SwiftData import SwiftUI @Model final class Folder { @Attribute(.unique) var name: String // Parent var parentFolder: Folder? // Child folders @Relationship(deleteRule: .cascade, inverse: Folder.parentFolder) var subfolders: [Folder] = [] // Leaf entries @Relationship(deleteRule
Topic: UI Frameworks SubTopic: SwiftUI
1
0
161
3d
Xcode 26.4 is missing the documentation for Foundation
Upgraded to Tahoe 26.4 and Xcode 26.4 and realized Xcode is missing the documentation for Foundation. Occasionally, if other (not yet missing) documentation references a Foundation entity, such as a type, clicking on it may open in a web browser pointing to the externally hosted Apple documentation. Anyone else experiencing this or have a workaround (perhaps the documentation files are on disk but were somehow lost / disconnected from the Xcode doc browser)? I checked the release notes for 26.4 and for 26.3 but did not find a mention of anything like that. Filed an issue with Apple, please do too if you are affected so hopefully it will see some love and lead to restoring the documentation. Edited: found some possibly related files in my ~/Library and the newer version v302 (26.4 related, I think, is considerably smaller): du -sh ~/Library/Developer/Xcode/DocumentationCache/* | awk -F/ '{print $NF t $1}' v296 1.0G v302 507M
5
0
151
3d
Reply to Xcode now hangs; SDKs are "status unavailable"
Last post ... I promise ... When I reinstalled Xcode 26.4 again after going through all of the above shenanigans, I chose to NOT install the 26.x line of simulators, nor the Predictive Code Completion Model. As before, Xcode downloaded and installed older simulators anyway, but left the 26.x options uninstalled with their Get buttons primed and ready. I closed down Xcode and did some other stuff. After an hour I launched Xcode to check on things, opened Settings and, lo and behold, the iOS 26.4 and watchOS 26.4 simulators were showing as installed under the Platform Support section of the Components. What is going on? It's as if Xcode is hallucinating.
4d
Reply to Xcode 26.4: Regressions in Intelligence features
Awhile back I used OpenAi for intelligence, though recently switched to using Anthropic Claude. Now, when launching Xcode 26.4 I am prodded with a prompt stating Codex is not installed. Get Codex to resume the conversation. In my Xcode Settings I have ChatGPT in Xcode switched off. Likewise I have not downloaded the Codex Agent - the Get button appears which I ignore. In my Xcode Settings I have also signed into my Anthropic account, i.e. the Sign Out button is showing. It appears I am completely unable to use Claude for intelligence unless I download OpenAI Codex - though other users have done this, and nothing works following. This release appears severely broken. It would be easiest and best to revert to 26.3 to allow developers continue development.
4d
Reply to Xcode now hangs; SDKs are "status unavailable"
I'm now wondering if this is a macOS 26.4 issue. I clean everything out again, reinstalled Xcode Xcode 26.3 (17C529), did the simulator updates (and waited for Xcode to stabilize its other downloads), rebooted, and all the simulators it had installed were in status unavailable state again. How could anybody at Apple not have encountered this, and why was it released to the public?
4d
Reply to Localization in Swift macOS console Apps.
by console, I am referring to a command line tool. Yes. I realize that. But use of the word console is triggering. It's better to say Terminal or command-line to minimize the distress of your fellow developer. My intention was to use the command line tool to test a package I am working on, as the eventual target will be a window app, I may abandon my efforts to localize my command line tool. I am using Swift Testing to unit test the package. I was hoping to hear from someone who had actually done this already. I'm not sure what you're trying to do there. I do have an app that can operate both normally and on the command line. So I can verify that it does work. But unless you have very specific requirements, and someone paying your bills for you, stay far away from any kind of command line tool on the Mac. The command line is a radically different environment and is wholly unsuitable for testing a normal app. If you want to do unit testing, I guess that's fine. You can use the Xcode debugger too. Just
Topic: UI Frameworks SubTopic: SwiftUI Tags:
4d
Xcode always enabling default package traits
Trying out the new package trait support in Xcode 26.4 and it seems like the default traits for the package are being enabled even when explicitly set to disabled. At first I thought it was something wonky in the Xcode UI around the new support for traits. I've been able to replicate the issue with just two Swift packages, so no Xcode UI for setting the traits. Feature package // swift-tools-version: 6.3 import PackageDescription let package = Package( name: MyAwesomeFeature, platforms: [ .macOS(.v26) ], products: [ .library( name: MyAwesomeFeature, targets: [MyAwesomeFeature] ) ], traits: [ .trait(name: SomeBetaFeature), .default(enabledTraits: [SomeBetaFeature]), ], targets: [ .target( name: MyAwesomeFeature ), ], swiftLanguageModes: [.v6] ) For the sake of testing I've given it a simple object that just prints if the trait is enabled Inside MyAwesomeFeature public struct SomeObject { func printTraitStatus() { #if SomeBetaFeature print(Beta feature enabled) #else print(Beta featur
1
0
96
4d
Reply to Xcode now hangs; SDKs are "status unavailable"
And today Xcode's simulators are all unavailable again! I woke up my machine after it went to sleep overnight, and Xcode seemed happy and showed all the simulators. So then I decided to reboot the machine just to make sure, and now Xcode is showing everything as Status unavailable again, and all of the previously downloaded runtimes are gone. And xcrun simctl list just hangs, requiring a Ctrl-C to kill it. To anyone from Apple who is listening ... stop cramming AI slop features into everything and focus on fixing the bugs! This is unacceptable.
4d
DeviceActivityMonitor intervalDidEnd not firing for non-repeating timed unlock
I’m building an iOS app that uses FamilyControls + ManagedSettings + DeviceActivity. Goal: temporarily “unlock” a shielded app for N minutes, then automatically re-apply the shield when the timer expires. What I do: In the main app, when user picks an expiry (e.g. 15 min, 30 min). I start a non-repeating DeviceActivity schedule and remove the app’s ApplicationToken from ManagedSettingsStore().shield.applications. I also store activeUnlockBundleID etc. in an App Group so the DeviceActivityMonitor extension can re-lock at the end. Expected: DeviceActivityMonitor.intervalDidEnd(for:) is invoked when the non-repeating interval ends, and I re-add the token to the shield set. Actual: The app does not re-lock when the interval expires. I added OS logs as well as “debug local notifications” from the DeviceActivityMonitor extension in: init() intervalDidStart intervalDidEnd eventDidReachThreshold None of these logs or notifications ever appear, which suggests the extension is never invoked (or cannot schedule local no
Replies
0
Boosts
0
Views
57
Activity
2d
Notarization stuck "In Progress" — both DMG and ZIP, Electron app, 5+ attempts
All notarization submissions remain stuck In Progress and never complete. Tested both DMG and ZIP formats — same result. This has been consistent across 5+ attempts on March 29, 2026. App: Electron desktop app (arm64), signed with Developer ID Application, hardened runtime enabled, secure timestamp present. DMG submissions (all stuck): 568cc9c3-e711-41ba-99ce-6af5a1860ae9 (10 min timeout) e0a345c3-ddf8-4771-bdda-e0bc133ff723 (20 min timeout) 6757e5a9-d95b-45b3-95d5-41cb23384bea (20 min timeout) ZIP submission (.app bundle via ditto, ~207MB): Also stuck In Progress for 10+ minutes notarytool log returns Submission log is not yet available for all submissions. Developer ID Notary Service shows Available on System Status page. Environment: macOS GitHub Actions runner (macos-latest), latest Xcode, xcrun notarytool. Seeing similar reports from other developers this week. Is there a known service issue?
Replies
1
Boosts
0
Views
141
Activity
2d
Reply to ‌Xcode26-built apps cannot run on iPhone 6 or earlier devices‌
Thank you for the post. I recommend reviewing the Xcode system requirements for the target listed below. Link to Xcode System Requirements The device support section will provide you with the supported iOS versions. You can view all the versions of Xcode by expanding the “Other Xcode versions” tab. Enables the download of the Xcode version tailored to the desired iOS platform, accessible directly from the developer’s website. Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2d
Reply to Xcode 26.3 Claude Agent — 401 Invalid Bearer Token on Intel Mac (FB22141224)
Update: After extensive investigation I have identified what appears to be the root cause of the 401 Invalid Bearer Token error on my Intel Mac, and I want to share the findings in case they help others reporting similar issues on M1 and M4 machines. WHAT I FOUND (Intel Mac - x86_64): The Claude Agent binary that Xcode downloads is the darwin-arm64 build regardless of host architecture. On my Intel Mac this binary physically cannot execute, which fails silently and surfaces as a 401 error. Confirmed via terminal: file ~/Library/Developer/Xcode/CodingAssistant/Agents/claude/2.1.14/claude Returns: Mach-O 64-bit executable arm64 — wrong for Intel Mac The IDEChatClaudeCodeVersion preference is hardcoded to the ARM64 download URL: defaults read com.apple.dt.Xcode IDEChatClaudeCodeVersion Returns: darwin-arm64 URL regardless of CPU architecture We also confirmed the darwin-x64 binary exists in Anthropic's distribution bucket and runs correctly on Intel — both in the terminal and as a standalone bi
Replies
Boosts
Views
Activity
2d
NavigationLink selection in DisclosureGroup not working with .draggable modifier
NavigationLink selection in DisclosureGroup not working with .draggable modifier This was recently also posted here: https://stackoverflow.com/questions/79914290/ I am playing around with a tree data structure with folders and entries.I would like to add dragging of entries and folders between folders, using .draggable and dropDestination. In my current code, dragging works, but selection of entries no longer works, except if I click outside of the Text If I comment out .draggable(subfolder.name) in func FolderRow(), selection works as expected. How can I make sure both selection and drag and drop works for both folders and entries? I also tried using Transferable and Codable, but I get the same result. Here is an MRE: import SwiftData import SwiftUI @Model final class Folder { @Attribute(.unique) var name: String // Parent var parentFolder: Folder? // Child folders @Relationship(deleteRule: .cascade, inverse: Folder.parentFolder) var subfolders: [Folder] = [] // Leaf entries @Relationship(deleteRule
Topic: UI Frameworks SubTopic: SwiftUI
Replies
1
Boosts
0
Views
161
Activity
3d
Xcode 26.4 is missing the documentation for Foundation
Upgraded to Tahoe 26.4 and Xcode 26.4 and realized Xcode is missing the documentation for Foundation. Occasionally, if other (not yet missing) documentation references a Foundation entity, such as a type, clicking on it may open in a web browser pointing to the externally hosted Apple documentation. Anyone else experiencing this or have a workaround (perhaps the documentation files are on disk but were somehow lost / disconnected from the Xcode doc browser)? I checked the release notes for 26.4 and for 26.3 but did not find a mention of anything like that. Filed an issue with Apple, please do too if you are affected so hopefully it will see some love and lead to restoring the documentation. Edited: found some possibly related files in my ~/Library and the newer version v302 (26.4 related, I think, is considerably smaller): du -sh ~/Library/Developer/Xcode/DocumentationCache/* | awk -F/ '{print $NF t $1}' v296 1.0G v302 507M
Replies
5
Boosts
0
Views
151
Activity
3d
Reply to iCloud Sync not working with iPhone, works fine for Mac.
I’d like a robust dev environment for this. I’m not confident cksyncengine works for sandbox users. I’m not confident cksyncengine works in Xcode simulators I’m not confident cksyncengine works in development as opposed to production iCloud. Without this confidence it’s difficult to set-up, difficult to test and difficult reporting bugs.
Replies
Boosts
Views
Activity
3d
Reply to ‌Xcode26-built apps cannot run on iPhone 6 or earlier devices‌
We are experiencing similar issues on an iPad Air running iOS 12.5.8. Building with Xcode 26.4 causes our app deployment from TestFlight to crash on startup without any logs. The same app with minor code changes was built a week ago with Xcode 26.3 and deployment from TestFlight was successful on the same iPad.
Replies
Boosts
Views
Activity
3d
Reply to 26.4 beta and RC versions are unable to be created on anything but 26.4 beta host OS
I confirm that installing the Xcode.app/Contents/Resources/Packages/MobileDevice.pkg package of Xcode 26.4 (with the UI) on macOS 15.7.5 fix the installation problem of macOS 26.4 in VirtualBuddy.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
3d
Reply to Xcode now hangs; SDKs are "status unavailable"
Last post ... I promise ... When I reinstalled Xcode 26.4 again after going through all of the above shenanigans, I chose to NOT install the 26.x line of simulators, nor the Predictive Code Completion Model. As before, Xcode downloaded and installed older simulators anyway, but left the 26.x options uninstalled with their Get buttons primed and ready. I closed down Xcode and did some other stuff. After an hour I launched Xcode to check on things, opened Settings and, lo and behold, the iOS 26.4 and watchOS 26.4 simulators were showing as installed under the Platform Support section of the Components. What is going on? It's as if Xcode is hallucinating.
Replies
Boosts
Views
Activity
4d
Reply to Xcode 26.4: Regressions in Intelligence features
Awhile back I used OpenAi for intelligence, though recently switched to using Anthropic Claude. Now, when launching Xcode 26.4 I am prodded with a prompt stating Codex is not installed. Get Codex to resume the conversation. In my Xcode Settings I have ChatGPT in Xcode switched off. Likewise I have not downloaded the Codex Agent - the Get button appears which I ignore. In my Xcode Settings I have also signed into my Anthropic account, i.e. the Sign Out button is showing. It appears I am completely unable to use Claude for intelligence unless I download OpenAI Codex - though other users have done this, and nothing works following. This release appears severely broken. It would be easiest and best to revert to 26.3 to allow developers continue development.
Replies
Boosts
Views
Activity
4d
Reply to Xcode now hangs; SDKs are "status unavailable"
I'm now wondering if this is a macOS 26.4 issue. I clean everything out again, reinstalled Xcode Xcode 26.3 (17C529), did the simulator updates (and waited for Xcode to stabilize its other downloads), rebooted, and all the simulators it had installed were in status unavailable state again. How could anybody at Apple not have encountered this, and why was it released to the public?
Replies
Boosts
Views
Activity
4d
Reply to Localization in Swift macOS console Apps.
by console, I am referring to a command line tool. Yes. I realize that. But use of the word console is triggering. It's better to say Terminal or command-line to minimize the distress of your fellow developer. My intention was to use the command line tool to test a package I am working on, as the eventual target will be a window app, I may abandon my efforts to localize my command line tool. I am using Swift Testing to unit test the package. I was hoping to hear from someone who had actually done this already. I'm not sure what you're trying to do there. I do have an app that can operate both normally and on the command line. So I can verify that it does work. But unless you have very specific requirements, and someone paying your bills for you, stay far away from any kind of command line tool on the Mac. The command line is a radically different environment and is wholly unsuitable for testing a normal app. If you want to do unit testing, I guess that's fine. You can use the Xcode debugger too. Just
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
4d
Xcode always enabling default package traits
Trying out the new package trait support in Xcode 26.4 and it seems like the default traits for the package are being enabled even when explicitly set to disabled. At first I thought it was something wonky in the Xcode UI around the new support for traits. I've been able to replicate the issue with just two Swift packages, so no Xcode UI for setting the traits. Feature package // swift-tools-version: 6.3 import PackageDescription let package = Package( name: MyAwesomeFeature, platforms: [ .macOS(.v26) ], products: [ .library( name: MyAwesomeFeature, targets: [MyAwesomeFeature] ) ], traits: [ .trait(name: SomeBetaFeature), .default(enabledTraits: [SomeBetaFeature]), ], targets: [ .target( name: MyAwesomeFeature ), ], swiftLanguageModes: [.v6] ) For the sake of testing I've given it a simple object that just prints if the trait is enabled Inside MyAwesomeFeature public struct SomeObject { func printTraitStatus() { #if SomeBetaFeature print(Beta feature enabled) #else print(Beta featur
Replies
1
Boosts
0
Views
96
Activity
4d
Reply to Xcode now hangs; SDKs are "status unavailable"
And today Xcode's simulators are all unavailable again! I woke up my machine after it went to sleep overnight, and Xcode seemed happy and showed all the simulators. So then I decided to reboot the machine just to make sure, and now Xcode is showing everything as Status unavailable again, and all of the previously downloaded runtimes are gone. And xcrun simctl list just hangs, requiring a Ctrl-C to kill it. To anyone from Apple who is listening ... stop cramming AI slop features into everything and focus on fixing the bugs! This is unacceptable.
Replies
Boosts
Views
Activity
4d