Search results for

“xcode github”

95,433 results found

Post

Replies

Boosts

Views

Activity

Reply to init?(coder: NSCoder) or init?(coder: (NSCoder?))
Swift’s superclass initialisation rules are complex, so it’s hard to answer questions like this without seeing a concrete example. Anyway, I most commonly see folks hit this when they’re creating a Cocoa view, so let’s look at that: import AppKit class MyView: NSView { var counter: Int override init(frame: NSRect) { self.counter = 0 super.init(frame: frame) } required init?(coder: NSCoder) { super.init(coder: coder) // ^ Property 'self.counter' not initialized at super.init call self.counter = 0 // A } } This fails because you have to initialise counter before calling super. Moving line A up a line fixes the problem. If you have an example of the other behaviour, please share it. Oh, and this was Xcode 26.2 with the macOS 26.2 SDK. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
3w
Reply to XCode Simulator Run Destination
[quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean Mac Catalyst … ? [/quote] No. [quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean … a iPad VM? [/quote] No. There’s no supported virtualisation mechanism for iPad. If you build in Xcode, you should expect that your submission will be run on the simulator. We call that out in the Swift Student Challenge Submission submission form. You can assume that the Xcode and simulator versions will be 26 or later, so it’s fine to use iOS 26 APIs. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
3w
Is Xcode Intelligence Ready for Production? My Experience and a Quest for Better Tools
I am looking to optimize my AI-assisted workflow within Xcode. Previously, my process was inefficient: Manually selecting and copying code snippets from Xcode into Gemini. Asking a specific question (e.g., Modify this to show an alertError message box). Copying the result back into Xcode. I attempted to switch to the new native Intelligence feature in Xcode to streamline this, but I found significant shortcomings: Latency: The response time is noticeably slow. Much slower than asking directly on Gemini 3 Pro. Lack of Context: The AI often fails to grasp the full project context. For example, it frequently claims it cannot see the code for ScannerView even though it is part of the project. I often have to prompt it multiple times before it finally finds the file. Is Xcode's Intelligence feature actually production-ready yet? If not, what tools do you recommend that integrate well with iOS development? To be clear, I am not looking for vibe coding. I have a clear gra
1
0
77
3w
Xcode 26.3 MCP server output missing `structredContent`
I am using official MCP SDK. According to official guide, Servers MUST provide structured results that conform to this schema. https://modelcontextprotocol.io/specification/draft/server/tools#output-schema I could see output schema defined, but result have no structured content. Current output schema: { name: XcodeListWindows, title: List Windows, description: Lists the current Xcode windows and their workspace information, inputSchema: { type: object, properties: { }, required: [ ], }, outputSchema: { type: object, properties: { message: { description: Description of all open Xcode windows, type: string, }, }, required: [ message, ], }, } Current response: { result: { content: [ { type: text, text: {message:* tabIdentifier: windowtab1, workspacePath: xxxn* tabIdentifier: windowtab2, workspacePath: xxxn}, }, ] } } Expected: { result: { content: [ { type: text, text: {message:* tabIdentifier: windowtab1, workspacePath: xxxn* tabIdentifier: windowtab2, workspacePath: xxxn}, }, ], structuredCon
1
0
133
3w
Are Xcode warnings like this safe to submit (won’t disqualify)?
I’m building a Swift Playgrounds app (.swiftpm) in Xcode 26.2 and I consistently see this warning, even on brand-new Swift Playgrounds apps created from the default template: “Skipping duplicate build file in Compile Sources build phase: /Users/.../.swiftpm/Media.xcassets” Everything builds and runs normally and all images/assets appear correctly, so it seems like it’s just an annoying warning. I’ve checked for duplicates and don’t see the asset catalog listed twice, but the warning still appears whenever I add an asset catalog to any playground project in Xcode. Is this warning safe to ignore for submission, and it won’t affect Swift Student Challenge eligibility?
5
0
311
3w
Reply to iOS App terminated by Watchdog (Signal 9) in Background state despite reporting call
Is RNVoipPushNotificationManager.addCompletionHandler causing a delay in the background run loop that triggers the Watchdog? I wouldn't think so, but it depends on what the full crash log shows. If you block inside your didReceiveIncomingPushWith delegate long enough then you can trigger this crash, but that time required is long enough that it doesn't really come up all that often. The more common problem is that an issue in your call reporting logic means that you DID in fact do this: Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP push. Should completion() be called immediately in Swift for the Background state, rather than waiting for VoipPushNotification.onVoipNotificationCompleted in JS? To be honest, the completion handler is largely irrelevant. It was added in iOS 11.0 as part of adding PKPushType.fileProvider support, but it isn't actually part of the call handling process. You should call it as part of general correctness, but failing to call it won'
Topic: App & System Services SubTopic: Core OS Tags:
4w
Reply to SPM Failed to verified fingerprint for SSH url since Tahoe 26.3
@Skyria said: I tried with a very minimal known_hosts containing only the ssh-ed25519 entry and that didn't change anything unfortunately. The intention of my prior post is to prefer fingerprints like ecdsa-sha2-nistp256 over ssh-ed25519 when they are available. The need to do so really depends on your hosted SCM provider, the currently accepted fingerprint types, and which one from known_hosts that Xcode will present for validation. So in your case of having only a single fingerprint that is failing, you can also try creating a new fingerprint with a different algorithm like ecdsa-sha2-nistp256 and append it to the end of the known_hosts file. — Ed Ford,  DTS Engineer
4w
Reply to CoreText crash on iOS 26.0 Simulator (Xcode 26.2) when rendering string with zero-width non-joiner and combining marks
Hi, Thank you for your reply. It is important work within the exact same environment. I am currently using Xcode 26.2 with the iOS 26.0 simulator iPhone 17 or iPhone17 pro (should happen of any of them), and I was able to reproduce the issue on other MacBooks as well with same environment. During our investigation of crash reports, we found that this issue occurs in production on certain iOS versions. Reproducing it locally in the simulator has been the only reliable way to validate the behavior. I would greatly appreciate your assistance with this matter. The problem does not appear to be related to UIKit. I can reproduce it in SwiftUI using Text as well. Unfortunately, the stack trace is not very informative. The crash also occurs when simply passing this specific character to Safari within the simulator. In most cases, the crash can be reproduced by adding the character to a project and building it with the iOS 26.0 simulator using iPhone 17. When running the same project on iOS 26.0.1, the issue
Topic: UI Frameworks SubTopic: General
4w
What is included in App Store Connect Analytics crash numbers?
The Crashes report in App Store Connect Analytics for my app is showing unexpectedly high crash rates, well over 2,000 per day (among roughly 150k active users per day). But I'm having trouble correlating this with other sources of stability reports: Firebase Crashlytics shows about 100 crashes per day over the last 90 days In the Xcode organizer, under “On-Screen Terminations” I see “Insufficient usage data available” which I take to mean very low numbers In the Xcode organizer, under Background Terminations it shows a little over 2 terminations per day, and well over 95% of those are System Pressure In the actual crash reports section of the Organizer, I have a little over 6,000 devices in the last two weeks encountering an issue that I think is 0xdead10cc, which I think would show up under Background Terminations as File Lock. As a side note, triaging these 0xdead10cc issues in the Organizer is a pain - see FB12292887. My main question here is what is included in App Store Connect's crash
0
0
45
4w
Reply to init?(coder: NSCoder) or init?(coder: (NSCoder?))
Swift’s superclass initialisation rules are complex, so it’s hard to answer questions like this without seeing a concrete example. Anyway, I most commonly see folks hit this when they’re creating a Cocoa view, so let’s look at that: import AppKit class MyView: NSView { var counter: Int override init(frame: NSRect) { self.counter = 0 super.init(frame: frame) } required init?(coder: NSCoder) { super.init(coder: coder) // ^ Property 'self.counter' not initialized at super.init call self.counter = 0 // A } } This fails because you have to initialise counter before calling super. Moving line A up a line fixes the problem. If you have an example of the other behaviour, please share it. Oh, and this was Xcode 26.2 with the macOS 26.2 SDK. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
3w
Reply to XCode Simulator Run Destination
[quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean Mac Catalyst … ? [/quote] No. [quote='816773021, millerswiftdev, /thread/816773, /profile/millerswiftdev'] Does this mean … a iPad VM? [/quote] No. There’s no supported virtualisation mechanism for iPad. If you build in Xcode, you should expect that your submission will be run on the simulator. We call that out in the Swift Student Challenge Submission submission form. You can assume that the Xcode and simulator versions will be 26 or later, so it’s fine to use iOS 26 APIs. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
3w
Is Xcode Intelligence Ready for Production? My Experience and a Quest for Better Tools
I am looking to optimize my AI-assisted workflow within Xcode. Previously, my process was inefficient: Manually selecting and copying code snippets from Xcode into Gemini. Asking a specific question (e.g., Modify this to show an alertError message box). Copying the result back into Xcode. I attempted to switch to the new native Intelligence feature in Xcode to streamline this, but I found significant shortcomings: Latency: The response time is noticeably slow. Much slower than asking directly on Gemini 3 Pro. Lack of Context: The AI often fails to grasp the full project context. For example, it frequently claims it cannot see the code for ScannerView even though it is part of the project. I often have to prompt it multiple times before it finally finds the file. Is Xcode's Intelligence feature actually production-ready yet? If not, what tools do you recommend that integrate well with iOS development? To be clear, I am not looking for vibe coding. I have a clear gra
Replies
1
Boosts
0
Views
77
Activity
3w
Reply to nonisolated Execution Differences Before and After Xcode 26.2
A way to ensure a function is running on background thread, is to use @concurrent private func runInBackgroundThread() async { ... } For more information, please refer to https://stackoverflow.com/questions/79867070/nonisolated-execution-differences-before-and-after-xcode-26-2
Replies
Boosts
Views
Activity
3w
Xcode 26.3 MCP server output missing `structredContent`
I am using official MCP SDK. According to official guide, Servers MUST provide structured results that conform to this schema. https://modelcontextprotocol.io/specification/draft/server/tools#output-schema I could see output schema defined, but result have no structured content. Current output schema: { name: XcodeListWindows, title: List Windows, description: Lists the current Xcode windows and their workspace information, inputSchema: { type: object, properties: { }, required: [ ], }, outputSchema: { type: object, properties: { message: { description: Description of all open Xcode windows, type: string, }, }, required: [ message, ], }, } Current response: { result: { content: [ { type: text, text: {message:* tabIdentifier: windowtab1, workspacePath: xxxn* tabIdentifier: windowtab2, workspacePath: xxxn}, }, ] } } Expected: { result: { content: [ { type: text, text: {message:* tabIdentifier: windowtab1, workspacePath: xxxn* tabIdentifier: windowtab2, workspacePath: xxxn}, }, ], structuredCon
Replies
1
Boosts
0
Views
133
Activity
3w
Are Xcode warnings like this safe to submit (won’t disqualify)?
I’m building a Swift Playgrounds app (.swiftpm) in Xcode 26.2 and I consistently see this warning, even on brand-new Swift Playgrounds apps created from the default template: “Skipping duplicate build file in Compile Sources build phase: /Users/.../.swiftpm/Media.xcassets” Everything builds and runs normally and all images/assets appear correctly, so it seems like it’s just an annoying warning. I’ve checked for duplicates and don’t see the asset catalog listed twice, but the warning still appears whenever I add an asset catalog to any playground project in Xcode. Is this warning safe to ignore for submission, and it won’t affect Swift Student Challenge eligibility?
Replies
5
Boosts
0
Views
311
Activity
3w
Reply to Your request couldn't be completed
I'm adding the Coding intelligence tag to make sure the Xcode team sees this. That tag is the best way to get more visibility on Xcode + agentic coding related issues!
Replies
Boosts
Views
Activity
4w
Reply to Xcode 26.3 RC - Claude Agent returns "Your request couldn't be completed"
I'm adding the Coding intelligence tag to make sure the Xcode team sees this. That tag is the best way to get more visibility on Xcode + agentic coding related issues!
Replies
Boosts
Views
Activity
4w
Reply to How can I use private AI agents in Xcode 26.3?
And FYI for anyone if you see this, make sure to use the Coding intelligence tag for coding intelligence related workflows in Xcode, e.g. agentic coding in Xcode.
Replies
Boosts
Views
Activity
4w
Reply to iOS App terminated by Watchdog (Signal 9) in Background state despite reporting call
Is RNVoipPushNotificationManager.addCompletionHandler causing a delay in the background run loop that triggers the Watchdog? I wouldn't think so, but it depends on what the full crash log shows. If you block inside your didReceiveIncomingPushWith delegate long enough then you can trigger this crash, but that time required is long enough that it doesn't really come up all that often. The more common problem is that an issue in your call reporting logic means that you DID in fact do this: Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP push. Should completion() be called immediately in Swift for the Background state, rather than waiting for VoipPushNotification.onVoipNotificationCompleted in JS? To be honest, the completion handler is largely irrelevant. It was added in iOS 11.0 as part of adding PKPushType.fileProvider support, but it isn't actually part of the call handling process. You should call it as part of general correctness, but failing to call it won'
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
4w
XCode Simulator Run Destination
I am looking through the rules and terms and it just says Xcode submissions will be run on a simulator. Does this mean Mac Catalyst or can it be run on a iPad VM? Or more so should we specify in the comments on where to run it. Thank you!
Replies
2
Boosts
0
Views
135
Activity
4w
Reply to SPM Failed to verified fingerprint for SSH url since Tahoe 26.3
@Skyria said: I tried with a very minimal known_hosts containing only the ssh-ed25519 entry and that didn't change anything unfortunately. The intention of my prior post is to prefer fingerprints like ecdsa-sha2-nistp256 over ssh-ed25519 when they are available. The need to do so really depends on your hosted SCM provider, the currently accepted fingerprint types, and which one from known_hosts that Xcode will present for validation. So in your case of having only a single fingerprint that is failing, you can also try creating a new fingerprint with a different algorithm like ecdsa-sha2-nistp256 and append it to the end of the known_hosts file. — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
4w
Reply to CoreText crash on iOS 26.0 Simulator (Xcode 26.2) when rendering string with zero-width non-joiner and combining marks
Hi, Thank you for your reply. It is important work within the exact same environment. I am currently using Xcode 26.2 with the iOS 26.0 simulator iPhone 17 or iPhone17 pro (should happen of any of them), and I was able to reproduce the issue on other MacBooks as well with same environment. During our investigation of crash reports, we found that this issue occurs in production on certain iOS versions. Reproducing it locally in the simulator has been the only reliable way to validate the behavior. I would greatly appreciate your assistance with this matter. The problem does not appear to be related to UIKit. I can reproduce it in SwiftUI using Text as well. Unfortunately, the stack trace is not very informative. The crash also occurs when simply passing this specific character to Safari within the simulator. In most cases, the crash can be reproduced by adding the character to a project and building it with the iOS 26.0 simulator using iPhone 17. When running the same project on iOS 26.0.1, the issue
Topic: UI Frameworks SubTopic: General
Replies
Boosts
Views
Activity
4w
What is included in App Store Connect Analytics crash numbers?
The Crashes report in App Store Connect Analytics for my app is showing unexpectedly high crash rates, well over 2,000 per day (among roughly 150k active users per day). But I'm having trouble correlating this with other sources of stability reports: Firebase Crashlytics shows about 100 crashes per day over the last 90 days In the Xcode organizer, under “On-Screen Terminations” I see “Insufficient usage data available” which I take to mean very low numbers In the Xcode organizer, under Background Terminations it shows a little over 2 terminations per day, and well over 95% of those are System Pressure In the actual crash reports section of the Organizer, I have a little over 6,000 devices in the last two weeks encountering an issue that I think is 0xdead10cc, which I think would show up under Background Terminations as File Lock. As a side note, triaging these 0xdead10cc issues in the Organizer is a pain - see FB12292887. My main question here is what is included in App Store Connect's crash
Replies
0
Boosts
0
Views
45
Activity
4w
Can we specify a simulator to be used for our app's evaluation?
I'm making my app in Xcode (as an app playground). I understand that the app will be run in a simulator when being evaluated if I choose the Xcode option on the submission form. However, my app looks significantly better on iPhones than on iPads. Is there a way for me to specify which device to use that will be respected by judges? What about device orientation? Thanks.
Replies
2
Boosts
0
Views
123
Activity
4w