Search results for

“xcode github”

96,032 results found

Post

Replies

Boosts

Views

Activity

Previews for SwiftUI views in Packages don't work in Xcode 26.4
I have an iOS project based on SwiftUI in which almost all code is organised in Packages. With Xcode 26.2 and 26.3, I can preview all SwiftUI views without issues. With Xcode 26.4, the same previews don't work, in the canvas appears this error message: Cannot preview in this file. Could not find target description for “TaskListView.swift”. The explanation is: The list of source files that produce object files did not contain this file to be previewed. Check to make sure it is not excluded using the EXCLUDED_SOURCE_FILE_NAMES build setting. If I add a SwiftUI view to the main project files (not in a package), the preview works as expected. Is it an Xcode 26.4 regression? Or do I need to modify some configuration file?
6
0
429
2w
DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi I am trying to implement a minimal DeviceActivityReport extension. Setup: iOS app with FamilyControls authorization (status = approved) DeviceActivityReport displayed in SwiftUI Report extension embedded in PlugIns Correct NSExtensionPointIdentifier: com.apple.deviceactivityui.report-extension No NSExtensionPrincipalClass or storyboard Entitlements: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage The app installs and runs correctly. Authorization is granted. However, the extension is never loaded: No logs from the extension (init/body/makeConfiguration never called) Console shows: Failed to discover the client's extension: DeviceActivityReportService... ClientError Code=2 Environment: Xcode 16.2 iOS device running iOS 18.x (latest available) The .appex is correctly embedded and signed. Question: Is there a known issue with DeviceActivityReport extensions not being discovered at runtime with this setup? Is additional configuration requ
2
0
178
2w
Reply to DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi Thanks a lot for your previous hint — it helped me fix the bundle setup. I now have the following confirmed: The report extension is correctly embedded under: Work4Fun.app/Extensions/UsageReportExtension.appex Info.plist uses: EXAppExtensionAttributes → EXExtensionPointIdentifier = com.apple.deviceactivityui.report-extension Entitlements include: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage App Group The compiled binary clearly contains my code (UsageReportExtension.init, makeConfiguration, etc.) However, at runtime: DeviceActivityReport is instantiated (I see my view appear) System logs show: Plugin query method called But the extension is never actually executed: no init no makeConfiguration no output file written in App Group I also tried: deleting the app rebooting the device reinstalling from Xcode re-authorizing Screen Time → same result So it looks like: → iOS resolves the extension, but does not launch it Have you seen this behavior before?
Topic: App & System Services SubTopic: General Tags:
2w
FB22543589 - Case ID: 102872835864 - TESTFLIGHT: The requested app is not available or does not exist
I'm experiencing a persistent issue where my app uploads successfully to TestFlight and appears in App Store Connect, but internal testers (including myself) receive the following error when attempting to install: Could not install xxxxxxxxx. The requested app is not available or doesn't exist. What works: The build archives and exports successfully via Xcode (local build, Release configuration) The IPA uploads to App Store Connect without errors via eas submit The build appears in TestFlight and passes processing I can add the build to my Internal Testing group Testers receive the TestFlight notification and can see the app What fails: When any tester taps Install or Update, the download begins briefly, then fails with the not available or doesn't exist error This affects all internal testers on the account, not just one device Troubleshooting already completed: Verified code signing is correct: Release configuration uses CODE_SIGN_STYLE = Manual, CODE_SIGN_IDENTITY = iPhone Distribution, with a val
3
0
467
2w
UIKit.ButtonBarButtonVisualProvider not key value coding-compliant for the key _titleButton
After updating to Xcode 26 my XCUITests are now failing as during execution exceptions are being raised and caught by my catch all breakpoint These exceptions are only raised during testing, and seem to be referencing some private internal property. It happens when trying to tap a button based off an accessibilityIdentifier e.g. accessibilityIdentifier = tertiary-button ... ... app.buttons[tertiary-button].tap() The full error is: Thread 1: [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key _titleButton. Anyone found any workarounds or solutions? I need to get my tests running on the liquid glass UI
3
0
680
2w
Reply to Xcode Command Line Tools update not wanted, but persists
Here is what happened: xxx/ % sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Password: xxx/ % sudo rm -rf /Library/Caches/com.apple.SoftwareUpdate/* sudo killall -9 softwareupdated zsh: no matches found: /Library/Caches/com.apple.SoftwareUpdate/* killall: warning: kill -kill 555: Operation not permitted xxx/ % softwareupdate -l Software Update Tool Finding available software Software Update found the following new or updated software: Label: Command Line Tools for Xcode 26.4-26.4.1 Title: Command Line Tools for Xcode 26.4, Version: 26.4.1, Size: 920104KiB, Recommended: YES, xxx/ %
2w
LowLevelInstanceData & animation
AppleOS 26 introduces LowLevelInstanceData that can reduce CPU draw calls significantly by instancing. However, I have noticed trouble with animating each individual instance. As I wanted low-level control, I'm using a custom system and LowLevelInstanceData.replace(using:) to update the transform each frame. The update closure itself is extremely efficient (Xcode Instruments reports nearly no cost). But I noticed extremely high runloop time, reach around 20ms. Time Profiler shows that the CPU is blocked by kernel.release.t6401. I think it is caused by synchronization between CPU and GPU, however, as I am already using a MTLCommandBuffer to coordinate it, I don't understand why I am still seeing large CPU time.
3
0
698
2w
Accessibility Inspector Bugs
Hello, i'm currently working on improving accessibility in my app using the built-in Xcode tool, Accessibility Inspector. For the most part, it works well — it correctly displays warnings about missing button labels or insufficient touch target sizes. However, it does not seem to handle certain cases properly, particularly dynamic fonts. Here is the approach I’m using for dynamic fonts: static func getDynamic(font: FontType, size: CGFloat, textStyle: UIFont.TextStyle) -> UIFont { let customFont = UIFont(name: font.rawValue, size: size)! return UIFontMetrics(forTextStyle: textStyle).scaledFont(for: customFont) } label.adjustsFontForContentSizeCategory = true My labels are configured with: numberOfLines = 0 no fixed height constraints This allows them to expand as needed without clipping. I have tested this visually on multiple devices, and everything appears to work correctly — fonts scale as expected, and text is not truncated. However, Accessibility Inspector still reports issues related to dynam
2
0
1.7k
1w
Reply to Xcode Command Line Tools update not wanted, but persists
@BillInPoint Those are the official documentation steps that fixed the issue. We should investigate why isn't working for you. May I ask you to do some experimentation for me before we file a bug? I’m not positive as I did not want to test it in any of my computers, but I believe you can do this by running a few commands by opening the terminal and run the following command to delete the hidden file that triggers the update prompt from this documentation https://discussions.apple.com/thread/254465907?sortBy=rank sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Sometimes the system is still internally pointing to the deleted developer directory. Resetting it ensures macOS knows the tools are truly gone from https://discussions.apple.com/thread/253466183?sortBy=rank sudo xcode-select --reset Next, clear the cache where macOS stores pending software updates, and force the update daemon to restart from https://discussions.apple.com/thread/253598128?sortBy=rank sudo rm -rf /Libra
2w
Reply to ITMS-90429: Invalid Swift Support on libswiftCompatibilitySpan.dylib after update to Xcode 26.4.1
You didn't miss a think and it seems you are using the latest Xcode and still producing the ITMS-90429 error without moving the framework. Very weird. But we should get to the bottom of the issue. May I ask you to file a bug? nce you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Albert
  Worldwide Developer Relations.
2w
Orphaned 9GB Simulator Runtime in /System/Library/AssetsV2 - Cannot Delete (SIP protected)
I have an orphaned asset folder taking up 9.13GB located at: /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime/c0d3fd05106683ba0b3680d4d1afec65f098d700.asset It contains SimulatorRuntimeAsset version 18.5 (Build 22F77). Active Version: My current Xcode setup is using version 26.2 (Build 23C54). I checked the plist files in the directory and found what seems to be the cause of the issue: The Never Collected Flag: The Info.plist inside the orphaned asset folder explicitly sets the garbage collection behavior to NeverCollected: __AssetDefaultGarbageCollectionBehavior NeverCollected The Catalog Mismatch: The master catalog file (com_apple_MobileAsset_iOSSimulatorRuntime.xml) in the parent directory only lists the new version (26.2). Because the old version (18.5) is missing from this XML, Xcode and mobileassetd seem to have lost track of it entirely. What I Have Tried (All Failed) Xcode Components: The version 18.5 does not appear in Settings -> Components, so I cann
17
0
1.3k
2w
Reply to Distributing In House Apps via my OWN website
[quote='885450022, AmbritSoftware3, /thread/823398?answerId=885450022#885450022, /profile/AmbritSoftware3'] Anyway I am targeting iPad, iPhone and MAC. [/quote] Let’s deal with the Mac first. macOS supports direct distribution using Developer ID signing and notarisation. Every paid developer team has access to that. I have a lot of links to docs and so on in the Code Signing Resources posts, and the other Resources posts that it links to. However, if you’re using Xcode to build an app the process is really simple: Chose Product > Archive to create a release build of your app. In the Xcode organiser, click Distribute App and then follow the Direct Distribution workflow. iOS and its various child platforms have a very different story: Enterprise teams, members of the Apple Developer Enterprise Program, can use In-House (Enterprise) distribution. There’s no equivalent for Individual and Organization teams. For those teams the options are either limited to a specific set of devices (Developer
2w
Previews for SwiftUI views in Packages don't work in Xcode 26.4
I have an iOS project based on SwiftUI in which almost all code is organised in Packages. With Xcode 26.2 and 26.3, I can preview all SwiftUI views without issues. With Xcode 26.4, the same previews don't work, in the canvas appears this error message: Cannot preview in this file. Could not find target description for “TaskListView.swift”. The explanation is: The list of source files that produce object files did not contain this file to be previewed. Check to make sure it is not excluded using the EXCLUDED_SOURCE_FILE_NAMES build setting. If I add a SwiftUI view to the main project files (not in a package), the preview works as expected. Is it an Xcode 26.4 regression? Or do I need to modify some configuration file?
Replies
6
Boosts
0
Views
429
Activity
2w
DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi I am trying to implement a minimal DeviceActivityReport extension. Setup: iOS app with FamilyControls authorization (status = approved) DeviceActivityReport displayed in SwiftUI Report extension embedded in PlugIns Correct NSExtensionPointIdentifier: com.apple.deviceactivityui.report-extension No NSExtensionPrincipalClass or storyboard Entitlements: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage The app installs and runs correctly. Authorization is granted. However, the extension is never loaded: No logs from the extension (init/body/makeConfiguration never called) Console shows: Failed to discover the client's extension: DeviceActivityReportService... ClientError Code=2 Environment: Xcode 16.2 iOS device running iOS 18.x (latest available) The .appex is correctly embedded and signed. Question: Is there a known issue with DeviceActivityReport extensions not being discovered at runtime with this setup? Is additional configuration requ
Replies
2
Boosts
0
Views
178
Activity
2w
Reply to DeviceActivityReport extension not discovered at runtime (ClientError Code=2)
Hi Thanks a lot for your previous hint — it helped me fix the bundle setup. I now have the following confirmed: The report extension is correctly embedded under: Work4Fun.app/Extensions/UsageReportExtension.appex Info.plist uses: EXAppExtensionAttributes → EXExtensionPointIdentifier = com.apple.deviceactivityui.report-extension Entitlements include: com.apple.developer.family-controls com.apple.developer.family-controls.app-and-website-usage App Group The compiled binary clearly contains my code (UsageReportExtension.init, makeConfiguration, etc.) However, at runtime: DeviceActivityReport is instantiated (I see my view appear) System logs show: Plugin query method called But the extension is never actually executed: no init no makeConfiguration no output file written in App Group I also tried: deleting the app rebooting the device reinstalling from Xcode re-authorizing Screen Time → same result So it looks like: → iOS resolves the extension, but does not launch it Have you seen this behavior before?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
2w
FB22543589 - Case ID: 102872835864 - TESTFLIGHT: The requested app is not available or does not exist
I'm experiencing a persistent issue where my app uploads successfully to TestFlight and appears in App Store Connect, but internal testers (including myself) receive the following error when attempting to install: Could not install xxxxxxxxx. The requested app is not available or doesn't exist. What works: The build archives and exports successfully via Xcode (local build, Release configuration) The IPA uploads to App Store Connect without errors via eas submit The build appears in TestFlight and passes processing I can add the build to my Internal Testing group Testers receive the TestFlight notification and can see the app What fails: When any tester taps Install or Update, the download begins briefly, then fails with the not available or doesn't exist error This affects all internal testers on the account, not just one device Troubleshooting already completed: Verified code signing is correct: Release configuration uses CODE_SIGN_STYLE = Manual, CODE_SIGN_IDENTITY = iPhone Distribution, with a val
Replies
3
Boosts
0
Views
467
Activity
2w
UIKit.ButtonBarButtonVisualProvider not key value coding-compliant for the key _titleButton
After updating to Xcode 26 my XCUITests are now failing as during execution exceptions are being raised and caught by my catch all breakpoint These exceptions are only raised during testing, and seem to be referencing some private internal property. It happens when trying to tap a button based off an accessibilityIdentifier e.g. accessibilityIdentifier = tertiary-button ... ... app.buttons[tertiary-button].tap() The full error is: Thread 1: [ valueForUndefinedKey:]: this class is not key value coding-compliant for the key _titleButton. Anyone found any workarounds or solutions? I need to get my tests running on the liquid glass UI
Replies
3
Boosts
0
Views
680
Activity
2w
Reply to Xcode Command Line Tools update not wanted, but persists
Here is what happened: xxx/ % sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Password: xxx/ % sudo rm -rf /Library/Caches/com.apple.SoftwareUpdate/* sudo killall -9 softwareupdated zsh: no matches found: /Library/Caches/com.apple.SoftwareUpdate/* killall: warning: kill -kill 555: Operation not permitted xxx/ % softwareupdate -l Software Update Tool Finding available software Software Update found the following new or updated software: Label: Command Line Tools for Xcode 26.4-26.4.1 Title: Command Line Tools for Xcode 26.4, Version: 26.4.1, Size: 920104KiB, Recommended: YES, xxx/ %
Replies
Boosts
Views
Activity
2w
LowLevelInstanceData & animation
AppleOS 26 introduces LowLevelInstanceData that can reduce CPU draw calls significantly by instancing. However, I have noticed trouble with animating each individual instance. As I wanted low-level control, I'm using a custom system and LowLevelInstanceData.replace(using:) to update the transform each frame. The update closure itself is extremely efficient (Xcode Instruments reports nearly no cost). But I noticed extremely high runloop time, reach around 20ms. Time Profiler shows that the CPU is blocked by kernel.release.t6401. I think it is caused by synchronization between CPU and GPU, however, as I am already using a MTLCommandBuffer to coordinate it, I don't understand why I am still seeing large CPU time.
Replies
3
Boosts
0
Views
698
Activity
2w
Accessibility Inspector Bugs
Hello, i'm currently working on improving accessibility in my app using the built-in Xcode tool, Accessibility Inspector. For the most part, it works well — it correctly displays warnings about missing button labels or insufficient touch target sizes. However, it does not seem to handle certain cases properly, particularly dynamic fonts. Here is the approach I’m using for dynamic fonts: static func getDynamic(font: FontType, size: CGFloat, textStyle: UIFont.TextStyle) -> UIFont { let customFont = UIFont(name: font.rawValue, size: size)! return UIFontMetrics(forTextStyle: textStyle).scaledFont(for: customFont) } label.adjustsFontForContentSizeCategory = true My labels are configured with: numberOfLines = 0 no fixed height constraints This allows them to expand as needed without clipping. I have tested this visually on multiple devices, and everything appears to work correctly — fonts scale as expected, and text is not truncated. However, Accessibility Inspector still reports issues related to dynam
Replies
2
Boosts
0
Views
1.7k
Activity
1w
Reply to Xcode Command Line Tools update not wanted, but persists
@BillInPoint Those are the official documentation steps that fixed the issue. We should investigate why isn't working for you. May I ask you to do some experimentation for me before we file a bug? I’m not positive as I did not want to test it in any of my computers, but I believe you can do this by running a few commands by opening the terminal and run the following command to delete the hidden file that triggers the update prompt from this documentation https://discussions.apple.com/thread/254465907?sortBy=rank sudo rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Sometimes the system is still internally pointing to the deleted developer directory. Resetting it ensures macOS knows the tools are truly gone from https://discussions.apple.com/thread/253466183?sortBy=rank sudo xcode-select --reset Next, clear the cache where macOS stores pending software updates, and force the update daemon to restart from https://discussions.apple.com/thread/253598128?sortBy=rank sudo rm -rf /Libra
Replies
Boosts
Views
Activity
2w
Reply to ITMS-90429: Invalid Swift Support on libswiftCompatibilitySpan.dylib after update to Xcode 26.4.1
You didn't miss a think and it seems you are using the latest Xcode and still producing the ITMS-90429 error without moving the framework. Very weird. But we should get to the bottom of the issue. May I ask you to file a bug? nce you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
2w
Reply to Does your Canvas in Xcode crash all the time due to AXRemoteElement-BackgroundFetch?
I'm seeing the crash in the iOS 26.4 preview canvas; the Xcode version doesn't matter. ❌ Xcode 26.4 / iOS 26.4 preview canvas ✅ Xcode 26.4 / iOS 26.3 preview canvas ❌ Xcode 26.3 / iOS 26.4 preview canvas ✅ Xcode 26.3 / iOS 26.3 preview canvas
Replies
Boosts
Views
Activity
2w
Reply to UIKit.ButtonBarButtonVisualProvider not key value coding-compliant for the key _titleButton
Same here... seems it started since Xcode 26.4 for me. Any update on this?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
2w
Orphaned 9GB Simulator Runtime in /System/Library/AssetsV2 - Cannot Delete (SIP protected)
I have an orphaned asset folder taking up 9.13GB located at: /System/Library/AssetsV2/com_apple_MobileAsset_iOSSimulatorRuntime/c0d3fd05106683ba0b3680d4d1afec65f098d700.asset It contains SimulatorRuntimeAsset version 18.5 (Build 22F77). Active Version: My current Xcode setup is using version 26.2 (Build 23C54). I checked the plist files in the directory and found what seems to be the cause of the issue: The Never Collected Flag: The Info.plist inside the orphaned asset folder explicitly sets the garbage collection behavior to NeverCollected: __AssetDefaultGarbageCollectionBehavior NeverCollected The Catalog Mismatch: The master catalog file (com_apple_MobileAsset_iOSSimulatorRuntime.xml) in the parent directory only lists the new version (26.2). Because the old version (18.5) is missing from this XML, Xcode and mobileassetd seem to have lost track of it entirely. What I Have Tried (All Failed) Xcode Components: The version 18.5 does not appear in Settings -> Components, so I cann
Replies
17
Boosts
0
Views
1.3k
Activity
2w
Reply to Distributing In House Apps via my OWN website
[quote='885450022, AmbritSoftware3, /thread/823398?answerId=885450022#885450022, /profile/AmbritSoftware3'] Anyway I am targeting iPad, iPhone and MAC. [/quote] Let’s deal with the Mac first. macOS supports direct distribution using Developer ID signing and notarisation. Every paid developer team has access to that. I have a lot of links to docs and so on in the Code Signing Resources posts, and the other Resources posts that it links to. However, if you’re using Xcode to build an app the process is really simple: Chose Product > Archive to create a release build of your app. In the Xcode organiser, click Distribute App and then follow the Direct Distribution workflow. iOS and its various child platforms have a very different story: Enterprise teams, members of the Apple Developer Enterprise Program, can use In-House (Enterprise) distribution. There’s no equivalent for Individual and Organization teams. For those teams the options are either limited to a specific set of devices (Developer
Replies
Boosts
Views
Activity
2w
Reply to Xcode 26.4 rc
Xcode 26.4.1 release, still have this problem.
Replies
Boosts
Views
Activity
2w