Search results for

Xcode

92,322 results found

Post

Replies

Boosts

Views

Activity

Reply to GenerationError -1 / 1026
Tahoe 26.2 beta 1, Xcode 26.1.1, iPhone Air simulator 26.1 This might be the issue. Could you try updating your Xcode to 26.2 such that your Mac OS and Xcode version match? The simulator for iPhone Air 26.1 is actually running the model on your Mac (26.2) so that version mismatch could be causing this error. Kindly let us know if that makes any difference!
Nov ’25
Reply to Icon Composer: Any way to add icons to the app bundle for older macOS versions?
@Etresoft The goal is to use older Asset Catalog based app icons for pre-26, and new Icon Composer based app icons for 26+. With Xcode 26.0, you could make it work using the --enable-icon-stack-fallback-generation=disabled setting. But as of Xcode 26.1, that setting is now being ignored and when the app is run, the Icon Composer based app icon is used for all versions, pre and post 26. While this thread is about macOS, it equally applies to iOS apps. I'm sticking with Xcode 26.0 because I want my old app icons for iOS 18 and older. Xcode 26.1 is now preventing this from being possible.
Nov ’25
Does Mac Catalyst support Background Processing?
I have an app for macOS that is built using Mac Catalyst. I need to perform some background processing. I'm using BGProcessingTaskRequest to schedule the request. I have also integrated CKSyncEngine so I need that to be able to perform its normal background processing. On iOS, when the user leaves the app, I can see a log message that the request was scheduled and a bit later I see log messages coming from the actual background task code. On macOS I ran the app from Xcode. I then quit the app (Cmd-q). I can see the log message that the request was scheduled. But the actual task is never run. In my test, I ran my app on a MacBook Pro running macOS 26.0. When I quit the app, I checked the log file in the app sandbox and saw the message that the task was scheduled. About 20 minutes later I closed the lid on the MacBook Pro for the night. I did not power down, it just went to sleep. Roughly 10 hours later I opened the lid on the MacBook Pro, logged in, and checked the log file. It had not been updated si
4
0
138
Nov ’25
PKPaymentButtonType.plain renders blank on iOS 26.1 when built with Xcode 26 (snapshot returns transparent image)
Hello Apple Team, I’ve encountered a regression in iOS 26.1 when building my app with Xcode 26 (iOS 26 SDK). The issue affects PKPaymentButtonType.plain, which now renders as fully invisible and produces transparent snapshots, even though the same code worked correctly in previous Xcode/iOS versions. This has a real-world impact because many apps generate static images from PKPaymentButton for payment selection UIs using UIGraphicsImageRenderer, layer.render(in:), or custom snapshot utilities. When using PKPaymentButton(paymentButtonType: .plain, paymentButtonStyle: .black) on iOS 26.1, when built with Xcode 26, the button: Appears blank / invisible Cannot be snapshotted Produces a fully transparent UIImage, even though the CGImage object exists Behaves differently than older SDKs (Xcode 16.x / iOS < 26.1 This regression only appears when compiling with the new SDK. Other button types work fine. Expected Behavior .plain button should render glyphs as do
2
0
162
Nov ’25
Xcode 26 | Coding Intelligence: Signing into ChatGPT Enterprise account yields error message
Hello, When trying to login into my ChatGPT Enterprise account within Xcode 26 to setup Coding Intelligence, after credentials and OTP have been accepted, I'm getting the following error message from ChatGPT/OpenAI: Route Error (400 ): { error: { message: No eligible ChatGPT workspaces found., type: invalid_request_error, param: null, code: chatgpt_account_missing } } What am I missing here? Any help is highly appreciated. Thank you!
0
0
67
Nov ’25
Reply to FoundationModel, context length, and testing
Hi Eduardo, If you're comfortable doing so, can you send the exact code you're using to run inference, either here or in a Feedback Assistant report to Foundation Models? I tried replicating the behavior from your YouTube video (very helpful by the way, thanks!) but I was not able to see this behavior in my Xcode and Instruments, running the same prompt as in your video. Incidentally, I noticed my tokenizer returns just 52 input tokens for the input: let instructions = You are a teacher. Today you talk about New Work City in USA. You must only answer questions about New York. let prompt= Talk about the statue of liberty ...which is significantly less than the 163 tokens in your video. Additionally, both with streaming and non-streaming, I see the input tokens are 52 and never change. This makes me suspect there might be something in your code that's triggering additional tokenization, but without seeing your inference code, I can't diagnose further. Thanks! - MB Researcher
Nov ’25
Xcode on external drive
Hello On Nov 11, 2025 I upgraded Xcode to 17B100 I found instructions to install it on an external drive because the old way of doing it (install to /Applications and move it to the desired location) didn't work. I downloaded the dmg, moved it to the external drive and the install worked I now have a usable Xcode sitting on my external drive The problem is, there are no simulators and the normal method of downloading them does not work. How do I install simulators (preferably on my external drive) for use by my externally installed Xcode (same drive)?
1
0
80
Nov ’25
Reply to Local Network permission appears to be ignored after reboot, even though it was granted
I ran your program and didn’t see anything weird, at least on the local network privacy front. Specifically: I open the project with Xcode 26.1. In Signing & Capabilities I chose my individual test team. I tweaked the default IP address and port to match a server on my local network. I built the project. And copied the resulting app to a VM running macOS 26.1. Its network interface is in bridged mode, so it’s effectively on my local network. In the VM, I moved the app to Applications. And launched it from the Finder. I clicked Test Connection. It prompted for local network access, which I allowed. It was able to connect. I clicked Test Connection again, just to make sure it’s still working. I restarted the VM. I launched the app and clicked Test Connection. It continued to work. I see various possibilities here: It’s possible that something is borked on your specific test machine. I recommend that you re-test on a VM, as described above. (As mentioned in TN3179, VMs are a good way to test this st
Nov ’25
Reply to "Signing certificate" and post-installation assignment fail due to IOPCIPrimaryMatch
Your answer is helpful. My previous question was strange because I didn't consider posting it in HTML. As a result, I wasn't able to properly communicate what I wanted to say. The symptoms I'm experiencing are as follows: With the following settings, the signing certificate status in Xcode shows as failed. IOPCIPrimaryMatch 0x00001916&0x0000FFFF The error message is as follows: doesn't include the com.apple.developer.driverkit.allow-any-userclient-access entitlement and doesn't match the entitlements file's value for the com.apple.developer.driverkit.transport.pci entitlement. With the following settings, the signing certificate status error in Xcode disappears, and building and driver installation succeed. However, the driver cannot be assigned to the device. IOPCIPrimaryMatch 0x00001916&0x0000FFFF To check for any minor errors in my work, I reverted to a sign to run locally environment and tried the following values. All errors disappeared, and my drivers and software worked correc
Topic: Code Signing SubTopic: Entitlements Tags:
Nov ’25
Reply to On macOS Network Extension Deactivation
[quote='807223021, JimmyKwak, /thread/807223, /profile/JimmyKwak'] I’m developing a macOS application signed with a Developer ID [/quote] I recommend that you use Apple Development signing for day-to-day development. That’s true in general — see The Care and Feeding of Developer ID — but it’s especially important for NE sysexen because of the issue discussed in Exporting a Developer ID Network Extension. [quote='807223021, JimmyKwak, /thread/807223, /profile/JimmyKwak'] 1-. The required entitlements and configurations for the container app [and] the Network Extension [/quote] Both the container app and the sys must be signed with com.apple.developer.networking.networkextension. This is an array. The values for that array are documented here. Apply these values as follows: For an appex, add the value corresponding to its provider type. A sysex can contain multiple providers; add the corresponding values for each of them. For the container app, union the values for all the embedded appexen and sysexen. IMPORTAN
Nov ’25
Reply to Adding days to a date using the result of a division operation
What version of Xcode are you using? What version of iOS/macOS/other OS are you building for? I tried it in Xcode 26.1.1 on macOS 15.7.2, targeting iOS 26.1 and it works fine, no errors. Here's a reduced version (that also works): var dateComponent = DateComponents() dateComponent.day = Int(200 / 80) let newDate: Date = Calendar.current.date(byAdding: dateComponent, to: Date.now)! print(newDate)
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’25
Async function doesn’t see external changes to an inout Bool in Release build
Title Why doesn’t this async function see external changes to an inout Bool in Release builds (but works in Debug)? Body I have a small helper function that waits for a Bool flag to become true with a timeout: public func test(binding value: inout Bool, timeout maximum: Int) async throws { var count = 0 while value == false { count += 1 try await Task.sleep(nanoseconds: 0_100_000_000) if value == true { return } if count > (maximum * 10) { return } } } I call like this: var isVPNConnected = false adapter.start(tunnelConfiguration: tunnelConfiguration) { [weak self] adapterError in guard let self = self else { return } if let adapterError = adapterError { } else { isVPNConnected = true } completionHandler(adapterError) } try await waitUntilTrue(binding: &isVPNConnected, timeout: 10) What I expect: test should keep looping until flag becomes true (or the timeout is hit). When the second task sets flag = true, the first task should see that change and return. What actually happens: In Debug builds this be
2
0
1.1k
Nov ’25