I was encountering visual artifacts in my Unity game only on iOS devices and wanted to use the Metal Debugger to diagnose it. However, it seems to only capture static noise which is not helpful as shown below
For reference, this is a frame of the visual artifact and also the location where I asked Metal to capture the frame
Am I missing any settings in Unity/Xcode?
Xcode
RSS for tagBuild, test, and submit your app using Xcode, Apple's integrated development environment.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
GCC's shared library constructor technique has ceased working with the tool chain provided with XCode 16.4 and XCode 26. This is the GCC attribute:
__attribute__((constructor))
Example use:
void aConstructor(void) __attribute__((constructor));
void aConstructor(void)
{
printf("Called aConstructor\n");
}
In our case aConstructor() was not called.
I've been trying to use Antrhopic with Xcode 26 RC and continue to run into this error:
No Data/Bytes for request: https://api.anthropic.com/v1/messages
Once I get it, all prompts fail even a simple "Hello" that worked a moment ago returns the error message.
Restarting Xcode and it returns to normal till I hit that error again. Any ideas on what's going on?
Topic:
Developer Tools & Services
SubTopic:
Xcode
I just wanted to say thank you to the team that added coding assistance (Chat-GPT) to Xcode. I'm just learning SwiftUI and I love how it made suggestions to improve my app and shows me what it does and explains why it does what it does.
Topic:
Developer Tools & Services
SubTopic:
Xcode
After upgrading to Xcode 26, started getting an issue where Xcode debugger is stopping at dyld`lldb_image_notifier
Does not happen on device.
Tried cleaning derived data folder, clean build but no success.
what could be the cause?
this is from the stack.
#0 0x0000000207e0ffa1 in lldb_image_notifier ()
#1 0x0000000207e11c49 in dyld4::ExternallyViewableState::triggerNotifications ()
#2 0x0000000207e13a2f in invocation function for block in dyld4::ExternallyViewableState::notifyMonitorOfImageListChangesSim(bool, unsigned int, mach_header const**, char const**) ()
#3 0x0000000207e10c3b in dyld4::ExternallyViewableState::notifyMonitorOfImageListChangesSim ()
#4 0x00000001102b9195 in dyld4::ExternallyViewableState::triggerNotifications ()
#5 0x00000001102b9465 in dyld4::ExternallyViewableState::addImages ()
#6 0x000000011029dcec in dyld4::RuntimeState::notifyDebuggerLoad ()
#7 0x00000001102b8065 in dyld4::APIs::dlopen_from(char const*, int, void*)::$_0::operator()() const::'lambda'()::operator()() const ()
#8 0x00000001102b71fd in dyld4::APIs::dlopen_from(char const*, int, void*)::$_0::operator()() const ()
#9 0x00000001102b30e3 in dyld4::APIs::dlopen_from ()
#10 0x00000001199b4c5e in _CFBundleDlfcnLoadFramework ()
#11 0x0000000119982a1e in _CFBundleLoadExecutableAndReturnError ()
#12 0x0000000115f081c4 in -[NSBundle loadAndReturnError:] ()
#13 0x00000001a3c42866 in -[NSBundleAccessibility loadAndReturnError:] ()
#14 0x000000013cd67fa7 in __50-[AXCodeItem loadWithStrategy:onQueue:completion:]_block_invoke_2 ()
I'm looking for a way to make the following possible in Xcode (26.0 or later):
I select one or more lines of code. I then enter a hotkey (or select a menu item) that results in adding the line:
#ifdef SOME_MACRO
before the selection and adding the line:
#endif
after the selection.
Example:
Start with the following lines of code:
BOOL x = NO;
int y = 4;
NSString *str = @"Hello";
If I then highlight the int y = 4; line and use the proper hotkey or menu, the result would be:
BOOL x = NO;
#ifdef SOME_MACRO
int y = 4;
#endif
NSString *str = @"Hello";
Is something like this possible in Xcode?
I looked at code snippets but that doesn't seem to support wrapping existing code.
I looked at the Xcode Settings under Editor and Shortcuts and didn't see a way to add such a custom shortcut.
I have a view inside a Swift Package that relies on an external Swift Package. My Preview Canvas breaks as soon as I use code from the external package:
import ComplexModule // From swift-numerics
import SwiftUI
struct MyView: View {
// Commenting out this line will make Previews work
let number: Complex<Double> = 123
var body: some View {
Text("Hello World")
}
}
#Preview {
MyView()
}
This is part of the error the preview emits:
== PREVIEW UPDATE ERROR:
GroupRecordingError
Error encountered during update group #33
==================================
| [Remote] JITError: Runtime linking failure
|
| Additional Link Time Errors:
| Symbols not found: [ _$sSd10RealModule0A0AAMc, _$s13ComplexModule0A0VMn, _$s13ComplexModule0A0V14integerLiteralACyxG07IntegerD4TypeQz_tcfC ]
|
| ==================================
|
| | [Remote] LLVMError
| |
| | LLVMError: LLVMError(description: "Failed to materialize symbols: { (static-MyTarget, { __replacement_tag$1 }) }")
Did anyone else see this before?
My Xcode crashed over and over again while I searing spefic file like "TingMusic". I have tried uninstall and install Xcode from 16.0 to 16.4, clear derived data folder, reboot my Mac, but none of these working. 😭
Translated Report (Full Report Below)
Process: Xcode [1811]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 16.4 (23792)
Build Info: IDEApplication-23792000000000000~2 (16F6)
App Item ID: 497799835
App External ID: 874973124
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2025-09-02 10:51:26.8582 +0800
OS Version: macOS 15.6 (24G84)
Report Version: 12
Anonymous UUID: 9835064A-AD7C-EE47-64DE-49587A7EC956
Time Awake Since Boot: 320 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 [1811]
Application Specific Information:
abort() called
Application Specific Signatures:
isSameDocumentAsURL
Kernel Triage:
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x186d5e388 __pthread_kill + 8
1 libsystem_pthread.dylib 0x186d9788c pthread_kill + 296
2 libsystem_c.dylib 0x186ca0a3c abort + 124
3 IDEKit 0x10890d888 +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 964
4 IDEKit 0x10890dcf8 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] + 872
5 DVTFoundation 0x1047839a0 _DVTAssertionHandler + 412
6 DVTFoundation 0x104783b04 _DVTAssertionFailureHandler + 196
7 IDEKit 0x1086e5178 -[IDENavigableItemCoordinator _navigableItemForFilePath:inWorkspace:withSeenFileReferences:computedNavItemsByContainerFilePath:allowLeaf:] + 2240
8 IDEKit 0x1086e3d24 -[IDENavigableItemCoordinator _structureNavigableItemForFileURL:inWorkspace:error:] + 268
9 IDEKit 0x1086e4658 -[IDENavigableItemCoordinator structureNavigableItemForDocumentURL:inWorkspace:error:] + 152
10 IDEKit 0x1086e89bc +[IDENavigableItemCoordinator temporaryStructureItemForDocumentURL:forWorkspace:error:inScope:] + 116
11 IDEKit 0x1088689e0 +[IDEOpenQuicklySubpathGenerator subpathForURL:lineNumber:isFromProject:showFileName:fromWorkspace:withAttributes:] + 716
12 IDEKit 0x108869a88 -[IDEOpenQuicklyResult(SubPath) subPathForWorkspace:withAttributes:] + 356
13 IDEKit 0x1088eee54 -[IDEOpenQuicklyResultDisplayRecord subtitle] + 172
14 IDEKit 0x10894bb1c -[IDEOpenQuicklyResult(ViewExtension) cellViewForOutlineView:displayRecord:delegate:] + 596
15 IDEKit 0x108849564 -[IDEQuickSearchWindowController outlineView:viewForTableColumn:item:] + 72
16 AppKit 0x18ae314a8 -[NSTableView(NSTableViewViewBased) makeViewForTableColumn:row:] + 176
17 AppKit 0x18ae30c0c -[NSTableRowData _addViewToRowView:atColumn:row:] + 228
18 AppKit 0x18ae2ed5c -[NSTableRowData _initializeRowView:atRow:] + 328
19 AppKit 0x18ae2d8ec -[NSTableRowData _preparedRowViewForRow:storageHandler:] + 140
20 AppKit 0x18ae2d7bc -[NSTableRowData _addRowViewForVisibleRow:withPriorView:] + 268
21 AppKit 0x18ae2d5e4 -[NSTableRowData _addRowViewForVisibleRow:] + 316
22 AppKit 0x18ae2cdf0 -[NSTableRowData _updateVisibleRowEntries] + 640
23 AppKit 0x18ae2c854 -[NSTableRowData updateVisibleRowViews] + 612
24 AppKit 0x18ae2bf08 -[NSTableView layout] + 148
25 AppKit 0x18b8d0fa8 ___NSViewLayout_block_invoke + 632
26 AppKit 0x18ade7000 NSPerformVisuallyAtomicChange + 108
27 AppKit 0x18adeb8d8 _NSViewLayout + 96
28 AppKit 0x18b8c72cc __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 372
29 AppKit 0x18ade7000 NSPerformVisuallyAtomicChange + 108
30 AppKit 0x18adeb86c -[NSView _layoutSubtreeWithOldSize:] + 100
31 AppKit 0x18b8c7410 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 696
32 AppKit 0x18ade7000 NSPerformVisuallyAtomicChange + 108
33 AppKit 0x18adeb86c -[NSView _layoutSubtreeWithOldSize:] + 100
34 AppKit 0x18b8c7410 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 696
35 AppKit 0x18ade7000 NSPerformVisuallyAtomicChange + 108
36 AppKit 0x18adeb86c -[NSView _layoutSubtreeWithOldSize:] + 100
37 AppKit 0x18b8c7410 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 696
38 AppKit 0x18ade7000 NSPerformVisuallyAtomicChange + 108
39 AppKit 0x18adeb86c -[NSView _layoutSubtreeWithOldSize:] + 100
40 AppKit 0x18b8c7410 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 696
41 AppKit 0x18ade7000 NSPerformVisuallyAtomicChange + 108
42 AppKit 0x18adeb86c -[NSView _layoutSubtreeWithOldSize:] + 100
43 AppKit 0x18b8c7410 __36-[NSView _layoutSubtreeWithOldSize:]_block_invoke + 696
Hi everyone,
I am trying to generate an .ipa file for my .NET MAUI (net9.0-ios) application, but every attempt fails with the same codesigning error. I have tried multiple approaches, including building from Windows paired to macOS, and directly building through the macOS terminal, but nothing is working.
Below are the exact steps I followed:
Steps I Performed
Generated the Apple Development certificate using Keychain Access on macOS.
Added that certificate into my developer account and created the corresponding provisioning profile.
Created an App ID, attached the App ID to the provisioning profile, and downloaded it.
Added the provisioning profile into Xcode.
Verified that the certificate is correctly visible in Keychain Access (private key available).
Attempted to build/publish the MAUI app to generate the .ipa file.
Issue
Whenever I run the publish command or build via Windows/macOS, codesigning fails with the following error:
/usr/bin/codesign exited with code 1:
Frameworks/libSkiaSharp.framework: replacing existing signature
Warning: unable to build chain to self-signed root for signer "Apple Development: Created via API (8388XAA3RT)"
Frameworks/libSkiaSharp.framework: errSecInternalComponent
Failed to codesign 'PCS_EmpApp.app/Frameworks/libSkiaSharp.framework':
Warning: unable to build chain to self-signed root for signer "Apple Development: Created via API (8388XAA3RT)"
PCS_EmpApp.app: errSecInternalComponent
Build eventually fails with:
Build failed with 4 error(s) and 509 warning(s)
Environment
.NET: 9.0
MAUI: latest tools
Xcode: 26.0.1
macOS: 26.0.1
Building for ios-arm64 (device)
What I suspect
It looks like the signer certificate might not be trusted, or the certificate chain cannot connect to an Apple root CA. But the certificate was created using the Developer website and appears valid.
Need Help With
Why is codesign unable to build the certificate chain?
Do I need a different type of certificate? (App Store / Distribution vs Development?)
Is there any special configuration required for MAUI apps using native frameworks like libSkiaSharp.framework?
How can I successfully generate the .ipa file?
Any guidance will be greatly appreciated. Thank you!
After having used Obj-C and C++ for years, I recently (~6 months) moved to Swift, which is hard for me but most often sends less obscure error messages (not always). My trouble is 1- why is it soooooo long (sometimes up to 20s - that's horrible) to get an object's variables accessible in the debugger? 2- In Xcode 16 why is it no longer possible to arrange my files as I did before (organised into folders from within Xcode - horrible when you get a bigger and bigger project)? 3- Why has it become impossible to see the retention cycles and retaining objects from with the memoryGraph (it's worth ~nothing) now !
When I try to validate my app I get the following error:
Invalid bundle. Because your app supports Multitasking on iPad, you need to include the LaunchScreen.storyboard launch storyboard file in your com.augmentedReality.virtualTags bundle. Use UlLaunchScreen instead if the app's MinimumOSVersion is 14 or higher and you prefer to configure the launch screen without storyboards. For details, see: https:// developer.apple.com/documentation/bundleresources/information_property_list/
uilaunchstoryboardname (ID: 236f630a-a014-48e8-910a-77d9c0ff6f51)
What should I do to fix it?
In the previous Xcode version and on another app it did not appear.
MacBook Pro M5, Tahow 26.1, Xcode 26.1.1
Hi, We are trying to use Apple Security API for KeyChain Services. The motive is to store some sensitive data in the KeyChain. Our app has Network extensions enabled which share a common app group and we want to access the data stored in the KeyChain from the extensions as well. Specifically we were exploring the SecItemAdd, SecItemCopyMatching etc family of APIs. We tried a few methods:
Using the common App Group : Specifying the common app group in the "kSecAttrAccessGroup" field of the KeyChain query, allowed us to have a shared keychains for different apps (targets) in the app group, but this did not work for extensionsEnabling the KeyChain Sharing capability : We enabled the KeyChain Sharing Ability in the extensions and the app target as well, giving a common KeyChain Access group. Specifying this in the kSecAttrAccessGroup field also did not work.We tried specifying "$AppIdentifier.KeyChainSharingGroup" in the kSecAttrAccessGroup field , but this did not work as wellThe error code which we get in all these 3 cases when trying to access the Keychain from the extension is error code 25291 (errSecNotAvailable). The Documentation says this error comes when "No Trust Results are available" and printing the error in xcode using the status says "No keychain is available. You may need to restart your computer". The online Documentation says that it is possible to share keychain with extensions, but by far we are unable to do it with the methods suggested.Do we need any special entitlement for this or is there something we are missing while using these APIs?If this is possible Is there any internal/open source wrapper for Keychain APIs, that we can use?We will really appreciate help in solving this issue!Thanks!
Currently Xcode has iOS simulators that allow easily testing apps on older versions of iOS. It would be helpful if there was also a macOS simulator for testing apps on older versions of macOS.
FB21229682
https://github.com/feedback-assistant/reports/issues/724
The Test target not build for not such file or directory: 'CoreGraphics'.
Not sure why I get this error, but I configured the target without forgetting the variables BUNDLE_LOADER with $(BUILT_PRODUCTS_DIR)/MyExistingApp.app/MyExistingApp value and TEST_HOST with $(BUNDLE_LOADER) value.
App target (not the test target), the Symbols Hidden by Default build setting its equal to NO, unlike the Test target that is set to YES.
Any variable more for this? I'm not sure if I should take anything into account when using Xcode 26.1.1 and Swift Testing framework.
I use CI/CD dsym, downloaded into local directories, but there seems no direct way using it in Xcode
Hey everyone, after signing in to my Apple Account in Xcode and I click on it, I keep getting the "Failed to retrieve development teams for xyz".
I have a developer account (Individuals), however not paid one yet as I'm not that close to finish my app.
I'm using the latest version of everything, signed out and back in multiple times from my accounts.
Any idea why this is happening and how to fix it?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hi everyone, I think this is a simple issue.
I got the following error message"
"PreviewDevice is ignored in a #Preview macro. Use the device picker at the bottom of the Canvas to change which device type is used for the preview. (from macro 'Preview')"
after this line:
".previewDevice(PreviewDevice(rawValue: "iPhone 17 Pro"))"
But in my Canvas I do not see the device picker.
Thank you.
Topic:
Developer Tools & Services
SubTopic:
Xcode
when does an intel macbook pro 2020 get the last xcode update i.e when does this type of mac stop to be capable of publishing on app store ?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello,
I am currently working on a project that requires the use of the NFCTagReaderSession API to perform read and write operations on NFC tags (ISO15693 and other standard NFC tag types).
According to the Apple documentation, CoreNFC and NFCTagReaderSession are fully supported on iPhone devices.
However, the behavior and availability on iPad devices are not clearly documented.
I would like to request clarification on the following points:
Is NFCTagReaderSession officially supported on iPad devices?
We have verified that some iPad models equipped with NFC hardware still do not expose support for this API.
Is there an up-to-date list of iPad models that support CoreNFC?
The documentation currently mentions only “iPhone 7 or later,” with no reference to iPad models.
Does Apple plan to enable NFCTagReaderSession on iPad in the future?
This information is important for our product roadmap, as several of our deployments rely on tablets.
Our goal is to determine whether NFC tag read/write operations are intended to be available exclusively on iPhone, or whether there are existing or upcoming iPad models that will support CoreNFC as well.
Thank you in advance for your support and for any clarification you can provide.
Kind regards,
This is a M4 iMac 32GB 2TB where over the last few months memory use has been crazy. The worst offender is SimulatorTrampoline. I just opened a default iOS app and ran it in a simulator. So this is as simple as it gets: there's 1 SF Symbol and "Hello, world!" text.
iStatMenus shows SimulatorTrampoline at 10.7GB, Safari 5.2GB, Xcode at 3.2GB, and swap at 548MB
meanwhile ActivityMonitor shows the top memory use of Ildb-rpc-server at 2.30GB, Xcode at 523.4MB Swap is 548MB is the only number that matches and the fact that Memory used is ~26GB total.
Is this amount of memory use normal? Is iStat menu reporting something different than Activity monitor. This computer used to never swap. Any suggestions?