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

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

Suggestion for search in Xcode
Hi, I have two points regarding the search function. In other applications I use, it’s possible to highlight a word and then press CMD-F to have that word automatically populated into the search field. This doesn't work in Xcode, and it’s really annoying. Secondly, it bothers me that the two search fields—the one in the sidebar and the one above the editor window—are linked; specifically, when I clear one, the other disappears as well. They serve two different purposes and should remain separate. Christian
2
0
385
4d
Xcode 27, defaults to iOS 27 build
In process of creating an iOS app and installed Xcode 27, now when I add a simulator in the Device Hub the iOS version needs to be 27 or I get an incompatible version error. Also when I select the top app icon the tabs such as the build settings is not showing, only the non-modifiable text file. I'm sure the fix for both is simple but I need pointed in the right direction.
1
0
109
5d
Device Hub Lacking External Display Option
Since the XCode 27 came out with the device hub, I can't found the option "External Display"! This is outrageous, since I have an app that only works with a external display connected! This menu existed on the menu bar of the simulators, but since the simulators was replaced by the device hub, I can't debug or test my app anymore!
3
1
139
5d
Runaway DeviceHub/diskimagesiod CPU Usage (100%) and Broken Keyboard Shortcuts in Xcode 27 on macOS 27 (M1, 8GB RAM)
Hello everyone, I am experiencing a severe, workflow-breaking issue with the new Device Hub implementation in the latest stable release of Xcode 27 running on macOS 27. My development machine is an M1 MacBook Pro with 8GB RAM and a 512GB SSD.The simulator has become completely unusable, forcing a massive degradation in my development workflow. The Problem:100% CPU Consumption: When launching a simulator (iOS 27.0), the system instantly spikes to maximum processor usage. While DeviceHub.app spawns the window, the background processes diskimagesiod and CoreDeviceService relentlessly consume between 50% to 95% CPU each, even when the simulator is completely idle.Total Input Lockout / Broken Shortcuts: Absolutely no keyboard shortcuts pass through to the simulator window (e.g., standard development hooks or navigation). The simulator completely stops responding to touch inputs or hardware button clicks, getting stuck in a rigid runtime loop.Immediate Relief Upon Killing Process: The moment I manually force-terminate devicehub via Activity Monitor or Terminal, my overall system load instantly drops back down to a peaceful 2.48% CPU with ~94% idle.Underlying Error Logs:When launching the binary directly from the terminal via /Applications/Xcode.app/Contents/Applications/DeviceHub.app/Contents/MacOS/DeviceHub --booted, the console outputs a massive stream of critical class duplication conflicts between the native OS and private developer frameworks objc[4489]: Class ..._TTC12UniversalHID26TouchSensitiveButtonFilter is implemented in both /System/Library/PrivateFrameworks/UniversalHID.framework/Versions/A/UniversalHID (0x2ec5a4c8d) and /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/Frameworks/UniversalHID.framework/Versions/A/UniversalHID (0x105025580). One of the duplicates must be removed or renamed. objc[4489]: Class ..._TTC12UniversalHID15DigitizerFilter is implemented in both /System/Library/PrivateFrameworks/UniversalHID.framework/Versions/A/UniversalHID and /Library/Developer/PrivateFrameworks/CoreDevice.framework/... One of the duplicates must be removed or renamed. Impact:Because these private frameworks are deadlocking over registering duplicate input pointers for touch coordinates, scrolling handlers, and button filters, the core virtualization engine hangs.Wiping DerivedData, clearing out iOS DeviceSupport caches, and running xcrun simctl erase all do not resolve the issue. Because the standalone legacy Simulator.app has been entirely removed from /Contents/Developer/Applications/, there is currently no way to bypass this bugged DeviceHub implementation natively.On an 8GB M1 machine, this bug completely thermal-throttles the hardware and paralyzes the local testing pipeline. Is anyone else hitting this linkage deadlock on version 27, or is there a known hidden defaults write flag to decouple input filtering from the CoreDevice workspace loop? Any assistance or temporary patches from the engineering team would be highly appreciated.
0
0
53
5d
Xcode 27: CLLocationManager kCLErrorDomain Code=5
Dear Apple Developer Community, Our app monitors a user-defined region by using startMonitoring on an instance of CLLocationManager. While it works as intended on a real device, starting with Xcode 27, this method invocation always results in >locationManager ... monitoringDidFailFor< being called. The error code is always kCLErrorDomain Code=5 but this only occurs within iOS 27 simulators. It works perfectly in iOS 26 simulators. Additionally, CLLocationManager.isMonitoringAvailable(for: CLCircularRegion.self) always returns false on these iOS 27 simulators. This issue blocks parts of our automated system tests. Is it a bug or on purpose? Thank you in advance.
0
0
90
5d
Xcode 27 crashes on keystroke — CoreML predictive completion (MLSymbolPopularity) EXC_BAD_ACCESS on macOS 27.2 beta 1
Environment: Xcode 27.0 (27A266a), Mac App Store macOS 27.2 beta 1 (26B5086k) MacBook Pro M3 Max, 48 GB (Mac15,9) Xcode crashes 100% of the time the moment I start typing a new variable inside a struct in the source editor. Building, running and debugging all work fine — the crash only happens on keystroke in the editor. Crash log points to CoreML predictive code completion: EXC_BAD_ACCESS (SIGBUS) on thread MLSymbolPopularity.workQueue -> Espresso::inner_product_kernel_cpu::get_biases() -> CodeCompletionModel.init -> MLSymbolPopularity.loadModelIfNeeded So the Espresso/CoreML runtime in macOS 27.2 beta 1 crashes while loading the predictive-completion model. Tried, none fixed it: "Display code predictions" -> Never "Display code completions while typing" -> Manually defaults write com.apple.dt.Xcode IDEPredictiveCodeCompletionEnabled -bool NO Cleared DerivedData / Xcode caches Installed the full 2.25 GB model via Settings > Components (still crashes) Not in the beta 1 "Known Issues". Filed: FB24823899 (Core ML, with two .ips crash logs + repro steps). Anyone else seeing MLSymbolPopularity here?
4
4
626
5d
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": <key>__AssetDefaultGarbageCollectionBehavior</key> <string>NeverCollected</string> 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 cannot delete it via the GUI. Simctl: xcrun simctl list runtimes does not list this version. Running xcrun simctl runtime delete 22F77 fails with: "No runtime disk images or bundles found matching '22F77'." Manual Deletion: sudo rm -rf [path] fails with "Operation not permitted", presumably because /System/Library/AssetsV2 is SIP-protected. Third-party Tools: Apps like DevCleaner do not detect this runtime (likely because they only scan ~/Library or /Library, not /System/Library). Has anyone found a way to force the system (perhaps via mobileassetd or a specific xcrun flag) to re-evaluate this folder and respect a deletion request? I am trying to avoid booting into Recovery Mode just to delete a cache file. Any insights on how AssetsV2 handles these "orphaned" files would be appreciated.
27
16
8.5k
5d
0xe8008018 (The identity used to sign the executable is no longer valid.)
I created a new App project, I didn't write any my code, I just built it and install it to my iPhone, then I got the error as below: 无法安装“test” Domain: IXUserPresentableErrorDomain Code: 14 Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.X9zsVD/extracted/test.app : 0xe8008018 (The identity used to sign the executable is no longer valid.) Please ensure that the certificates used to sign your app have not expired. If this issue persists, please attach an IPA of your app when sending a report to Apple. User Info: { DVTErrorCreationDateKey = "2025-04-13 03:40:21 +0000"; IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker; } -- Failed to install the app on the device. Domain: com.apple.dt.CoreDeviceError Code: 3002 User Info: { NSURL = "file:///Users/ltf/Library/Developer/Xcode/DerivedData/test-fnnhrmtlclvfdnennxoorbywbuze/Build/Products/Debug-iphoneos/test.app"; } -- Can't install “test” Domain: IXUserPresentableErrorDomain Code: 14 Failure Reason: 无法安装此App,因为无法验证其完整性。 Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.X9zsVD/extracted/test.app : 0xe8008018 (The identity used to sign the executable is no longer valid.) -- Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.X9zsVD/extracted/test.app : 0xe8008018 (The identity used to sign the executable is no longer valid.) Domain: MIInstallerErrorDomain Code: 13 User Info: { FunctionName = "+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]"; LegacyErrorString = ApplicationVerificationFailed; LibMISErrorNumber = "-402620392"; SourceFileLine = 79; } -- Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { "device_identifier" = "00008120-001E51C011F9A01E"; "device_isCoreDevice" = 1; "device_isWireless" = 1; "device_model" = "iPhone15,5"; "device_osBuild" = "18.3.2 (22D82)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone15,5"; "dvt_coredevice_version" = "443.19"; "dvt_coresimulator_version" = "1010.10"; "dvt_mobiledevice_version" = "1784.120.2"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 2527; "operation_errorCode" = 14; "operation_errorDomain" = IXUserPresentableErrorDomain; "operation_errorWorker" = IDEInstallCoreDeviceWorker; "operation_name" = IDERunOperationWorkerGroup; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphoneos"; "param_diag_113575882_enable" = 0; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_guardMalloc_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_mtc_enable" = 1; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_enable" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 2; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 99; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_structuredConsoleMode" = 1; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphoneos18.4"; "sdk_osVersion" = "18.4"; "sdk_variant" = iphoneos; } -- System Information macOS Version 15.5 (Build 24F5042g) Xcode 16.3 (23785) (Build 16E140) Timestamp: 2025-04-13T11:40:21+08:00
5
0
1k
5d
StoreKit testing not working on iOS26.5 simulator
Hi, I'm trying to run our StoreKit unit tests with Xcode26.5 on an iOS26.5 simulator. Host computer has macOS26.5. All tests are failing and in the console I see logs such as [SKTestSession] Error saving configuration file: Error Domain=SKInternalErrorDomain Code=3 "(null)" [SKTestSession] Error deleting all transactions: Error Domain=SKInternalErrorDomain Code=3 "(null)" [SKTestSession] Error clearing overrides: Error Domain=SKInternalErrorDomain Code=3 "(null)" [SKTestSession] Error setting value to 1 for identifier 2 for jp.unext.mediaplayer: Error Domain=SKInternalErrorDomain Code=3 "(null)" And the simulator asks me to provide my AppleID. Tests have been broken since at least 26.4 The release notes claims that it has been fixed but not for me. https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-26_5-release-notes#StoreKit-Testing-in-Xcode Does anyone else have the same issue? Reported FB22774836 just in case.
8
11
1.3k
5d
Xcode plaforms/simulators sucking up storage space.
With the limitations on not being to install larger hard drives on all Macs these days, the built-in drives tend to fill up very quickly. One of the fastest ways my drive space disappears is the installed platforms in Xcode. Every month or two I have to go in and free up 80GB by removing all the old versions of installed platforms. I would REALLY love a first-party supported way to a) store these installed platforms on an external drive (I could not get a symlink to work properly), or b) a setting to automatically remove older platforms in the same major revision when a newer one is installed. Both my Mac mini and MacBook Pro would love this, especially in the days of SSD scarcity that we are in now.
1
0
73
6d
Xcode 27 How do we declare the accent color?
Hi guys In Xcode 27, we have to create the Assets Catalog file ourselves. This file is empty. The icon now is generated by Icon Composer, but how do you specify the accent color? I tried creating a Color set with the name AccentColor but didn't work. And look for options in the project settings but couldn't find any.
2
0
210
6d
iOS 27 Simulator: “Describe a Shortcut” stuck on “Preparing support”
I'm trying to test the new “Describe a Shortcut” feature in iOS 27 using an iPhone 17 Simulator. When I open Shortcuts and tap “Describe a Shortcut”, it stays on: “Preparing support for describe a shortcut” and the text field remains disabled. I cannot enter anything or create the shortcut. My setup: Mac: MacBook Pro macOS: 27 Xcode: 26.5 (17F42) Simulator: iPhone 17 iOS: 27 I also have a physical iPhone 14 Pro, but I understand that it doesn't support Apple Intelligence, so I'm trying to test this using the iPhone 17 Simulator. Do I need to enable/download anything for Apple Intelligence on the Mac or Simulator? Or is “Describe a Shortcut” currently unsupported/not working in the iOS 27 Simulator? Any guidance on the correct setup would be appreciated.
0
0
144
6d
27.1 Duo Simulator
Just download 27.1 and Device Hub 27.1 and unable to locate the iPhone Duo simulator. Please help what are the steps to get this? I have both Xcode 27 and Xcode 27.1 installed. Launched 27.1 does not have Duo sim and all test devices in providing incompatible... What are the exact steps for testing an existing app with compatibility with 27.1 iPhone Duo? Thank you.
5
2
3.6k
1w
Suggestion for search in Xcode
Hi, I have two points regarding the search function. In other applications I use, it’s possible to highlight a word and then press CMD-F to have that word automatically populated into the search field. This doesn't work in Xcode, and it’s really annoying. Secondly, it bothers me that the two search fields—the one in the sidebar and the one above the editor window—are linked; specifically, when I clear one, the other disappears as well. They serve two different purposes and should remain separate. Christian
Replies
2
Boosts
0
Views
385
Activity
4d
What happened to adding a new project, it's broken
The new changes to Xcode for adding a project are ridiculously frustrating. I know exactly what directory I want to put my project in, and exactly what kind of project I need. Why in the world is the new user interface so primitive and incapable of allowing experienced developers to add a new project?
Replies
3
Boosts
0
Views
703
Activity
4d
Xcode 27, defaults to iOS 27 build
In process of creating an iOS app and installed Xcode 27, now when I add a simulator in the Device Hub the iOS version needs to be 27 or I get an incompatible version error. Also when I select the top app icon the tabs such as the build settings is not showing, only the non-modifiable text file. I'm sure the fix for both is simple but I need pointed in the right direction.
Replies
1
Boosts
0
Views
109
Activity
5d
Device Hub Lacking External Display Option
Since the XCode 27 came out with the device hub, I can't found the option "External Display"! This is outrageous, since I have an app that only works with a external display connected! This menu existed on the menu bar of the simulators, but since the simulators was replaced by the device hub, I can't debug or test my app anymore!
Replies
3
Boosts
1
Views
139
Activity
5d
Device Hub I/O External Display
Where's the whole I/O menu? I need the External Display simulator to test my app, and for my surprise, Device Hub lack this whole menubar!
Replies
0
Boosts
1
Views
66
Activity
5d
Runaway DeviceHub/diskimagesiod CPU Usage (100%) and Broken Keyboard Shortcuts in Xcode 27 on macOS 27 (M1, 8GB RAM)
Hello everyone, I am experiencing a severe, workflow-breaking issue with the new Device Hub implementation in the latest stable release of Xcode 27 running on macOS 27. My development machine is an M1 MacBook Pro with 8GB RAM and a 512GB SSD.The simulator has become completely unusable, forcing a massive degradation in my development workflow. The Problem:100% CPU Consumption: When launching a simulator (iOS 27.0), the system instantly spikes to maximum processor usage. While DeviceHub.app spawns the window, the background processes diskimagesiod and CoreDeviceService relentlessly consume between 50% to 95% CPU each, even when the simulator is completely idle.Total Input Lockout / Broken Shortcuts: Absolutely no keyboard shortcuts pass through to the simulator window (e.g., standard development hooks or navigation). The simulator completely stops responding to touch inputs or hardware button clicks, getting stuck in a rigid runtime loop.Immediate Relief Upon Killing Process: The moment I manually force-terminate devicehub via Activity Monitor or Terminal, my overall system load instantly drops back down to a peaceful 2.48% CPU with ~94% idle.Underlying Error Logs:When launching the binary directly from the terminal via /Applications/Xcode.app/Contents/Applications/DeviceHub.app/Contents/MacOS/DeviceHub --booted, the console outputs a massive stream of critical class duplication conflicts between the native OS and private developer frameworks objc[4489]: Class ..._TTC12UniversalHID26TouchSensitiveButtonFilter is implemented in both /System/Library/PrivateFrameworks/UniversalHID.framework/Versions/A/UniversalHID (0x2ec5a4c8d) and /Library/Developer/PrivateFrameworks/CoreDevice.framework/Versions/A/Frameworks/UniversalHID.framework/Versions/A/UniversalHID (0x105025580). One of the duplicates must be removed or renamed. objc[4489]: Class ..._TTC12UniversalHID15DigitizerFilter is implemented in both /System/Library/PrivateFrameworks/UniversalHID.framework/Versions/A/UniversalHID and /Library/Developer/PrivateFrameworks/CoreDevice.framework/... One of the duplicates must be removed or renamed. Impact:Because these private frameworks are deadlocking over registering duplicate input pointers for touch coordinates, scrolling handlers, and button filters, the core virtualization engine hangs.Wiping DerivedData, clearing out iOS DeviceSupport caches, and running xcrun simctl erase all do not resolve the issue. Because the standalone legacy Simulator.app has been entirely removed from /Contents/Developer/Applications/, there is currently no way to bypass this bugged DeviceHub implementation natively.On an 8GB M1 machine, this bug completely thermal-throttles the hardware and paralyzes the local testing pipeline. Is anyone else hitting this linkage deadlock on version 27, or is there a known hidden defaults write flag to decouple input filtering from the CoreDevice workspace loop? Any assistance or temporary patches from the engineering team would be highly appreciated.
Replies
0
Boosts
0
Views
53
Activity
5d
DeviceHub lacks any CarPlay simulator
iPhoneSimulator.app used to have the ability to show an external display / CarPlay display, but this feature does not appear to be available in DeviceHub.app, making it difficult (/impossible :( ) to test CarPlay features from the simulator.
Replies
8
Boosts
4
Views
1.3k
Activity
5d
XCode 27.1 & Mac OS Garden Gate Object Palette - Where?
I recently upgraded my OS and when opening XCode I cannot find the Object Palette. Has it been removed or is there a shortcut to show it? I have looked on YouTube for a tutorial but cannot find this in relation to this. Thanks in advance.
Replies
1
Boosts
0
Views
46
Activity
5d
Xcode 27: CLLocationManager kCLErrorDomain Code=5
Dear Apple Developer Community, Our app monitors a user-defined region by using startMonitoring on an instance of CLLocationManager. While it works as intended on a real device, starting with Xcode 27, this method invocation always results in >locationManager ... monitoringDidFailFor< being called. The error code is always kCLErrorDomain Code=5 but this only occurs within iOS 27 simulators. It works perfectly in iOS 26 simulators. Additionally, CLLocationManager.isMonitoringAvailable(for: CLCircularRegion.self) always returns false on these iOS 27 simulators. This issue blocks parts of our automated system tests. Is it a bug or on purpose? Thank you in advance.
Replies
0
Boosts
0
Views
90
Activity
5d
Xcode 27 crashes on keystroke — CoreML predictive completion (MLSymbolPopularity) EXC_BAD_ACCESS on macOS 27.2 beta 1
Environment: Xcode 27.0 (27A266a), Mac App Store macOS 27.2 beta 1 (26B5086k) MacBook Pro M3 Max, 48 GB (Mac15,9) Xcode crashes 100% of the time the moment I start typing a new variable inside a struct in the source editor. Building, running and debugging all work fine — the crash only happens on keystroke in the editor. Crash log points to CoreML predictive code completion: EXC_BAD_ACCESS (SIGBUS) on thread MLSymbolPopularity.workQueue -> Espresso::inner_product_kernel_cpu::get_biases() -> CodeCompletionModel.init -> MLSymbolPopularity.loadModelIfNeeded So the Espresso/CoreML runtime in macOS 27.2 beta 1 crashes while loading the predictive-completion model. Tried, none fixed it: "Display code predictions" -> Never "Display code completions while typing" -> Manually defaults write com.apple.dt.Xcode IDEPredictiveCodeCompletionEnabled -bool NO Cleared DerivedData / Xcode caches Installed the full 2.25 GB model via Settings > Components (still crashes) Not in the beta 1 "Known Issues". Filed: FB24823899 (Core ML, with two .ips crash logs + repro steps). Anyone else seeing MLSymbolPopularity here?
Replies
4
Boosts
4
Views
626
Activity
5d
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": <key>__AssetDefaultGarbageCollectionBehavior</key> <string>NeverCollected</string> 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 cannot delete it via the GUI. Simctl: xcrun simctl list runtimes does not list this version. Running xcrun simctl runtime delete 22F77 fails with: "No runtime disk images or bundles found matching '22F77'." Manual Deletion: sudo rm -rf [path] fails with "Operation not permitted", presumably because /System/Library/AssetsV2 is SIP-protected. Third-party Tools: Apps like DevCleaner do not detect this runtime (likely because they only scan ~/Library or /Library, not /System/Library). Has anyone found a way to force the system (perhaps via mobileassetd or a specific xcrun flag) to re-evaluate this folder and respect a deletion request? I am trying to avoid booting into Recovery Mode just to delete a cache file. Any insights on how AssetsV2 handles these "orphaned" files would be appreciated.
Replies
27
Boosts
16
Views
8.5k
Activity
5d
0xe8008018 (The identity used to sign the executable is no longer valid.)
I created a new App project, I didn't write any my code, I just built it and install it to my iPhone, then I got the error as below: 无法安装“test” Domain: IXUserPresentableErrorDomain Code: 14 Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.X9zsVD/extracted/test.app : 0xe8008018 (The identity used to sign the executable is no longer valid.) Please ensure that the certificates used to sign your app have not expired. If this issue persists, please attach an IPA of your app when sending a report to Apple. User Info: { DVTErrorCreationDateKey = "2025-04-13 03:40:21 +0000"; IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker; } -- Failed to install the app on the device. Domain: com.apple.dt.CoreDeviceError Code: 3002 User Info: { NSURL = "file:///Users/ltf/Library/Developer/Xcode/DerivedData/test-fnnhrmtlclvfdnennxoorbywbuze/Build/Products/Debug-iphoneos/test.app"; } -- Can't install “test” Domain: IXUserPresentableErrorDomain Code: 14 Failure Reason: 无法安装此App,因为无法验证其完整性。 Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.X9zsVD/extracted/test.app : 0xe8008018 (The identity used to sign the executable is no longer valid.) -- Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.X9zsVD/extracted/test.app : 0xe8008018 (The identity used to sign the executable is no longer valid.) Domain: MIInstallerErrorDomain Code: 13 User Info: { FunctionName = "+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]"; LegacyErrorString = ApplicationVerificationFailed; LibMISErrorNumber = "-402620392"; SourceFileLine = 79; } -- Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { "device_identifier" = "00008120-001E51C011F9A01E"; "device_isCoreDevice" = 1; "device_isWireless" = 1; "device_model" = "iPhone15,5"; "device_osBuild" = "18.3.2 (22D82)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone15,5"; "dvt_coredevice_version" = "443.19"; "dvt_coresimulator_version" = "1010.10"; "dvt_mobiledevice_version" = "1784.120.2"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 2527; "operation_errorCode" = 14; "operation_errorDomain" = IXUserPresentableErrorDomain; "operation_errorWorker" = IDEInstallCoreDeviceWorker; "operation_name" = IDERunOperationWorkerGroup; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphoneos"; "param_diag_113575882_enable" = 0; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_guardMalloc_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_mtc_enable" = 1; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_enable" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 2; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 99; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_structuredConsoleMode" = 1; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphoneos18.4"; "sdk_osVersion" = "18.4"; "sdk_variant" = iphoneos; } -- System Information macOS Version 15.5 (Build 24F5042g) Xcode 16.3 (23785) (Build 16E140) Timestamp: 2025-04-13T11:40:21+08:00
Replies
5
Boosts
0
Views
1k
Activity
5d
StoreKit testing not working on iOS26.5 simulator
Hi, I'm trying to run our StoreKit unit tests with Xcode26.5 on an iOS26.5 simulator. Host computer has macOS26.5. All tests are failing and in the console I see logs such as [SKTestSession] Error saving configuration file: Error Domain=SKInternalErrorDomain Code=3 "(null)" [SKTestSession] Error deleting all transactions: Error Domain=SKInternalErrorDomain Code=3 "(null)" [SKTestSession] Error clearing overrides: Error Domain=SKInternalErrorDomain Code=3 "(null)" [SKTestSession] Error setting value to 1 for identifier 2 for jp.unext.mediaplayer: Error Domain=SKInternalErrorDomain Code=3 "(null)" And the simulator asks me to provide my AppleID. Tests have been broken since at least 26.4 The release notes claims that it has been fixed but not for me. https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-26_5-release-notes#StoreKit-Testing-in-Xcode Does anyone else have the same issue? Reported FB22774836 just in case.
Replies
8
Boosts
11
Views
1.3k
Activity
5d
Why doesn't iPhone 13 Pro Max and Watch Series 11 not connect to Xcode 27.0?
Why doesn't iPhone 13 Pro Max and Watch Series 11 not connect to Xcode 27.0? Something is wrong and I cannot vet the application before submitting for App Store.
Replies
0
Boosts
0
Views
94
Activity
6d
Xcode plaforms/simulators sucking up storage space.
With the limitations on not being to install larger hard drives on all Macs these days, the built-in drives tend to fill up very quickly. One of the fastest ways my drive space disappears is the installed platforms in Xcode. Every month or two I have to go in and free up 80GB by removing all the old versions of installed platforms. I would REALLY love a first-party supported way to a) store these installed platforms on an external drive (I could not get a symlink to work properly), or b) a setting to automatically remove older platforms in the same major revision when a newer one is installed. Both my Mac mini and MacBook Pro would love this, especially in the days of SSD scarcity that we are in now.
Replies
1
Boosts
0
Views
73
Activity
6d
Simulator is missing
I can't get simulator to show up in XCODE. I have installed and reinstalled countless times but Simulator is nowhere to be found.
Replies
1
Boosts
0
Views
68
Activity
6d
Xcode 27 How do we declare the accent color?
Hi guys In Xcode 27, we have to create the Assets Catalog file ourselves. This file is empty. The icon now is generated by Icon Composer, but how do you specify the accent color? I tried creating a Color set with the name AccentColor but didn't work. And look for options in the project settings but couldn't find any.
Replies
2
Boosts
0
Views
210
Activity
6d
iOS 27 Simulator: “Describe a Shortcut” stuck on “Preparing support”
I'm trying to test the new “Describe a Shortcut” feature in iOS 27 using an iPhone 17 Simulator. When I open Shortcuts and tap “Describe a Shortcut”, it stays on: “Preparing support for describe a shortcut” and the text field remains disabled. I cannot enter anything or create the shortcut. My setup: Mac: MacBook Pro macOS: 27 Xcode: 26.5 (17F42) Simulator: iPhone 17 iOS: 27 I also have a physical iPhone 14 Pro, but I understand that it doesn't support Apple Intelligence, so I'm trying to test this using the iPhone 17 Simulator. Do I need to enable/download anything for Apple Intelligence on the Mac or Simulator? Or is “Describe a Shortcut” currently unsupported/not working in the iOS 27 Simulator? Any guidance on the correct setup would be appreciated.
Replies
0
Boosts
0
Views
144
Activity
6d
iOS 16.4 - Saving password on simulator - how to disable ? XCUITest
Hello. Is there a possibility to disable saving password to account functionality in iOS Simulator ? (It breaks an automation tests) Thanks
Replies
2
Boosts
1
Views
1.2k
Activity
1w
27.1 Duo Simulator
Just download 27.1 and Device Hub 27.1 and unable to locate the iPhone Duo simulator. Please help what are the steps to get this? I have both Xcode 27 and Xcode 27.1 installed. Launched 27.1 does not have Duo sim and all test devices in providing incompatible... What are the exact steps for testing an existing app with compatibility with 27.1 iPhone Duo? Thank you.
Replies
5
Boosts
2
Views
3.6k
Activity
1w