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

Xcode Documentation

Posts under Xcode subtopic

Post

Replies

Boosts

Views

Activity

Issues with Push Notifications and Call Implementation in Flutter App on iOS (Debug Works, Production/TestFlight Fails)
Hello Developers, I am currently developing a Flutter application where I am implementing both push notifications (for messages) and VoIP call notifications. The implementation works perfectly fine on Android. However, I am facing issues specifically on iOS in the following scenarios: Terminated State: When the app is terminated on iOS, neither call notifications nor message notifications are received. In the background state, things partially work, but in the terminated state, nothing comes through. Debug vs Production: In Debug mode, everything works as expected (both message and call notifications). Once I release the app to TestFlight (Production), the notifications completely stop working: Message notifications are not delivered at all. Call notifications also fail to appear in terminated state. Configuration Details: I have already configured APNs with .p8 key in Firebase. The required capabilities (Push Notifications, Background Modes → Remote notifications, VoIP, etc.) are enabled in Xcode. I also updated the AppDelegate.swift / Notification handling code for production environment. Despite these steps, the same issue persists in production/TestFlight. It seems like the issue is specifically related to production environment handling on iOS, since everything works in debug. My Question: What could be causing push notifications and call notifications to not work in the terminated state on iOS, especially in production/TestFlight builds? Are there additional configuration steps required for APNs, VoIP, or background handling in production that differ from debug mode? Any guidance or similar experiences would be really helpful. Thanks in advance for your support.
2
0
78
Sep ’25
App Groups names are red
I have recently restarted an old code base. The app uses App Groups to communicate with network and endpoint system extensions. For some reason, in Xcode > Target > Signing & Capabilities the app groups are showing up with red text. I feel the red signifies a problem, but I cannot figure out what it is. The app compiles and runs, but I feel there is problem that I am missing. Any idea why App Group names would be displayed in red?
4
0
221
4w
Validation Failed when using Icon Composer App Icon
I am trying to validate my update for my app to be ready for iOS 26 with the new Icon Composer .icon file. Everywhere I read says that the old AppIcon in the assets folder wouldnt be used and to just drop the .icon file in the project navigator and link it properly. I do that and its still asking for a .png file; I add the 1024x1024 .png file and its still not working. I am very lost and dont know where to go from here I have both the .icon and .png app icons in there. My app deployment target is at iOS 26, Xcode Project format 16.3 (I dont see 26 so assuming 16.3 is the highest). I feel I have done all the things, and advice? Thanks in advance!
2
0
181
Sep ’25
Failed to find a DDI
Hello! When launching/debugging on my iPad and iPhone I keep getting the following error: “Previous preparation error: Failed to find a DDI … Run ‘devicectl list preferredDDI’ …” I believe this was caused by a previously interrupted Xcode update around June due to low disk space, which may have left DeviceSupport/DDI/CoreDevice files incomplete. Even after finishing the update later, the error persists. I now use a new Mac with 4 TB of storage, but the issue still occurs. Since then I have unfortunately been blocked from testing or presenting my app on devices. It seems that only a new, fully completed Xcode update might resolve the problem. Tried so far: – Cleared caches (CoreDevice/Devices) – Reset trust on device and re-paired – Checked devicectl list preferredDDI I would really appreciate guidance, as at the moment I cannot present my app due to this blocking issue. Thank you very much for your support!
8
1
357
Sep ’25
macOS WeatherKit "A server with the specified hostname could not be found"
My code was running with with the version before Xcode 26 RC. I recompiled one last time. Now I'm getting the error: A server with the specified hostname could not be found let now = Calendar.current.date(byAdding: .hour, value: 1, to: Date())! let nextWeek = Calendar.current.date(byAdding: .day, value: 14, to: Date())! do { let (dailyForecast, hourlyForecast, currentWeather, alertWeather) = try await weatherService.weather(for: thisLocation, including: .daily, .hourly(startDate: now, endDate: nextWeek), .current, .alerts) Suggestions?
4
1
111
3w
File download not working in Xcode 26.0 RC
Hello Apple Developer Community, I'm experiencing an issue with file download functionality in the iOS Simulator after updating to Xcode 26 RC (Build 17A321). Issue Description: When attempting to download files in the iOS Simulator via Safari, the download prompt appears correctly, but after tapping the 'Download' button, files are not being saved to the Files app. The download appears to do nothing with no error message, no indication of failure, but the file simply doesn't appear in Downloads or anywhere in the Files app. Environment: Xcode Version: 26.0 RC (17A321) iOS Simulator Version: 26.0 RC (23A339) Device Simulated: iPhone Air Steps to Reproduce: Open Safari in the iOS Simulator Navigate to a downloadable file (PDF, ZIP, etc.) Tap to initiate download Download prompt appears as expected Tap the 'Download' button Check the Files app → Downloads folder (empty) Expected Behavior: Files should download normally as they do on physical devices and as they did in previous Xcode versions. Actual Behavior: The download prompt dismisses after tapping 'Download', but no file appears in the Files app. No error message is shown, and there's no indication that the download failed, it simply appears as if nothing happened. Additional Information: Downloads work correctly on physical device (iOS 26 RC 23A340) This functionality worked properly in previous Xcode versions I have created a bug report to Feedback assistant: FB20190927 Thanks in advance for any assistance.
5
1
299
1w
RC sending non-specific file format to simulator no longer opens Files app to import
Up until yesterday (previous Xcode builds) when I send a file from the Mac to the simulator, either by right-click or drag and dropping, the simulator opened the Files app to import/save the file. Now when I do the same, instead of the iOS simulator opening the Files app, it opens Safari and asks if I want to download the file, if I agree the file is supposedly download but nowhere to be found. By a non-specific file format is a file format that is not set up to open any specific app, such is the case of PDF, JPG, MP4, MD, etc. A zip file, for example. I constantly send database backup files to the simulator to then import in my app (it has an import tool that lets me select a file from the filesystem) to test, but now I see myself unable to use this because the file I send is not being transferred. Has anyone came across this?
2
1
63
Sep ’25
Xcode 26 RC unable to compile asset catalogs on CI
This started with Xcode 26 beta 7, however it has continued to occur with the release candidate. Whenever I try to compile our asset catalog + icon composer icon for our AppKit/SwiftUI-based macOS app, actool fails with the following exception: *** Terminating app due to uncaught exception 'IBPlatformToolFailureException', reason: 'The tool closed the connection (AssetCatalogAgent-AssetRuntime) Last command: _ON_QUEUE_sendMessage:toChannelReturningError:during: Backtrace of last command: 0 -[IBAbstractPlatformToolProxy _ON_QUEUE_sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit) 1 __74-[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:]_block_invoke (in IDEInterfaceBuilderKit) 2 _dispatch_client_callout (in libdispatch.dylib) 3 _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib) 4 DVTDispatchSync (in DVTFoundation) 5 -[IBAbstractPlatformToolProxy sendMessage:toChannelReturningError:during:] (in IDEInterfaceBuilderKit) 6 -[AssetCatalogRemoteAgentProxy compileItemsWithCatalogRelativeIdentifierPaths:tagSolutionSpace:andStickerPacksWithCatalogRelativeIdentifierPaths:options:] (in IDEInterfaceBuilderCocoaTouchIntegration) 7 -[IBICLARToolCARCompiler compileCARItems:tagSolutionSpace:options:queue:completionHandler:] (in AssetCatalogCocoaTouchKit) 8 -[IBICAbstractPlatformAdapter compileCARItems:tagSolutionSpace:options:queue:completionHandler:] (in AssetCatalogFoundation) 9 __84-[IBICAbstractPlatformAdapter compileSelectedItems:options:queue:completionHandler:]_block_invoke (in AssetCatalogFoundation) 10 __93-[IBICAbstractPlatformAdapter compileStandaloneCatalogItems:options:queue:completionHandler:]_block_invoke (in AssetCatalogFoundation) 11 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation) 12 __DVTDispatchAsync_block_invoke (in DVTFoundation) 13 _dispatch_call_block_and_release (in libdispatch.dylib) 14 _dispatch_client_callout (in libdispatch.dylib) 15 _dispatch_main_queue_drain.cold.5 (in libdispatch.dylib) 16 _dispatch_main_queue_drain (in libdispatch.dylib) 17 _dispatch_main_queue_callback_4CF (in libdispatch.dylib) 18 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ (in CoreFoundation) 19 __CFRunLoopRun (in CoreFoundation) 20 CFRunLoopRunSpecific (in CoreFoundation) 21 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation) 22 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:whileQueue:executesAsynchronously:] (in DVTFoundation) 23 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:whileBlockExecutesConcurrently:] (in DVTFoundation) 24 -[NSRunLoop(DVTNSRunLoopAdditions) dvt_spinRunLoopInMode:waitingForSemaphore:] (in DVTFoundation) 25 -[IBCLIImageCatalogToolPersona compileCatalogCollection:withPlatformAdapter:arguments:outputDictionary:] (in ibtoold) 26 -[IBCLIImageCatalogToolPersona invokeArguments:outputDictionary:] (in ibtoold) 27 -[IBCLIImageCatalogToolPersona runSingleInvocation:outputtingToFileHandle:andVerifyingEnvironment:] (in ibtoold) 28 IBCLIServerRunSingleInvocation (in ibtoold) 29 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke_2 (in ibtoold) 30 __IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess_block_invoke (in ibtoold) 31 -[IBCLIErrorForwarder forwardErrorOutputToDescriptor:whileInvokingBlock:] (in ibtoold) 32 IBCLIServerRunSingleInvocationWithIODirectedAtPipesAndUnlinkOnSuccess (in ibtoold) 33 main (in ibtoold) 34 start (in dyld) I can't seem to get it to compile consistently — it works fine locally. I would ❤️ a workaround, otherwise I'm not sure that we'll be able to ship an update to our app for macOS 26. FB20183399
4
2
262
1w
GameKit Manage Game Progress does not work for Leaderboards
Works fine to show achievements but not Leaderboards. Launching the Xcode Project directly on device, loading remote (not yet live) leaderboards without issue and submitting scores to them works fine as well. I was hoping that rather than going through the app store distribution leaderboards with all of their limitations I could instead run it locally and add scores to test the behaviour, but even though I can edit the achievements progress locally, I can't see any leaderboards being available... One out of 3 leaderboards started beginning of this september while the other 2 leaderboards won't launch until the game launch.
0
0
107
Sep ’25
Very technical question about the 'project.pbxproj' file. Targeted devices?
Hello In my app code (in flutter) but you can remain if you code in other langages, maybe you can help in other ways, I have a file called: project.pbxproj I am wondering about this line: ARGETED_DEVICE_FAMILY = "1,2"; Is it true that the 1 is for Iphone and 2 for Ipad? Would that mean that if I wrote "1" and removed 2, then in my app page in developer store side I would not see a tab for Ipad where the store requires from me to post screenshots for ipad? For instance (see image below) I know you guys use XCODE and it handels it itself, but can you open your .ipa files and check "project.pbxproj" to confirm differences between these files when the app is targeting Iphone Vs targeting Ipad? Thanks
4
0
186
Sep ’25
Icon Composer icon changes font (!) in output
Hi, I'm experiencing a super weird and unexpected issue using Icon Composer (Version 1.0 (40)) and Xcode 26 beta 7. I have an icon that includes some minimal text in the icon, as part of the branding of the app. The text is an SVG layer in Icon Composer. Icon Composer has no idea this is text, just a regular SVG layer. When I import the resulting .icon file into Xcode, it appears correct in the Xcode preview. However, when building the app and installing it on the iOS 26 simulator, the font of the text in the icon changes (to the system default font?). It is also cropped, cut off, and off-center. I replicated this with a simple standalone icon and clean project. Is anyone else seeing this?
2
0
102
1w
Xcode 16.4: 'Server SSH Fingerprint Failed to Verify' after update from 16.2
After updating Xcode from 16.2 to 16.4, my xcodebuild commands began failing with "Server SSH Fingerprint Failed to Verify" when accessing Bitbucket repositories. During the build process, I could see Xcode's AuthenticationAgent running SSH with these arguments: /usr/bin/ssh -v -F /dev/null -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o SendEnv=GIT_PROTOCOL git@bitbucket.org git-upload-pack 'xxx.git' Xcode 16.4 appears to be ignoring my local ~/.ssh/known_hosts file and instead using its own managed known_hosts system (stored in IDESourceControlModernKnownSSHHostsDefaultsKey within com.apple.dt.Xcode.plist). My local known_hosts file contains three entries for Bitbucket: ssh-ed25519, ecdsa-sha2-nistp256, and ssh-rsa. After updating Xcode to 16.4 and opening my existing project, Xcode prompted with "Xcode can't verify the identity of a repository hosted on 'bitbucket.org'" and offered a "Trust" button. When I clicked "Trust," Xcode's managed known_hosts only stored the ecdsa-sha2-nistp256 entry for Bitbucket. I was able to resolve the issue by overwriting Xcode's managed known_hosts with the ssh-rsa Bitbucket entry from my local known_hosts file. Also, this behavior for some reason seems to vary between machines after the same Xcode update. So on my machine, Xcode 16.4 ignores the local ~/.ssh/known_hosts. My coworker's Xcode continues to use the local ~/.ssh/known_hosts file and works normally. What could cause Xcode 16.4 to handle SSH known_hosts differently on seemingly identical setups? Is there a hidden configuration that determines whether Xcode uses its managed known_hosts versus respecting the system's SSH configuration? Additionally, why did Xcode only store the ecdsa-sha2-nistp256 host key for Bitbucket when I clicked "Trust" instead of all available host key types, and why doesn't this single key type work?
0
0
76
Sep ’25
What will be the minimum iOS deployment target for Xcode 26?
Hi, I was checking docs about this (https://developer.apple.com/support/xcode/) where implies that the minimum iOS Deployment Target is iOS 15. However, I reviewed quotes from last year (https://developer.apple.com/forums/thread/775703), where one of your engineers mentioned that the minimum version was actually iOS 12 for Xcode 16, when later on this page it was changed to 15 (even though internally the actual minimum is 12). So our team was wondering what the minimum version was for Xcode 26, since the page mentions iOS 15.
1
0
96
Sep ’25