Search results for

“Xcode”

93,874 results found

Post

Replies

Boosts

Views

Activity

DeviceActivityMonitor extension rejected by App Store Connect validator — NSExtensionPointIdentifier "com.apple.deviceactivity.monitor" invalid (IrisAPI -19241)
Hi everyone, I'm building an iOS app that uses a DeviceActivityMonitor app extension as part of the Screen Time / Family Controls API. Every time I try to upload my IPA to App Store Connect, the validation fails with this error: Invalid Info.plist value. The value of the NSExtensionPointIdentifier key, com.apple.deviceactivity.monitor, in the Info.plist of 'Alexandria.app/PlugIns/AlexandriaActivityMonitor.appex' is invalid. Error Domain=IrisAPI Code=-19241, iris-code=STATE_ERROR.VALIDATION_ERROR What I have verified (everything looks correct): NSExtensionPointIdentifier = com.apple.deviceactivity.monitor NSExtensionPrincipalClass = AlexandriaActivityMonitor.AlexandriaActivityMonitorExtension (correctly resolved in the compiled binary, verified with plutil -p) The Swift class correctly subclasses DeviceActivityMonitor CFBundleShortVersionString matches the main app Both the main app and extension provisioning profiles explicitly contain com.apple.developer.family-controls = true (verified by inspecting embedde
3
0
140
3d
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
3d
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.
3d
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
3d
Xcode 26.3 Claude Agent — 401 Invalid Bearer Token on Intel Mac (FB22141224)
I've been investigating a persistent 401 Invalid Bearer Token error with Claude Agent in Xcode 26.3 on an Intel Core i9 Mac and wanted to share my findings here in case others are affected. ENVIRONMENT Hardware: Intel Core i9 (x86_64) Xcode: 26.3 (17C529) macOS: 26.3 (25D125) THE ISSUE Claude Agent fails with Failed to authenticate. API Error: 401 - Invalid bearer token on every prompt, despite the account showing as Signed In under Settings → Intelligence. The error persists after signing out and back in, and the token is confirmed valid and unexpired in Keychain. WHAT WORKS Claude Code in Terminal works perfectly on the same machine with the same credentials The basic Claude Sonnet 4.5 coding assistant in Xcode works fine Only Claude Agent is affected ROOT CAUSE HYPOTHESIS Xcode appears to be installing an ARM64 Claude binary on Intel Macs silently, with no warning or fallback. This binary likely fails to execute on x86_64 hardware and that failure is being misreported up
4
0
248
3d
26.4 beta and RC versions are unable to be created on anything but 26.4 beta host OS
We're trying to create 26.4 beta and RC VMs on 15.x and 26.3 host OS' without success. We see Tue Mar 17 17:27:36 40 anka.log (install) 45803: failed to install macOS: Error Domain=VZErrorDomain Code=10006 Installation requires a software update. UserInfo={NSLocalizedFailure=A software update is required to complete the installation., NSLocalizedFailureReason=Installation requires a software update.} Yet, if we create it the same way on 26.4 beta host OS, it works. We've tried the usual tricks of installing latest Xcode and preparing it (accepting license, etc). But, they don't work on 26.3 and 15.x. What's the trick to get the creation of 26.4 to work on <= 26.3 host OS?
17
0
610
4d
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
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 extension rejected by App Store Connect validator — NSExtensionPointIdentifier "com.apple.deviceactivity.monitor" invalid (IrisAPI -19241)
Hi everyone, I'm building an iOS app that uses a DeviceActivityMonitor app extension as part of the Screen Time / Family Controls API. Every time I try to upload my IPA to App Store Connect, the validation fails with this error: Invalid Info.plist value. The value of the NSExtensionPointIdentifier key, com.apple.deviceactivity.monitor, in the Info.plist of 'Alexandria.app/PlugIns/AlexandriaActivityMonitor.appex' is invalid. Error Domain=IrisAPI Code=-19241, iris-code=STATE_ERROR.VALIDATION_ERROR What I have verified (everything looks correct): NSExtensionPointIdentifier = com.apple.deviceactivity.monitor NSExtensionPrincipalClass = AlexandriaActivityMonitor.AlexandriaActivityMonitorExtension (correctly resolved in the compiled binary, verified with plutil -p) The Swift class correctly subclasses DeviceActivityMonitor CFBundleShortVersionString matches the main app Both the main app and extension provisioning profiles explicitly contain com.apple.developer.family-controls = true (verified by inspecting embedde
Replies
3
Boosts
0
Views
140
Activity
3d
Reply to Xcode always enabling default package traits
I'll have to spend a little more time playing around to properly isolate things but it looks like this might be related to it being an Xcode workspace with the two packages. If I open just the executable package in Xcode everything works as expected.
Replies
Boosts
Views
Activity
3d
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
3d
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
3d
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
3d
Xcode 26.3 Claude Agent — 401 Invalid Bearer Token on Intel Mac (FB22141224)
I've been investigating a persistent 401 Invalid Bearer Token error with Claude Agent in Xcode 26.3 on an Intel Core i9 Mac and wanted to share my findings here in case others are affected. ENVIRONMENT Hardware: Intel Core i9 (x86_64) Xcode: 26.3 (17C529) macOS: 26.3 (25D125) THE ISSUE Claude Agent fails with Failed to authenticate. API Error: 401 - Invalid bearer token on every prompt, despite the account showing as Signed In under Settings → Intelligence. The error persists after signing out and back in, and the token is confirmed valid and unexpired in Keychain. WHAT WORKS Claude Code in Terminal works perfectly on the same machine with the same credentials The basic Claude Sonnet 4.5 coding assistant in Xcode works fine Only Claude Agent is affected ROOT CAUSE HYPOTHESIS Xcode appears to be installing an ARM64 Claude binary on Intel Macs silently, with no warning or fallback. This binary likely fails to execute on x86_64 hardware and that failure is being misreported up
Replies
4
Boosts
0
Views
248
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
26.4 beta and RC versions are unable to be created on anything but 26.4 beta host OS
We're trying to create 26.4 beta and RC VMs on 15.x and 26.3 host OS' without success. We see Tue Mar 17 17:27:36 40 anka.log (install) 45803: failed to install macOS: Error Domain=VZErrorDomain Code=10006 Installation requires a software update. UserInfo={NSLocalizedFailure=A software update is required to complete the installation., NSLocalizedFailureReason=Installation requires a software update.} Yet, if we create it the same way on 26.4 beta host OS, it works. We've tried the usual tricks of installing latest Xcode and preparing it (accepting license, etc). But, they don't work on 26.3 and 15.x. What's the trick to get the creation of 26.4 to work on <= 26.3 host OS?
Replies
17
Boosts
0
Views
610
Activity
4d
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
4d
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
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