Hi Developers,
I use xcodebuild command with "-authenticationKeyIssuerID" params, but I got some error message. I'm sure my settings is right, so is there any advise.
Unable to find a team with the given Content Provider ID '52f5e342-ae11-4fbb-b765-f19ae4bf80c7' to which you belong. Please contact Apple Developer Program Support. https://developer.apple.com/support
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
Created
We are unable to access images from an Asset catalog that is part of a dynamic framework that is mergeable, on Debug configuration, when running on an actual device under certain circumstances when using Xcode 16.4 and targeting iOS.
If anywhere in the app we call the Bundle(identifier:) initializer for whatever ID, subsequent calls to UIImage(named:in:with:) for images in the framework's bundle return nil. We have verified that the bundle (path) and the name of image & assets target memberships are correct, and that Assets.car has the images.
Additionally the only way to make UIImage(named:in:with:) work is to use Bundle(for:) where BundleFinder is part of the mergeable library, non private NSObject class. Anything else and the re-exported bundle is returned which has no assets.
hi there, can someone answer if i have shallow water entitlement is there any way to add my app under dive category in the action button settings and select my app as the one beside default depth app. No matter what i change in the logic flow my app isn't there. The only one available is depth. What I would like to see: two options one is depth and another my diving app to select. What do I need to make it happen.
Thanks
Topic:
Developer Tools & Services
SubTopic:
Xcode
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’m using the latest Xcode beta RC(Version 26.0 (17A321)), and when I try to preview my SwiftUI views, the “Mac (Designed for iPad)” option is missing from the preview device list.
First the Model:
import Foundation
import SwiftData
//Model for Earned Value Analysis
@Model
final class CostReport{
var aCWP: Double //Actual Cost of Work Performed
var bCWP: Double //Budgeted Cost of Work Performed
var bCWS: Double // Budgeted Cost of Work Scheduled
var cumACWP: Double// Cumlative Actual Cost of Work Performed
var cumBCWP: Double // Cumlative Budgeted Cost of Work Performed
var cumBCWS: Double // Cumlative Budgeted Cost of Work Scheduled
var startDateOfPeriod: Date
var endDateOfPeriod: Date
var contract: Contract?
init(aCWP: Double = 0.0, bCWP: Double = 0.0, bCWS: Double = 0.0, cumACWP: Double = 0.0, cumBCWP: Double = 0.0, cumBCWS: Double = 0.0, startDateOfPeriod: Date = .now, endDateOfPeriod: Date = .now, contract: Contract) {
self.aCWP = aCWP
self.bCWP = bCWP
self.bCWS = bCWS
self.cumACWP = cumACWP
self.cumBCWP = cumBCWP
self.cumBCWS = cumBCWS
self.startDateOfPeriod = startDateOfPeriod
self.endDateOfPeriod = endDateOfPeriod
self.contract = contract
}
}
@Model //Model for Contracts
final class Contract{
var costReports: [CostReport]
var contractType: ContractType?
@Attribute(.unique)var contractNumber: String
@Attribute(.unique)var contractName: String
var startDate: Date
var endDate: Date
var contractValue: Double
var contractorName: String
var contractorContact: String
var contractorPhone: String
var contractorEmail: String
init(costReports: [CostReport], contractType: ContractType, contractNumber: String = "", contractName: String = "", startDate: Date = .now, endDate: Date = .now, contractValue: Double = 0.0, contractorName: String = "", contractorContact: String = "", contractorPhone: String = "", contractorEmail: String = "") {
self.costReports = costReports
self.contractType = contractType
self.contractNumber = contractNumber
self.contractName = contractName
self.startDate = startDate
self.endDate = endDate
self.contractValue = contractValue
self.contractorName = contractorName
self.contractorContact = contractorContact
self.contractorPhone = contractorPhone
self.contractorEmail = contractorEmail
}
}
@Model //Model for contract types
final class ContractType{
var contracts: [Contract]
@Attribute(.unique)var typeName: String
@Attribute(.unique)var typeCode: String
var typeDescription: String
init(contracts: [Contract], typeName: String = "", typeCode: String = "", typeDescription: String = "") {
self.contracts = contracts
self.typeName = typeName
self.typeCode = typeCode
self.typeDescription = typeDescription
}
}
ContractType has a one to many relationship to Contract. Contract has a one to many relationship with CostReport. The ContractTypes can vary depending on the users situation so I need the user to be able to enter ContractTypes.
Code for that:
import SwiftUI
import SwiftData
struct EnterContractTypes: View {
@Environment(.modelContext) var managedObjectContext
@Query private var contracts: [Contract]
@Query private var contractTypes: [ContractType]
@State private var typeName: String = ""
@State private var typeCode: String = ""
@State private var typeDescription: String = ""
var body: some View {
Form {
Section(header: Text("Enter Contract Type")
.foregroundStyle(Color(.green))
.bold()
.font(.largeTitle)) {
TextField("Name", text: $typeName)
.frame(width: 400, height: 40)
TextField("Code", text: $typeCode)
.frame(width: 400, height: 40)
TextField("Description", text: $typeDescription, axis: .vertical)
.frame(width: 600, height: 60)
}
}
.frame(width:1000, height:500)
}
func save() {
let newContractType = ContractType(context: managedObjectContext)
newContractType.typeName = typeName
newContractType.typeCode = typeCode
newContractType.typeDescription = typeDescription
try? managedObjectContext.save()
The "let newContractType = ContractType(context: managedObjectContext)" is where the error happens. It says there is an extra argument in the context call.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Is there any way to stop Xcode from randomly re-using a tab when you click on a file in the project treeview?
I never, never, NEVER want the file in the current tab replaced. If the clicked-on file is not already open in a tab, I want a new one. Every time. But in Xcode, you sometimes get a new tab, and sometimes don't. I can't find any pattern to this absurd behavior.
Even double-clicking doesn't produce a new tab, even though the Navigation settings say, "Double-click: Opens tab in focused editor."
WTH is this thing doing, and how do we stop it?
This is Xcode 16.4.
Topic:
Developer Tools & Services
SubTopic:
Xcode
I'm adapting my app on iOS 26, and I just found out withAnimation fuction's completion not called in some cases. The same code on iOS 18 was fine. The problem is very fatal, When you check the api, it saids "The completion callback will always be fired exactly one time",but this time it doens't work.
I'm using the Xcode Version 26.0 (17A321) RC1,still not test on a real devcie yet.
I've alluded to this before in these posts
and there are some posts from others about this, e.g.
https://developer.apple.com/forums/thread/759845
and I've filed some bugs related to the behavior.
FB20212935
FB19451832
FB19450508
FB19450162
FB19449747
Our company owns the USB vendor IDs X and Y . We've been granted a USB transport entitlement for both of those IDs.
The crux of the problem is that I want to build a driver for USB vendor ID Y. Xcode's well-hidden auto-generated provisioning profile for my driver contains
com.apple.developer.driverkit.transport.usb:
{
idVendor = X;
}
which is obviously not what I want. Xcode fails to provision the target.
But I have another, much older project with an auto-generated provisioning profile containing
com.apple.developer.driverkit.transport.usb:
{
idVendor = X;
}, {
idVendor = Y;
}
I can build a driver for idVendor Y without problems in this project. But that doesn't help me with my new project.
What can I do to fix this? Do I need to request our entitlements again? I fear if I do so, something will get lost in the process. Is there a way to inspect what we have already been granted? - I can't see a "managed entitlements" section on the account portal. I can go through the motions of making a new App ID, then I can see that some Capability Request have been "Assigned", but I don't see what their values are.
A second question I have is about the userclient-access entitlement. Are these tied to the bundle ID of the app which claims the access? In other words, if I have two drivers
com.mycompany.app1.driver1
com.mycompany.app2.driver2
and I would like to have com.mycompany.app1 communicate with com.mycompany.app1.driver1, I would ask for the com.apple.developer.driverkit.userclient-access capability for com.mycompany.app1.driver1. But must I request that access for each specific app bundle ID that will talk to that driver, or once the entitlement is granted, can I use com.apple.developer.driverkit.userclient-access = { com.mycompany.app1.driver1 } in any of my apps?
I am getting this warning when compiling: Failed to generate flattened icon stack for icon named ...
Is it safe to ignore it? Is there a way to fix it?
Thank you.
My app start up has became horrid. It takes 1 minute to open SQLlite database for my rust core. Impossible to work...
I have Address Sanitizer, Thread Perf Checker and Thread Sanitizer disabled...
Does anyone have problems with the Pull Request functionality in Xcode 26 RC?
I can’t create a new pull request inside Xcode (it always redirects me to the web page).
I can’t see changes within an existing pull request (I only see the PR name; I can’t even approve it or request changes).
I’ve had this problem since beta 1 of Xcode 26.
Does anyone know how to fix this?
Topic:
Developer Tools & Services
SubTopic:
Xcode
I currently do not want to upgrade to macOS 26, but I still want to install the latest Xcode. Is it required to install macOS 26 if I were to get Xcode 26?
Topic:
Developer Tools & Services
SubTopic:
Xcode
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.
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?
A new version of the Configuring your app to use alternate app icons sample code is available for download.
The sample uses Icon Composer files and supports iOS 18 or later.
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!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
App Store Connect
App Submission
Icon Composer
I am on the macOS 26 beta, and I am receiving this error. I was able to install before, then I decided to uninstall, now I need it again.
Topic:
Developer Tools & Services
SubTopic:
Xcode
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!
Topic:
Developer Tools & Services
SubTopic:
Xcode
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?