Search results for

“xcode github”

95,437 results found

Post

Replies

Boosts

Views

Activity

Reply to Title: Developer ID + DNS Proxy system extension: profile mismatch for `com.apple.developer.networking.networkextension`
As a follow‑up for anyone hitting the same issue: Per Quinn’s advice, I switched to manual signing outside Xcode and followed the “Exporting a Developer ID Network Extension” guidance. The code signing / notarization side now looks correct and works locally: Host app and DNS Proxy system extension are both signed with Developer ID Application for our team (for example, TEAMID1234). com.apple.developer.networking.networkextension in both host and system extension entitlements uses `dns-proxy-systemextension. The app bundle identifier is com.myapp.agent.MyProxy. The installer pkg is signed with Developer ID Installer: MyApp Inc (TEAMID1234), notarized with notarytool (status: Accepted), stapled, and passes `pkgutil --check-signature. On the test Mac (macOS 14.4, Apple Silicon), sudo installer -pkg MyProxy_…pkg -target / succeeds, the app appears in/Applications, and spctl --assess -vvv -t exec reportssource=Notarized Developer ID`. The app launches and the DNS Proxy system extension runs (any
3w
Run destination for my Xcode submission
My swift student challenge submission is an iPad app built in Xcode and I'm planning on selecting the Xcode 26 option for testing in the dropdown provided in the application. Just have to confirm that the run destination for the playground in Xcode will be an iPad simulator right? Recently I have seen many participants post their submission screenshot for iPhone renders so just wanted to confirm the run destination. Thank you👾
6
0
447
3w
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
Perplexity's API Xcode integration
Hi, I'm a novice on Xcode and I have just created an API Key in order to use Perplexity as a model Provider in Xcode 26.4 (beta). The key is valid and, Perplexity support replies this: _The issue is that Xcode expects specific endpoint structures that don't fully match Perplexity's API. Xcode requires a /v1/models endpoint to list available models, which Perplexity doesn't currently provide in that format. Our API uses /chat/completions rather than /v1/chat/completions as well._ Is there a workaround to integrate it and get the benefits of new Intelligence features with Perplexity? Error code is Provider is not valid - Models could not be fetched with the provided account details Thanks for your help
1
0
154
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:
4w
How to call API of tested app in UI Testing of Xcode7?
Hi guys, recently I've been investigating new UI Testing in Xcode7. There seems to be limited APIs we can call direct in UI test. Can I include header files and call public API of my tested app in UI Test? so that I can have more flexibility to set my app status before running test. I intent to call API method -(void)reloadURL:(NSURL *)url of my app in UI Test, but test failed with XCTRunner -[_XCTRunnerAppDelegate myAppDelegateUtils]: unrecoginzed selector sent to instance 0x7cf0a992fe10In Unit Test we can call any API of the tested app, does it support in UI Testing too? I'm a start learner of Xcode and its testing...could anyone help to answer this question? Thanks!
3
0
2k
4w
CoreText crash on iOS 26.0 Simulator (Xcode 26.2) when rendering string with zero-width non-joiner and combining marks
Environment: Xcode 26.2 Simulator: 26.0 / iPhone 17 Summary: Assigning a specific Unicode string to a UILabel (or any UITextView / text component backed by CoreText) causes an immediate crash. The string contains a visible base character followed by a zero-width non-joiner and two combining marks. let label = UILabel() label.text = u{274D}u{200C}u{1CD7}u{20DB} // ^ Crash in CoreText during text layout Crash stack trace: The crash occurs inside CoreText's glyph layout/shaping pipeline. The combining marks U+1CD7 and U+20DB appear to stack on the ZWNJ (which has no visible glyph), causing CoreText to fail during run shaping or bounding box calculation. Questions: Is this a known CoreText regression in the iOS 26.0 simulator? Is there a recommended fix or a more targeted workaround beyond stripping zero-width Unicode characters? Will this be addressed in an upcoming update
Topic: UI Frameworks SubTopic: General
3
0
146
4w
Xcode Cloud does not find my tag
I have a repo with hundreds of tags (we make a tag for every build and for every version, and it has a browser extension project pulled in as a subtree where all those commits can and do have version tags of their own). I am trying to create a simple tag-triggered workflow to release my app to the external users and the app store, so I want to trigger it every time I update and push an e.g. latest tag. I created a workflow and setup the tag trigger accordingly, but, in the workflow config, it says it can't find the tag. I saved the workflow anyway, however, when I try to manually trigger the workflow and browse the Tags tab, I only see a subset of the repo's tags. I suspect Xcode Cloud might be limiting the number of tags it pulls and consequently shows when searching tags. I think this is a bug/shortcoming of Xcode Cloud. Is there any way to work around this?
4
0
1.4k
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 Title: Developer ID + DNS Proxy system extension: profile mismatch for `com.apple.developer.networking.networkextension`
As a follow‑up for anyone hitting the same issue: Per Quinn’s advice, I switched to manual signing outside Xcode and followed the “Exporting a Developer ID Network Extension” guidance. The code signing / notarization side now looks correct and works locally: Host app and DNS Proxy system extension are both signed with Developer ID Application for our team (for example, TEAMID1234). com.apple.developer.networking.networkextension in both host and system extension entitlements uses `dns-proxy-systemextension. The app bundle identifier is com.myapp.agent.MyProxy. The installer pkg is signed with Developer ID Installer: MyApp Inc (TEAMID1234), notarized with notarytool (status: Accepted), stapled, and passes `pkgutil --check-signature. On the test Mac (macOS 14.4, Apple Silicon), sudo installer -pkg MyProxy_…pkg -target / succeeds, the app appears in/Applications, and spctl --assess -vvv -t exec reportssource=Notarized Developer ID`. The app launches and the DNS Proxy system extension runs (any
Replies
Boosts
Views
Activity
3w
Run destination for my Xcode submission
My swift student challenge submission is an iPad app built in Xcode and I'm planning on selecting the Xcode 26 option for testing in the dropdown provided in the application. Just have to confirm that the run destination for the playground in Xcode will be an iPad simulator right? Recently I have seen many participants post their submission screenshot for iPhone renders so just wanted to confirm the run destination. Thank you👾
Replies
6
Boosts
0
Views
447
Activity
3w
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
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
4w
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
Perplexity's API Xcode integration
Hi, I'm a novice on Xcode and I have just created an API Key in order to use Perplexity as a model Provider in Xcode 26.4 (beta). The key is valid and, Perplexity support replies this: _The issue is that Xcode expects specific endpoint structures that don't fully match Perplexity's API. Xcode requires a /v1/models endpoint to list available models, which Perplexity doesn't currently provide in that format. Our API uses /chat/completions rather than /v1/chat/completions as well._ Is there a workaround to integrate it and get the benefits of new Intelligence features with Perplexity? Error code is Provider is not valid - Models could not be fetched with the provided account details Thanks for your help
Replies
1
Boosts
0
Views
154
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
How to call API of tested app in UI Testing of Xcode7?
Hi guys, recently I've been investigating new UI Testing in Xcode7. There seems to be limited APIs we can call direct in UI test. Can I include header files and call public API of my tested app in UI Test? so that I can have more flexibility to set my app status before running test. I intent to call API method -(void)reloadURL:(NSURL *)url of my app in UI Test, but test failed with XCTRunner -[_XCTRunnerAppDelegate myAppDelegateUtils]: unrecoginzed selector sent to instance 0x7cf0a992fe10In Unit Test we can call any API of the tested app, does it support in UI Testing too? I'm a start learner of Xcode and its testing...could anyone help to answer this question? Thanks!
Replies
3
Boosts
0
Views
2k
Activity
4w
CoreText crash on iOS 26.0 Simulator (Xcode 26.2) when rendering string with zero-width non-joiner and combining marks
Environment: Xcode 26.2 Simulator: 26.0 / iPhone 17 Summary: Assigning a specific Unicode string to a UILabel (or any UITextView / text component backed by CoreText) causes an immediate crash. The string contains a visible base character followed by a zero-width non-joiner and two combining marks. let label = UILabel() label.text = u{274D}u{200C}u{1CD7}u{20DB} // ^ Crash in CoreText during text layout Crash stack trace: The crash occurs inside CoreText's glyph layout/shaping pipeline. The combining marks U+1CD7 and U+20DB appear to stack on the ZWNJ (which has no visible glyph), causing CoreText to fail during run shaping or bounding box calculation. Questions: Is this a known CoreText regression in the iOS 26.0 simulator? Is there a recommended fix or a more targeted workaround beyond stripping zero-width Unicode characters? Will this be addressed in an upcoming update
Topic: UI Frameworks SubTopic: General
Replies
3
Boosts
0
Views
146
Activity
4w
Xcode Cloud does not find my tag
I have a repo with hundreds of tags (we make a tag for every build and for every version, and it has a browser extension project pulled in as a subtree where all those commits can and do have version tags of their own). I am trying to create a simple tag-triggered workflow to release my app to the external users and the app store, so I want to trigger it every time I update and push an e.g. latest tag. I created a workflow and setup the tag trigger accordingly, but, in the workflow config, it says it can't find the tag. I saved the workflow anyway, however, when I try to manually trigger the workflow and browse the Tags tab, I only see a subset of the repo's tags. I suspect Xcode Cloud might be limiting the number of tags it pulls and consequently shows when searching tags. I think this is a bug/shortcoming of Xcode Cloud. Is there any way to work around this?
Replies
4
Boosts
0
Views
1.4k
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
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