After updating Xcode to version-16 and TVOS Simulator to version-18,
It started crashing at collectionview dequeue cell.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected dequeued view to be returned to the collection view in preparation for display. When the collection view's data source is asked to provide a view for a given index path, ensure that a single view is dequeued and returned to the collection view. Avoid dequeuing views without a request from the collection view.
Only happening with tvOS18 simulator, it is working fine with tvos17 simulator and Real Device with TvOS18.
Dive into the vast array of tools, services, and support available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
So I have a MacOS application that was working just fine before Xcode 16. The Widgets are not working anymore.
The main application and the widgets share a file in a common App Group.
The widget app now get a permission error when accessing the file.
Also, the Widget Kit simulator keeps crashing.
I also try to start a new project in Xcode, add a target with a Widget extension with an App Intent and run it, and it also crashes.
Sometimes, it doesn't crash but just display the error: "Failed to load widget. The operation couldn't be completed. (WidgetKit_Simulator.WidgetDocument.Error error 2.).
Edited to attach WidgetKit error log
widgetKitError.txt
Hi everyone,
I’m seeking advice or guidance regarding a frustrating issue with my Apple Developer Account that’s been unresolved since October this year.
Here’s the situation:
My account was fully functional from October 2023 until October 13, 2024. During that time, my enrollment as a US LLC was accepted, I paid the membership fee with auto-renew enabled, and everything was in order.
On October 13, 2024, I encountered a problem where my account is now stuck in what seems like a “limbo.”
When I log in to developer.apple.com, I see an option to “Enroll today,” but clicking it shows the error:
“Sorry, you can’t enroll at this time. Your Apple ID is already associated with the Account Holder of a membership.”
I’ve contacted Apple Support multiple times over the past month and a half. Each time, I’ve been told my case (ID: 102451753655) has been escalated to an internal review team, but I’ve received no updates, timelines, or resolutions.
This issue is severely impacting my business, as my app is ready for release but cannot be published.
I’m looking for advice:
• Has anyone experienced something similar?
• Are there alternative ways to escalate this issue beyond the usual support channels?
At this point, I’m considering taking this issue to public platforms like Twitter/X and LinkedIn to get Apple’s attention. If the problem persists, I’ll likely need to involve legal representation.
Any help or suggestions would be greatly appreciated.
Thank you,
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
Apple Business Manager
Developer Program
I just downloaded Xcode26, and am trying to download the new simulator to be able to run and test my app. But the downloads folder just shows that it's stuck on "Fetching download information ..." even 15 minutes after it started. I tried restarting Xcode but didn't help. Internet connection is good. Any tips to get it working?
Can we use Icon Composer to drive an app icon for iOS 26 apps today? I get errors uploading a build to TestFlight internal testing about missing App icon dimensions for an iOS 26 app.
I am editing my iOS project in Xcode 16 and want to use the "Swift Compiler - Upcoming Features" section of the build settings to selectively enable the new Swift 6 language features.
I have read the instructions for doing this and have dowloaded an Apple sample project and can see that section under the project and target-level Build Settings in the sample project
However, when I open my Xcode project in XCode 16 that section does not appear.
Is there any way for me to influence how Xcode 16 displays the build settings?
In fact, no "Swift Compiler" sections appear at all under my project Build Settings (All | Combined). There is a "User-Defined" section that has the Swift Version, Compilation Mode and Optimization level.
The project itself is several years old and was on a very old project version. I have upgraded my project document format to "Xcode 16" but it made no difference.
I have compared my project and the sample project in a text editor and both seem to have similar structure. I tried removing unused and outdated settings from my project but that also had no effect.
Is there an alternative to deleting my project file and adding the source files to it? I have a large project with multiple targets so that would be something I'd rather not do.
I want to add SwiftUI to an existing package. Super simple to get started. It previews with Xcode 15.4, but gives an error on Xcode 16.0: JITError: Runtime linking failure
Anyone have an idea on what may be failing?
Full SwiftUI code:
import SwiftUI
struct Dashboard: View {
var body: some View {
Text("hello")
}
}
#Preview {
Dashboard()
}
Certain entitlements require special permission from Apple like DriverKit or Screentime API/Family controls.
Those entitlements are tied to the bundle IDs of the app.
If those entitlements have been granted for an app from developer A (personal account) and we transfer that app to developer B (organization account), including the bundle IDs, will those bundle IDs keep the entitlement?
Or will we need to re-request from the developer account B?
Any insights or experiences regarding this process would be greatly appreciated.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
DriverKit
Family Controls
Screen Time
Entitlements
I am using SwiftData for my model. Until Xcode 15 beta 4 I did not have issues. Since beta 5 I am receiving the following red warning multiple times:
'NSKeyedUnarchiveFromData' should not be used to for un-archiving and will be removed in a future release
This seems to be a CoreData warning. However, I am not using CoreData directly. I have no way to change the config of CoreData as used by SwiftData.
My model just uses UUID, Int, String, Double, some of them as optionals or Arrays. I only use one attribute (.unique).
I just want to rant why is Xcode such a bad ide and I wish Apple can do a better job on Xcode. Here's why:
The preview is so slow. Most of the times it's just faster for me to test on a real device.
It is so slow, and many times I need to force quite after it's being unresponsive for sometimes. When I'm working on larger projects, the loading time becomes extremely slow especially when there's other clients that might be reading the same files like a Git client or simply iCloud.
The breakpoint is so slow. I don't know why, is it an iOS thing? But when I'm on ASP.Net the breakpoints are super fast. For Xcode it takes a long time to pause and show data.
It's so big
I don't know why it is so hard for Apple to make their ide better. The community has been unsatisfied with Xcode for a long time. There's many tricks on the internet that you can find to help you resolve some issues with your project that's actually related to Xcode. Instead of using these tricks, Apple should just fix these issues. Learn from Intellij!
I am using Xcode from past 3 months and it was working fine but today after update the xcode is very slow and simulator is not loading
Here are logs that I am able to get
== DATE:
Monday, 23 September 2024 at 7:59:17 PM India Standard Time
2024-09-23T14:29:17Z
== PREVIEW UPDATE ERROR:
AppLaunchTimeoutError: Failed to launch app ”Test16Project.app” in reasonable time
The app ”Test16Project.app” did not launch on ”iPhone 16 Pro” in 15 seconds.
bundle identifier: text.Testing.Test16Project
device name: iPhone 16 Pro
path: /Users/newsbytes/Library/Developer/Xcode/DerivedData/Test16Project-aqxeusbqtdgwgrdxunllddzqyzwq/Build/Products/Debug-iphonesimulator/Test16Project.app
== PREVIEW UPDATE ERROR:
AppLaunchTimeoutError: Failed to launch app ”Test16Project.app” in reasonable time
The app ”Test16Project.app” did not launch on ”iPhone 16 Pro” in 15 seconds.
bundle identifier: text.Testing.Test16Project
device name: iPhone 16 Pro
path: /Users/newsbytes/Library/Developer/Xcode/DerivedData/Test16Project-aqxeusbqtdgwgrdxunllddzqyzwq/Build/Products/Debug-iphonesimulator/Test16Project.app
== VERSION INFO:
Tools: 16A242d
OS: 23G93
PID: 1116
Model: iMac
Arch: x86_64h
== ENVIRONMENT:
openFiles = [
/Users/newsbytes/Desktop/Test16Project/Test16Project/ContentView.swift
]
wantsNewBuildSystem = true
newBuildSystemAvailable = true
activeScheme = Test16Project
activeRunDestination = Any iOS Device variant iphoneos undefined_arch
workspaceArena = [x]
buildArena = [x]
buildableEntries = [
Test16Project.app
]
runMode = JIT Executor
== SELECTED RUN DESTINATION:
Generic | iOS 18.0 | iphoneos | undefined_arch | GenericiOS | no proxy
== EXECUTION MODE OVERRIDES:
Workspace JIT mode user setting: true
Falling back to Dynamic Replacement: false
== PACKAGE RESOLUTION ERRORS:
-------------------------------------
Translated Report (Full Report Below)
Incident Identifier: C461C69D-1F80-4A0D-B557-8A4425D0C259
CrashReporter Key: 238ECF50-D585-D26B-E449-45E2A49004C2
Hardware Model: iMac19,1
Process: MobileCal [7760]
Path: /Volumes/VOLUME/*/MobileCal.app/MobileCal
Identifier: com.apple.mobilecal
Version: 1.0 (1)
Code Type: X86-64 (Native)
Role: Non UI
Parent Process: launchd_sim [6541]
Coalition: com.apple.CoreSimulator.SimDevice.251B8E2E-21BD-4668-A0D8-D3DC5D1FA3BE [1654]
Responsible Process: SimulatorTrampoline [1174]
Date/Time: 2024-09-23 20:08:53.5192 +0530
Launch Time: 2024-09-23 20:08:13.8949 +0530
OS Version: macOS 14.6.1 (23G93)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: FRONTBOARD 2343432205
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:process-launch watchdog transgression: app<com.apple.mobilecal((null))>:7760 exhausted real (wall clock) time allowance of 30.00 seconds
ProcessVisibility: Background
ProcessState: Running
WatchdogEvent: process-launch
WatchdogVisibility: Background
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 54.760 (user 37.980, system 16.780), 28% CPU",
"Elapsed application CPU time (seconds): 1.595, 1% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Kernel Triage:
VM - (arg = 0x0) Fault was interrupted
VM - (arg = 0x0) Fault was interrupted
Thread 0 Crashed:
0 dyld_sim 0x10a14b6cb dyld3::MachOFile::trieWalk(Diagnostics&, unsigned char const*, unsigned char const*, char const*) + 179
1 dyld_sim 0x10a131e0c dyld4::Loader::hasExportedSymbol(Diagnostics&, dyld4::RuntimeState&, char const*, dyld4::Loader::ExportedSymbolMode, dyld4::Loader::ResolverMode, dyld4::Loader::ResolvedSymbol*, dyld3::Array<dyld4::Loader const*>) const + 358
2 dyld_sim 0x10a13115b dyld4::Loader::resolveSymbol(Diagnostics&, dyld4::RuntimeState&, int, char const, bool, bool, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool) const + 935
3 dyld_sim 0x10a130d69 invocation function for block in dyld4::Loader::forEachBindTarget(Diagnostics&, dyld4::RuntimeState&, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer) const + 116
4 dyld_sim 0x10a14e884 invocation function for block in mach_o::Fixups::forEachBindTarget_ChainedFixups(Diagnostics&, void (mach_o::Fixups::BindTargetInfo const&, bool&) block_pointer) const + 61
5 dyld_sim 0x10a14b062 dyld3::MachOFile::forEachChainedFixupTarget(Diagnostics&, dyld_chained_fixups_header const*, linkedit_data_command const*, void (int, char const*, unsigned long long, bool, bool&) block_pointer) + 198
6 dyld_sim 0x10a14e66c mach_o::Fixups::forEachBindTarget_ChainedFixups(Diagnostics&, void (mach_o::Fixups::BindTargetInfo const&, bool&) block_pointer) const + 130
7 dyld_sim 0x10a130cc9 invocation function for block in dyld4::Loader::forEachBindTarget(Diagnostics&, dyld4::RuntimeState&, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer) const + 255
8 dyld_sim 0x10a150433 dyld3::MachOAnalyzer::withVMLayout(Diagnostics&, void (mach_o::Layout const&) block_pointer) const + 827
9 dyld_sim 0x10a130bc4 dyld4::Loader::forEachBindTarget(Diagnostics&, dyld4::RuntimeState&, void (unsigned int, unsigned int, dyld4::Loader::ResolvedSymbol const&) block_pointer, bool, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer, void (dyld4::Loader::ResolvedSymbol const&, bool&) block_pointer) const + 92
10 dyld_sim 0x10a136426 dyld4::JustInTimeLoader::applyFixups(Diagnostics&, dyld4::RuntimeState&, dyld4::DyldCacheDataConstLazyScopedWriter&, bool, lsl::Vector<std::__1::pair<dyld4::Loader const*, char const*>>) const + 468
11 dyld_sim 0x10a120d78 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const) + 1617
12 dyld_sim 0x10a1206f4 _dyld_sim_prepare::$_0::operator()() const + 460
13 dyld_sim 0x10a12030e _dyld_sim_prepare + 782
14 dyld 0x119e22e21 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1558
15 dyld 0x119e215d1 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 279
16 dyld 0x119e212e4 start + 1812
Unknown error from LeakAgent. errorStatus: 2
Domain: XRMemoryGraphDebuggerErrorDomain
Code: 5
User Info: {
DVTErrorCreationDateKey = "2025-04-01 02:49:23 +0000";
DVTRadarComponentKey = 637311;
}
Event Metadata: com.apple.dt.memory_graph_capture : {
"debugSession_coalescedState" = 1;
"debugSession_currentStackFrame" = "mach_msg2_trap";
"debugSession_currentThread" = "Thread 1";
"debugSession_isSynthetic" = 0;
"debugSession_state" = 1;
"device_identifier" = "00008110-000154D00EEB801E";
"device_isCoreDevice" = 1;
"device_model" = "iPhone14,2";
"device_osBuild" = "18.4 (22E240)";
"device_platform" = "com.apple.platform.iphoneos";
"device_thinningType" = "iPhone14,2";
"dvt_coredevice_version" = "443.19";
"dvt_coresimulator_version" = "1010.10";
"dvt_mobiledevice_version" = "1784.102.1";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 2;
"launchSession_targetArch" = arm64;
"memgraphDebugger_duration_ms" = 0;
"memgraphDebugger_precedingCount" = 1;
"memgraphDebugger_status" = 5;
"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.3.2 (Build 24D81)
Xcode 16.3 (23785) (Build 16E140)
Timestamp: 2025-04-01T10:49:23+08:00
Xcode 16.3 repeatedly logs a same message very frequently, as fast as a single thread can. I use Instruments and Console and find out the log is:
Needs flush!
by -[DNTBrotliDecoder decodeBytes:length:] in DNTDocumentationSupport.
The call is on a single non-main thread. I've tried to clear caches and it seems doesn't change. Yet I don't know exact point when the logging starts since launch.
Fortunately, this thread is dispatched at E cores, bringing approximately 2 watts of power load to my Mac.
Environments:
macOS 15.4 (24E248)
Xcode 16.3 (16E140)
M4 chip
Have downloaded playgrounds 4.3 to my iPad Air running ipados 16.5.
Trying to use playground “Get started with Apps” but receiving message “Unsupported file format Get Started with Apps.swiftpm cannot be opened in Swift Playgrounds”.
I do not have Mac or windows PC so am stuck! Help ??
Topic:
Developer Tools & Services
SubTopic:
Swift Playground
Tags:
Swift
Swift Playground
Playground Support
I'm unable to reset simulators using the menu or the xcrun simctl tool:
<output of xcrun simctl list>
== Devices ==
-- iOS 17.5 --
iPhone SE (3rd generation) (5A06623A-173D-4C96-8DD3-3E9FE39A06F1) (Shutdown)
iPhone 15 (iOS 17.5) (F4329E8D-29BB-4EA7-8465-C11A98D04ED7) (Shutdown)
-- iOS 18.0 --
iPhone SE (3rd generation) (2DDE8F03-F8E1-4C1B-8E28-CD9B208F3FFA) (Shutdown)
iPhone 16 Pro (DE788688-8AC6-40A0-B25C-A56AA423798E) (Shutdown)
iPhone 16 Pro Max (1405184C-36A9-40F3-B0D0-4EEB88452883) (Shutdown)
iPhone 16 (0CBBA7DB-B20E-4F17-BBC5-910F1F6E1A0A) (Shutdown)
iPhone 16 Plus (95421C27-11A0-4FCF-A889-DAAE8557B271) (Shutdown)
== Device Pairs ==
~/Library``
❯ xcrun simctl erase 0CBBA7DB-B20E-4F17-BBC5-910F1F6E1A0A
An error was encountered processing the command (domain=NSCocoaErrorDomain, code=513):
“data” couldn’t be moved because you don’t have permission to access “Deleting-8FEDFF47-5B2F-4534-BCA2-036BBE68CE37”.
You don’t have permission.
To view or change permissions, select the item in the Finder and choose File > Get Info.
Underlying error (domain=NSPOSIXErrorDomain, code=1):
The operation couldn’t be completed. Operation not permitted
Operation not permitted
Xcode Version 16.0 (16A242d)
MacOS 15.0.1 (24A348)
Hi.
I am making my widgets ready for iOS 18 accented Home Screen widgets.
I am having issues setting the color of text to black.
This is required as I have a white button with black text and black icon.
I have tried manually, without using my Color, to set the text to .black or .white. It will always be white.
When applying the accent, I can use the .widgetAccentedRenderingMode(.fullColor) to turn the icon black, but I cannot do this for the text.
Button(intent: --intent--) {
HStack(alignment: .center) {
Text("Play")
.font(.system(size: 12, weight: .bold))
.foregroundStyle(Color("buttonAccentColor")) // Problem here, this is forced to be white, I want it to be black
Image("resume")
.renderingMode(.template)
.resizable()
.widgetAccentedRenderingMode(.fullColor) // This works
.aspectRatio(contentMode: .fit)
.frame(width: 16, height: 16)
.foregroundStyle(Color("buttonAccentColor"))
}
.padding(8)
.padding(.horizontal, 8)
}
.buttonStyle(.plain)
.background(Color("neutral100"))
.clipShape(Capsule())
Hello, in the past couple of weeks I've been experience some problems with xcode regarding the signing & capabilities.
I work in a company that makes customized apps for every of our clients and beacause of that we have about 200 targets in our project. In the past couple of weeks, I have been hanving trouble with the signing & capabilities in xcode. Some times is taking too long to load the poart where i select the team were the app will be upload and when it does it got stuck with the massege updating provisioning . There is anything that could have been done to not take too much time to the target get ready to be publiched?
Thanks in advanced for any help.
When I attempt to preview my code, I encounter an error message stating, “Cannot preview in this file: Failed to launch (App Name).” This issue is specific to this particular app. I attempted creating a new project, and that works fine.
This is what it says in the diagnostics:
| [Remote] JITError
|
| ==================================
|
| | [Remote] LLVMError
| |
| | LLVMError: LLVMError(description: "The file was not recognized as a valid object file")
Hi there,
How long does it take to make a switch from Apple individual to organization membership? I initiated the process a 2 weeks ago, and I am get to receive another notification from Apple. Keeps showing We’re processing your membership migration from an individual to an organization. And I am unable to submit an application that requires Organization account.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
Accounts
Developer Program
Recently, I’ve noticed that the Archive workflow on Xcode Cloud frequently fails randomly with the following error:
❌ Exporting for App Store Distribution failed. Please download the logs artifact for more information
I’m not sure if this issue is on my side or if it’s related to Xcode Cloud itself. Has anyone encountered a similar problem?