I'm attempting to run a basic Foundation Model prototype in Xcode 26, but I'm getting the error below, using the iPhone 16 simulator with iOS 26. Should these models be working yet? Do I need to be running macOS 26 for these to work? (I hope that's not it)
Error:
Passing along Model Catalog error: Error Domain=com.apple.UnifiedAssetFramework Code=5000 "There are no underlying assets (neither atomic instance nor asset roots) for consistency token for asset set com.apple.MobileAsset.UAF.FM.Overrides" UserInfo={NSLocalizedFailureReason=There are no underlying assets (neither atomic instance nor asset roots) for consistency token for asset set com.apple.MobileAsset.UAF.FM.Overrides} in response to ExecuteRequest
Playground to reproduce:
#Playground {
let session = LanguageModelSession()
do {
let response = try await session.respond(to: "What's happening?")
} catch {
let error = error
}
}
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi,
I'm getting an "Internal Error" in the CloudKit Dashboard for my user. This happens for the Private database across all of my apps, and in both Development and Production environments. (Screenshot attached).
If I login as a different user via the 'Act as iCloud Account' function, everything works fine - it seems to be an issue with my own user account.
In the JavaScript console, I see "Known response error: The request has failed due to an error.", but no other details (Screenshot attached)
I can see these failures in the Logs tag, showing as 'INTERNAL_ERROR' (another Screenshot)
It appears that the data on my account is currently not sync'ing to CloudKit, although I haven't found any other errors from within the app claiming that there is an issue (using the CoreData+CloudKit integration). I'm assuming my in-app errors and my dashboard errors are related, although it's difficult to say without more information on what these errors actually are.
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags:
CloudKit
CloudKit Console
CloudKit Dashboard
The 2024 WWDC video 'Meet FinanceKit' has a code example to get the latest 7 AccountBalance entries for a given account:
// Get latest 7 available balances for account
func getBalances(account: Account) async throws -> [AccountBalance] {
let sortDescriptor = SortDescriptor(\AccountBalance.asOfDate, order: .reverse)
let predicate = #Predicate<AccountBalance> { balance in
balance.available != nil &&
balance.accountId == account.id
}
let query = AccountBalanceQuery(
sortDescriptors: [sortDescriptor],
predicate: predicate,
limit: 7
)
return try await store.accountBalances(query: query).reversed()
}
This code does not compile, because the AccountBalance struct has no field named asOfDate - you need to inspect the currentBalance enum, switch over the enum type value, and then extract asOfDate from the associated value.
All of this can't be done in a KeyPath (as far as I know 🤷♂️), which I think means it's impossible to get recent balances, without specifying a date, or getting all balances, and then sorting them in memory.
Am I missing something? I'd love to be proven wrong :)
FB14076698
Topic:
Developer Tools & Services
SubTopic:
Xcode
I created a new Custom Product Page with a Deep Link, according to the WWDC '24 session "What's new in App Store Connect", and everything has been approved, but the Deep Link does not appear to be working. Is this feature fully operational yet?
When the app is installed via this product page, the user should be directed to a specific page in the app, however this does not happen. It does work properly when installing directly via the Deep Link
This is the link to the product page: https://apps.apple.com/app/bills-to-budget/id1636872963?ppid=ff079a93-be32-43fe-a88e-ad97a68ff725
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
App Store
App Store Connect
Marketing
Apple Search Ads
I just had an awesome lab for FinanceKit, and I have a few pieces of feedback to file, but I don't find FinanceKit as an SDK option in Feedback Assistant.
I first went into "Developer Technologies & SDKs", and then selected 'iOS' as the platform, but 'FinanceKit' is not in the list 🤷♂️
I can select 'Something else not on this list', but I don't want the feedback to get lost! Please help!
Using the 'Create SwiftData Code...' action in Xcode results in Model that have bi-directional relationships between many of my entities (which is correct - my Core Data model includes this).
All of these Relationships are marked as invalid, however, with the following error:
Circular reference resolving attached macro 'Relationship'
Most ORM's, in my experience, have a way to mark one end of a bidirectional relationship as an 'owner'. Is there something similar available in SwiftData, or is this scenario handled in a different way? Or am I going to need to remove all of my bidirectional relationships?
Can the behavior of NSPersistentCloudKitContainer be described in App Extensions? I have seen Forum entries that describe its behavior in Widgets - it will save data locally, but will not sync that data until the app is opened.
This is a pretty major downsides for any apps that use SiriKit Extensions to allow for quick, simple data entry -- not syncing the data until the app is opened (which could be days later) would be a deal breaker.
I hope this can be clearly described, and improved (if my understanding is correct) - I've filed a feedback to document this as well: FB9170155
Trying to request a HomeKit lab, and there's no 'Topic' listed in the form - when submitting via the Developer app, it prevents me from submitting the request. I was able to do it via the web, but not via the app!
When using the SidebarListStyle in iOS 14.2 beta 2, all color options are broken, and the view is presented entirely in black and white. This includes both accentColor and listItemTint.
I made a very small sample project to prove this, and submitted it on https://feedbackassistant.apple.com/feedback/8775388
Simply removing the .listStyle modifier brings color back, but of course, it loses the styling
struct ContentView: View {
var body: some View {
NavigationView {
List {
Label(
title: { Text("Should be the accent color") },
icon: { Image(systemName: "gear") }
)
Label(
title: { Text("Should be Red") },
icon: { Image(systemName: "questionmark") }
)
.listItemTint(.red)
}
.listStyle(SidebarListStyle())
}
}
}
Typically, using @Published on a property, and then subscribing to the publisher that is created will give you willSet semantics - your subscriber will be notified with the new values before the variable has actually been set.
I've observed that if my subscriber receives the notification on a different thread, such as RunLoop.main, the result is that I get didSet semantics - my subscriber is notified after the variable has been set. My question is this: how reliable is this? Can I expect this to be the case 100% of the time, or am I setting myself up for a race condition?
I am creating a Sidebar-style view for an iPad app, using the NavigationLink(destination:tag:selection:label) to control the detail view. Visually, everything appears to be working correctly, however a subtle issue exists when tapping an item to change the selection. The contents of my List are being processed twice, which is observed by putting a breakpoint at the first Text component in the code below - the first time through, my selectedHomeId value is populated correctly (and does load the HomeView correctly), however the second time through, the selectedSignalId is nil.
This does not impact the HomeView, and the app is still usable, however it does clear out the SceneStorage that I'm attempting to configure, and it results in the HomeView not being able to respond to changes in my model.
		@SceneStorage("selectedHome")
		var selectedHomeId:String?
		var sidebarType = SidebarType.full
		var body: some View {
				List {
						if sidebarType == .full || sidebarType == .homes {
								Text("Homes")
										.font(.headline)
								ForEach(homeStore.homes) { home in
										NavigationLink(destination: HomeView(home: home), tag: home.id.description, selection: $selectedHomeId) {
												Label(home.name, systemImage: "house")
										}
								}
						}
				}
				.listStyle(SidebarListStyle())
				.navigationTitle(sidebarType == .homes ? "Homes" : "Other")
				.navigationBarItems(trailing: SettingsButtonView())
		}
I've also filed a feedback for this (FB7845359) - if any other developers have experienced this, please file your own as well!
I would love to see more integration between HomeKit and Siri Shortcuts - a common request I get for my app, Home Flash for HomeKit, is to flash a light when motion is detected, or a button is pressed, but it's not possible today.
I could envision this being implemented in one of two ways: Allow a scene to execute a Siri Intent, so an 'Intruder' scene could turn on my porch light, and trigger a Siri Intent either on my phone or Apple TV to flash my bedroom or office light. This is my preferred way, since as a 3rd party developer, I have the ability to create Scene's for my users.
Add more flexibility to HomeKit Automations that are Converted to Shortcuts, so that I could direct my users in how to do this