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

Xcode Documentation

Post

Replies

Boosts

Views

Activity

Xcode Build System Crashes After Update to Xcode 16
Hi everyone, I've recently upgraded macOS to sequoia and Xcode 16 and am encountering an issue with the build system crashing. The error message I receive is: Unexpected service error: The Xcode build system has crashed. Build again to continue. I've already tried cleaning the build folder, resetting the Xcode preferences, and restarting Xcode, but the issue persists. My app previously built fine with Xcode 15, and nothing significant has changed in my project except for the Xcode upgrade. #Reactnative #Xcode #iOS #MacOs #sequoia
1
2
2.2k
2w
Xcode 16 Crash when opening existing Project
HI, I've updated to Xcode 16 (via App Store Update). When opening my project, Xcode crashes during the "Resolving Package Graph" phase. When opening other projects without dependencies, there is no crash. The same project opens in Xcode 15 without a problem. What can I do to solve this? I'm using a M1 Mac mini. BR, Holger ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: Xcode [31068] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 16.0 (23051) Build Info: IDEApplication-23051000000000000~2 (16A242d) App Item ID: 497799835 App External ID: 869020508 Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2024-09-17 14:54:37.6473 +0200 OS Version: macOS 14.5 (23F5059e) Report Version: 12 Anonymous UUID: AF4F3464-F5C0-CFBD-4CDF-6D21A8B8CEDC Sleep/Wake UUID: 0688C7F5-AE00-4295-ADA6-7224A11963EA Time Awake Since Boot: 18000 seconds Time Since Wake: 211 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Xcode [31068] Application Specific Information: abort() called Application Specific Signatures: NSInvalidArgumentException Application Specific Backtrace 0: 0 CoreFoundation 0x000000018180b31c __exceptionPreprocess + 176 1 DVTFoundation 0x0000000104a945cc DVTFailureHintExceptionPreprocessor + 388 2 libobjc.A.dylib 0x00000001812f2788 objc_exception_throw + 60 3 CoreFoundation 0x00000001818fea0c -[__NSCFString characterAtIndex:].cold.1 + 0 4 CoreFoundation 0x00000001817f0f44 -[NSMutableArray insertObjects:atIndexes:] + 1020 5 IDEFoundation 0x000000010cfe6c84 __50-[IDEGroup insertGroupSubitems:atIndexes:context:]_block_invoke + 1084 6 DVTFoundation 0x0000000104ba3798 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] + 60 7 IDEFoundation 0x000000010cfe67a8 -[IDEGroup insertGroupSubitems:atIndexes:context:] + 248 8 DVTFoundation 0x0000000104b6267c -[NSMutableArray(DVTFoundationClassAdditions) dvt_sortedInsertOfObjects:withComparator:] + 184 9 IDESwiftPackageCore 0x0000000306ac8620 $s19IDESwiftPackageCore23IDESPMWorkspaceDelegateC32registerDependencyFileReferences33_033DB97E8C2A552F3158921835EE9F98LL_27modelGraphSynchronizerTokenySayAA0abgH9ReferenceO010dependencyU0_AC16RegistrationModeAELLO012registrationX0tG_AC05ModelrsT0AELLVtFTf4ndn_n + 760 10 IDESwiftPackageCore 0x0000000306acb728 $s19IDESwiftPackageCore23IDESPMWorkspaceDelegateC27dependencyPackagesDidUpdate33_033DB97E8C2A552F3158921835EE9F98LL8packages14graphHasErrors25revalidatedFilePathCaches27modelGraphSynchronizerTokenySay7SwiftPM10SPMPackageCG_Sb13DVTFoundation11AffirmativeOAC05ModelZ17SynchronizerTokenAELLVtFTf4nnndn_n + 356 11 IDESwiftPackageCore 0x0000000306ac3640 $s19IDESwiftPackageCore23IDESPMWorkspaceDelegateC27packageGraphDidFinishAction_8duration6resulty7SwiftPM12SPMWorkspaceC0bgJ0O_SdAG0oebgJ16ResolutionResultOtYaFyAC05ModelG17SynchronizerToken33_033DB97E8C2A552F3158921835EE9F98LLVXEfU_ + 484 12 IDESwiftPackageCore 0x0000000306ac70dc $s19IDESwiftPackageCore23IDESPMWorkspaceDelegateC38disableWorkspaceContentSynchronization33_033DB97E8C2A552F3158921835EE9F98LL6duringyyAC27ModelGraphSynchronizerTokenAELLVXE_tFyyXEfU_TA + 20 13 DVTFoundation 0x0000000104d75b50 $sSo19DVTModelObjectGraphC13DVTFoundationE34performBlockCoalescingModelChangesyxxyXElFyyXEfU_ + 104 14 DVTFoundation 0x0000000104d3ce00 $sSDySSSo8NSObjectCGIgo_ACIego_TR + 20 15 DVTFoundation 0x0000000104d75868 $sIeg_IyB_TR + 20 16 DVTFoundation 0x0000000104ba3878 __58-[DVTModelObjectGraph performBlockCoalescingModelChanges:]_block_invoke + 104 17 DVTFoundation 0x0000000104b9d324 -[DVTModelGraphTransactionScope performTransaction:] + 60 18 DVTFoundation 0x0000000104ba37f0 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] + 148 19 DVTFoundation 0x0000000104d76308 $sSo19DVTModelObjectGraphC13DVTFoundationE34performBlockCoalescingModelChangesyxxyXElF + 344 20 IDESwiftPackageCore 0x0000000306ab97f0 $s19IDESwiftPackageCore23IDESPMWorkspaceDelegateC38disableWorkspaceContentSynchronization33_033DB97E8C2A552F3158921835EE9F98LL6duringyyAC27ModelGraphSynchronizerTokenAELLVXE_tF + 444 21 IDESwiftPackageCore 0x0000000306ac265c $s19IDESwiftPackageCore23IDESPMWorkspaceDelegateC27packageGraphDidFinishAction_8duration6resulty7SwiftPM12SPMWorkspaceC0bgJ0O_SdAG0oebgJ16ResolutionResultOtYaFTY4_ + 164 22 IDESwiftPackageCore 0x0000000306a98191 $sIeAgH_ytIeAgHr_TRTATQ0_ + 1 23 SwiftPM 0x000000031c735571 $s7SwiftPM12SPMWorkspaceC26packageGraphActionFinished33_918CA8CFEB8D3E06D2EEA2771EA5EA00LLyyAC07PackageE16ResolutionResultAELLVYaFTQ1_ + 1 24 SwiftPM 0x000000031c734e8d $s7SwiftPM12SPMWorkspaceC46processPackageGraphActionsInBackgroundIfNeeded33_918CA8CFEB8D3E06D2EEA2771EA5EA00LL010canProcessefG0yAC11AffirmativeO_tFyyYaYbcfU1_yyYacfU0_TQ1_ + 1 25 SwiftPM 0x000000031c782dfd $s7SwiftPM33SPMWorkspaceOrchestrationDelegateP27packageGraphDidFinishAction_8duration6resultyAA0C0C07PackagegJ0O_SdAA0cemgJ16ResolutionResultOtYaFTjTQ0_ + 1 26 SwiftPM 0x000000031c7f7c79 $sxIeAgHr_xs5Error_pIegHrzo_s8SendableRzs5NeverORs_r0_lTRyt_Tg5TQ0_ + 1 27 SwiftPM 0x000000031c77f571 $sxIeAgHr_xs5Error_pIegHrzo_s8SendableRzs5NeverORs_r0_lTRyt_Tg5TATQ0_ + 1 28 libswift_Concurrency.dylib 0x00000002491de0f9 _ZL23completeTaskWithClosurePN5swift12AsyncContextEPNS_10SwiftErrorE + 1
4
1
416
2w
Xcode 16 / Reality Composer Pro 2 segmentation fault issue
After installing MacOS Sequoia, Xcode 16 & RealityComposer Pro 2 my Apple Vision Pro projects (worked perfectly with Xcode 15) started to give me Tool terminated by signal 'Segmentation fault: 11' error while compiling RealityKitContent assets. This happens only when I try to build project with .usdz models exported from Blender, but when I try with sample models from apple website it works nice with no errors. Is there any solution?
1
0
231
2w
Turning off WiFi on iPhone breaks connection to Xcode debugger
I have a bug in my app that happens when the app is "offline" without and internet connection. The app should still work as it stores content locally. However I am struggling to debug the issue because turning off WiFi breaks the connection to the Xcode debugger, even though it is plugged in via USB. Did I turn on some setting to debug over WiFi? How do I debug over USB so I can see the log output without a network connection to the iPhone?
2
0
146
2w
how to setup info.plist
I accidentally deleted info.plist from the navigator menu and now i get two errors when I clean/build the project: Multiple commands produce '/Users/josephnicholas/Library/Developer/Xcode/DerivedData/ThAug1-dlmsxzducymrcmhdmtjuxjckqfxj/Build/Products/Debug-iphoneos/ThAug1.app/info.plist' and duplicate output file '/Users/josephnicholas/Library/Developer/Xcode/DerivedData/ThAug1-dlmsxzducymrcmhdmtjuxjckqfxj/Build/Products/Debug-iphoneos/ThAug1.app/info.plist' on task: CopyPlistFile /Users/josephnicholas/Library/Developer/Xcode/DerivedData/ThAug1-dlmsxzducymrcmhdmtjuxjckqfxj/Build/Products/Debug-iphoneos/ThAug1.app/info.plist /Users/josephnicholas/Desktop/backups/ThAug1/info.plist
1
0
141
2w
Upload Symbols Failed on Xcode 16
I am using GoogleMobileAds package dependencies and now when I want to archive and export an app I get this two warnings : Upload Symbols Failed The archive did not include a dSYM for the GoogleMobileAds.framework with the UUIDs [13B55A37-D103-36E1-8D7B-FA4EAB2C8146]. Ensure that the archive's dSYM folder includes a DWARF file for GoogleMobileAds.framework with the expected UUIDs. Upload Symbols Failed The archive did not include a dSYM for the UserMessagingPlatform.framework with the UUIDs [A3941120-02A1-30B5-8C28-BFC0F9496E16]. Ensure that the archive's dSYM folder includes a DWARF file for UserMessagingPlatform.framework with the expected UUIDs. I have updated the packages to 11.9.0 (lasted) and Xcode 16 to 16 RC (lasted also) and I would like to know how to fix this... With Xcode 15 I have no problem !! I can export with no warnings ! But now with Xcode 16 no... Thanks for helping !
31
36
9.1k
2w
Xcode does not see devices although finder does see them
I was using a version of Xcode and macOS that wasn't fully updated. When I tried to deploy my app to my phone I got the following error message "IOS Version Incompatible with Xcode version". At that time Xcode recognized my device. I updated my mac and updated Xcode. Then everything was fully up to date but now Xcode cannot see my device. I have tried with multiple different devices and it does not see any of them although finder recognizes all of them. I have tried the following so far: Every single suggestion from the tack overflow post: "Xcode does not see my iOS device but iTunes does" Ensured developer mode is turn on on my iPhone Restarted my iPhone and mac Deleted and reinstall xcode Tried a brand new empty Xcode project Reinstalled command line developer tools Restarted usbmuxd Deleted derived data Removed all vpns tried different usb cables (I am pretty sure the cable shouldn't be the problem though since this cable was working when Xcode and my iOS version wasn't compatible) Reset trust settings on my iPhon Tried manually adding my device to device and simulators but it says no devices found I opened up console on my mac and saw the following output "error 20:08:46.847760-0700 managedappdistributiond Simulator is not supported" I do not understand what is going wrong for me right now. I cannot think of nor find any other solutions right now.
1
0
201
2w
Determining SpriteKit Interaction using SKRenderer
Hey, Wondering how other developers have been able to determine the location of a mouse event or tap (ie NSEvent) when using MetalView (MKTView) with SKRenderer with a SpriteKit scene (.sks scene) for a 2D game. In the original scenario with SpriteKit, we could use SKViews convertPoint(fromView:) to determine where in the scene the user tapped. But with the SKRenderer we can no longer use convertPoint(fromView:) as its reliant on SKView being used and thus its making it difficult to determine. What I do have is: locationInWindow: NSPoint for showing me where in the MKTView which was touched Any ideas, would be great Many thanks
0
0
166
2w
Renaming SwiftData model causing an error
I'm still working on version 1.0.0 of my app so don't yet need to migrate swiftdata versions. I renamed my data model(s) but I get this error when running the app after changing the name of the model from SectionsSD to HelpSection error: the replacement path doesn't exist: "/var/folders/fk/m2x_2qzj44508m9zzcll2j_w0000gn/T/swift-generated-sources/@__swiftmacro_11OpExShellV112FilteredListV11helpSection5QueryfMa_.swift" Despite cleaning the build, deleting the derived data and deleting the app and data on the simulator (and resetting it) I still get the replacement path error whenever I run the app in the simulator. When I run this code against the model I get the error: @Query var helpSection: [HelpSection] let searchString: String let isExpanded: Bool var filteredSections: [HelpSection] { helpSection.filter { section in section.toArticles?.contains { $0.search.contains(searchString) } == true } .sorted { $0.rank < $1.rank } } deleting derived data, cleaning builds and restarts do not resolve the issue.
2
1
285
2w
Installation on this device is prohibited by ManagedConfiguration
When I try to install my app via USB cable on my child's iPhone 13 device I see following error in Xcode: Installation on this device is prohibited by ManagedConfiguration If I go to VPN & Device Management, I don't see anything. This is my Child's iphone so it is not like it is enrolled in some kind of school or work MDM. Developer mode is ON and I added device ID to Certificates, Identifiers & Profiles > Devices. Domain: IXRemoteErrorDomain Code: 9 Failure Reason: Unhandled error domain IXRemoteErrorDomain, code 9 User Info: { FunctionName = "-[IXSRemoteInstaller initWithRemoteInstallOptions:xpcAssetStream:assetSize:error:]"; SourceFileLine = 149; }``` Is it cellular network provider that has locked something? How to be sure about this?
1
0
153
2w
Simulator runtime stuck "Deleting"
I have numerous simulator runtimes marked as "Deleting": $ xcrun simctl runtime list == Disk Images == -- iOS -- iOS 18.0 (22A3351) - 036938A4-AAF7-4671-8880-8E381770E397 (Deleting) iOS 18.0 (22A5326g) - 756A6FE1-A9C7-4A3D-A8FD-01FD7B5F84BC (Deleting) iOS 18.0 (22A5307f) - 5DB182D5-FAA1-477D-922F-CFA728C5A6FA (Deleting) iOS 18.0 (22A5346a) - C844925F-1BCA-46FD-B0B9-21587AB3EDE5 (Deleting) iOS 18.0 (22A5307f) - CC3EB15F-4EAA-4591-AE5C-2762AC17C426 (Unusable - Other Failure: Duplicate of 5E3173BD-25F7-4446-9593-B5E6330B65CE) -- tvOS -- tvOS 18.0 (22J5290l) - A7A2E335-D433-456D-AC61-D5061317A911 (Ready) -- watchOS -- watchOS 11.0 (22R5284o) - 87DB6C3E-A51E-4394-AD35-F6BDCBDEFDC9 (Ready) How to I finish deleting these runtimes? I can't re-install, because: $ simctl runtime add iOS_18_Release_Candidate_Simulator_Runtime.dmg The iOS Simulator runtime 22A3351 is not installed, installing... D: C76A5156-5225-4683-806A-FC604074F2C7 iOS (18.0 - 22A3351) (Unusable - Other Failure: Error Domain=SimDiskImageErrorDomain Code=5 "Duplicate of 036938A4-AAF7-4671-8880-8E381770E397" UserInfo={NSLocalizedDescription=Duplicate of 036938A4-AAF7-4671-8880-8E381770E397, unusableErrorDetail=}) and it's the "Deleting" runtimes aren't usable (causing things like ibtool/actool to stop working), presumably because they're "Deleting." A reboot does not fix anything.
1
0
187
2w
Help Needed: Linker Warnings and Duplicate Symbols Issue in Xcode 16.0
On Xcode Version 15.3 (15E204a), the project builds successfully without any errors. However, on Xcode Version 16.0 (16A242), I encounter the errors mentioned below. ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Additional Context: Faced same issue earlier and fixed: Add "-ld64" under Build Setting -&gt; Other Linker Flags
2
0
208
2w