Search results for

“xcode github”

95,445 results found

Post

Replies

Boosts

Views

Activity

Assets duplicating on Xcode 26.1 Beta 3
I've recently installed 26.1 Beta 3 alongside stable 26.0.1 When building my app with 26.0.1 the final .ipa size is ~17mb, however after building my app with 26.1 Beta 3 the size has increased up to ~22mb The main difference is Assets.car blowing from 1.1mb to 5.6mb (or 8.6mb if I include all icons settings). Upon examining I've found new liquid glass .icon file duplicating itself multiple times as png variants (any, dark, tinted, etc). Is anyone else experiencing this issue?
9
0
571
4w
Reply to Assets duplicating on Xcode 26.1 Beta 3
This is still an issue on 26.3. @SubvertDev What I ended up doing was extracting the Icon Composer rendered icon variants from an Assets.car built with Xcode 26.0.1 and adding those back to the project as pre-rendered icons to the assets catalog. Updating the icons in the future will be a pain, but at least for now the app's compressed thinned size hasn't gone up by >20MB when building with Xcode 26.1 and later.
4w
Rendering Multi-Page PDF with SwiftUI View
I have the following code that renders a one-page PDF: func render() -> URL { let renderer = ImageRenderer(content: pdfView()) let url = URL.documentsDirectory.appending(path: filename.pdf) renderer.render { size, context in var document = CGRect(x: 0, y: 0, width: 2550, height: 3300) guard let pdf = CGContext(url as CFURL, mediaBox: &document, nil) else { return } pdf.beginPDFPage(nil) context(pdf) pdf.endPDFPage() pdf.closePDF() } return url } func pdfView() -> some View { Text(View) } How can this be modified so that it renders a PDF with more than one page?
2
0
669
4w
Reply to SPM Failed to verified fingerprint for SSH url since Tahoe 26.3
While we're looking into how to address this, take a look at the contents of your ~/.ssh/known_hosts file. You may find that you have different entries for a host with algorithms like ssh-ed25519 or ecdsa-sha2-nistp256 listed. Try reordering the lines in this file so that the ecdsa-sha2-nistp256 line is last, and then quit and restart Xcode. — Ed Ford,  DTS Engineer
4w
Reply to Incorrect menu consistency warnings logged in Tahoe for NSStatusItem, performance issues related?
I also get these warnings for every NSMenu even when creating a blank project using XIB or Storyboards in Xcode. I think it's unreasonable to have an engineer tell us to just regard the logs as log noise, as @enquora pointed out. As developers we have to use the console to log important information and there's no way to filter this out since it's at the system level. I know this might seem like a minor problem in the bigger picture of bugs on Tahoe but this really should be looked at by Apple as we didn't have to deal with this on 15.4.
Topic: UI Frameworks SubTopic: AppKit Tags:
4w
Do SwiftUI Segmented Controls on macOS 26 support the icon and title label style?
On macOS 26.3, Xcode 26.3, why does a labelStyle of titleAndIcon not show both the title and the icon of a label? The label styles iconOnly and titleOnly behave as expected. Picker(Label Demo, selection: $selectedItem) { Label { Text(File) } icon: { Image(systemName: doc) } Label { Text(Folder) } icon: { Image(systemName: folder) } } .labelStyle(.titleAndIcon) .pickerStyle(.segmented) Note that there is no icon shown. Placing the .labelStyle modifier in different places has no effect. The icon is correctly shown when the labelStyle is set to .iconOnly. An NSSegmentedControl created with AppKit and presented in an NSViewRepresentable does correctly show titles and icons if configured appropriately. Tested on: macOS 26.3 (25D125) Xcode 26.3 (17C519) A brand new SwiftUI macOS App project.
2
0
94
4w
Reply to Broken autocomplete in Xcode 26
Thanks for the post, please read my first post, as still looking forward to know the build number and version of your Xcode. It's hard to see what's the version from a screenshot as Xcode UI does not change completely per version. Thanks!! Albert Pascual
  Worldwide Developer Relations.
4w
Xcode Playground and FoundationModels
I am trying to test FoundationModels in a Swift Playground in Xcode 26.2, macOS 26.3, and am running into an issue. The following simple code generates an error: import FoundationModels @Generable struct Specifications { @Guide(description: Search for color) var color: String } I see the following error message in the console: error: AIPlayground.playground:4:8: external macro implementation type 'FoundationModelsMacros.GenerableMacro' could not be found for macro 'Generable(description:)'; plugin for module 'FoundationModelsMacros' not found The Xcode editor does not appear to recognize the @Generable or @Guide macros, despite importing FoundationModels. What step/setting am I missing?
2
0
140
4w
Reply to iOS 26 UIGlassEffect on custom UIButton
Thanks for the post, this is very interesting as those controls without anything should be able to produce the glass effect if you are using Xcode 26.2+ and iOS 26.0+ macOS 26.0+. I am wondering about your complete set up and where you are testing at? Can you please provide me details of you set up information as well as the simple sample of how you are using UIKit? Your comment about userInteractionEnabled is something that got me interested about how are you using the API. When UIVisualEffectView.isUserInteractionEnabled = YES: The UIVisualEffectView captures the touch events to perform its interactive effect. I think this prevents the touch from reaching the UIButton subview, so the button's action never fires. When UIVisualEffectView.isUserInteractionEnabled = NO: The UIVisualEffectView allows touches to pass through to its subviews. The UIButton receives the touch and fires its action. However, it seems like you are hosting it somehow? This is the part where I ask for a focus simple project to s
Topic: UI Frameworks SubTopic: UIKit Tags:
4w
Reply to I cannot install Cocoapods
Thank you for your post. Cocoapods is a third-party component. I am confident that many developers here may have ideas on how to resolve your installation of cocoapods, as the error suggests that this is the issue. As I don’t have much experience with that. However, I wanted to bring to your attention the announcement regarding that component from last year on their blog about the future of that component. I would encourage you to go and read their announcements. I would encourage you to look into Xcode packages to consume external libraries. But this is a personal suggestion. Hope your installation of cocoapods gets fixed, I would recommend you to re-install it. Albert Pascual
  Worldwide Developer Relations.
4w
Reply to Xcode Playground and FoundationModels
Thanks for reaching out! To clarify, Foundation Models framework is currently not available in Swift Playgrounds, which you get if you do Xcode > File > New > Playground... Overall Swift Playgrounds only support a subset of the SDK. Foundation Models is supported in Xcode inline Playgrounds though, so if you do: import Playgrounds import FoundationModels @Generable struct Specifications { @Guide(description: Search for color) var color: String } #Playground { let session = LanguageModelSession() let response = try await session.respond( to: Help me search for orange, generating: Specifications.self ) } This should work.
4w
Reply to How can I use private AI agents in Xcode 26.3?
This week-end, I played a bit with Xcode 26.3 coding agent. I wanted to use Claude model served by Amazon Bedrock. I found three different ways, summarised in two blog posts. Part 1: https://stormacq.com/2026/02/19/xcode-openrouter-bedrock.html. Part 2: https://stormacq.com/2026/02/21/xcode-local-proxy-bedrock.html I wrote a small local proxy (In Swift) that translate OpenAI Chat Completion API Calls issued by Xcode into Anthropic message API on Bedrock. GitHub repo: https://github.com/sebsto/anthropic-proxy Don't install a binary proxy distributed as a DMG as you can't audit what that app does.
4w
Reply to Playgrounds app with the latest SDK (OS 26)
[quote='874040022, DTS Engineer, /thread/812429?answerId=874040022#874040022'] If and when there’s news, I’ll post an update here. [/quote] I’ve been closely following this issue internally. Unfortunately, I don’t have any good news to share. And given that submissions close in less than a week, I think the only reasonable option is for you to develop your submission based on the current choices, namely: Swift Playground 4.6.x as it’s currently shipping Xcode 26 or later, with the submission running in the simulator I’m sorry I don’t have better news )-: Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Feb ’26
Assets duplicating on Xcode 26.1 Beta 3
I've recently installed 26.1 Beta 3 alongside stable 26.0.1 When building my app with 26.0.1 the final .ipa size is ~17mb, however after building my app with 26.1 Beta 3 the size has increased up to ~22mb The main difference is Assets.car blowing from 1.1mb to 5.6mb (or 8.6mb if I include all icons settings). Upon examining I've found new liquid glass .icon file duplicating itself multiple times as png variants (any, dark, tinted, etc). Is anyone else experiencing this issue?
Replies
9
Boosts
0
Views
571
Activity
4w
Reply to Assets duplicating on Xcode 26.1 Beta 3
This is still an issue on 26.3. @SubvertDev What I ended up doing was extracting the Icon Composer rendered icon variants from an Assets.car built with Xcode 26.0.1 and adding those back to the project as pre-rendered icons to the assets catalog. Updating the icons in the future will be a pain, but at least for now the app's compressed thinned size hasn't gone up by >20MB when building with Xcode 26.1 and later.
Replies
Boosts
Views
Activity
4w
Rendering Multi-Page PDF with SwiftUI View
I have the following code that renders a one-page PDF: func render() -> URL { let renderer = ImageRenderer(content: pdfView()) let url = URL.documentsDirectory.appending(path: filename.pdf) renderer.render { size, context in var document = CGRect(x: 0, y: 0, width: 2550, height: 3300) guard let pdf = CGContext(url as CFURL, mediaBox: &document, nil) else { return } pdf.beginPDFPage(nil) context(pdf) pdf.endPDFPage() pdf.closePDF() } return url } func pdfView() -> some View { Text(View) } How can this be modified so that it renders a PDF with more than one page?
Replies
2
Boosts
0
Views
669
Activity
4w
Reply to SPM Failed to verified fingerprint for SSH url since Tahoe 26.3
While we're looking into how to address this, take a look at the contents of your ~/.ssh/known_hosts file. You may find that you have different entries for a host with algorithms like ssh-ed25519 or ecdsa-sha2-nistp256 listed. Try reordering the lines in this file so that the ecdsa-sha2-nistp256 line is last, and then quit and restart Xcode. — Ed Ford,  DTS Engineer
Replies
Boosts
Views
Activity
4w
Reply to Incorrect menu consistency warnings logged in Tahoe for NSStatusItem, performance issues related?
I also get these warnings for every NSMenu even when creating a blank project using XIB or Storyboards in Xcode. I think it's unreasonable to have an engineer tell us to just regard the logs as log noise, as @enquora pointed out. As developers we have to use the console to log important information and there's no way to filter this out since it's at the system level. I know this might seem like a minor problem in the bigger picture of bugs on Tahoe but this really should be looked at by Apple as we didn't have to deal with this on 15.4.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
4w
Do SwiftUI Segmented Controls on macOS 26 support the icon and title label style?
On macOS 26.3, Xcode 26.3, why does a labelStyle of titleAndIcon not show both the title and the icon of a label? The label styles iconOnly and titleOnly behave as expected. Picker(Label Demo, selection: $selectedItem) { Label { Text(File) } icon: { Image(systemName: doc) } Label { Text(Folder) } icon: { Image(systemName: folder) } } .labelStyle(.titleAndIcon) .pickerStyle(.segmented) Note that there is no icon shown. Placing the .labelStyle modifier in different places has no effect. The icon is correctly shown when the labelStyle is set to .iconOnly. An NSSegmentedControl created with AppKit and presented in an NSViewRepresentable does correctly show titles and icons if configured appropriately. Tested on: macOS 26.3 (25D125) Xcode 26.3 (17C519) A brand new SwiftUI macOS App project.
Replies
2
Boosts
0
Views
94
Activity
4w
Reply to Broken autocomplete in Xcode 26
@DTS Engineer , every Xcode version starting Xcode 16.0 Currently the problem exists on Xcode Version 26.2 (17C52) And please check the videos I've attached
Replies
Boosts
Views
Activity
4w
Reply to Broken autocomplete in Xcode 26
Thanks for the post, please read my first post, as still looking forward to know the build number and version of your Xcode. It's hard to see what's the version from a screenshot as Xcode UI does not change completely per version. Thanks!! Albert Pascual
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
4w
Xcode Playground and FoundationModels
I am trying to test FoundationModels in a Swift Playground in Xcode 26.2, macOS 26.3, and am running into an issue. The following simple code generates an error: import FoundationModels @Generable struct Specifications { @Guide(description: Search for color) var color: String } I see the following error message in the console: error: AIPlayground.playground:4:8: external macro implementation type 'FoundationModelsMacros.GenerableMacro' could not be found for macro 'Generable(description:)'; plugin for module 'FoundationModelsMacros' not found The Xcode editor does not appear to recognize the @Generable or @Guide macros, despite importing FoundationModels. What step/setting am I missing?
Replies
2
Boosts
0
Views
140
Activity
4w
Reply to iOS 26 UIGlassEffect on custom UIButton
Thanks for the post, this is very interesting as those controls without anything should be able to produce the glass effect if you are using Xcode 26.2+ and iOS 26.0+ macOS 26.0+. I am wondering about your complete set up and where you are testing at? Can you please provide me details of you set up information as well as the simple sample of how you are using UIKit? Your comment about userInteractionEnabled is something that got me interested about how are you using the API. When UIVisualEffectView.isUserInteractionEnabled = YES: The UIVisualEffectView captures the touch events to perform its interactive effect. I think this prevents the touch from reaching the UIButton subview, so the button's action never fires. When UIVisualEffectView.isUserInteractionEnabled = NO: The UIVisualEffectView allows touches to pass through to its subviews. The UIButton receives the touch and fires its action. However, it seems like you are hosting it somehow? This is the part where I ask for a focus simple project to s
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
4w
Reply to I cannot install Cocoapods
Thank you for your post. Cocoapods is a third-party component. I am confident that many developers here may have ideas on how to resolve your installation of cocoapods, as the error suggests that this is the issue. As I don’t have much experience with that. However, I wanted to bring to your attention the announcement regarding that component from last year on their blog about the future of that component. I would encourage you to go and read their announcements. I would encourage you to look into Xcode packages to consume external libraries. But this is a personal suggestion. Hope your installation of cocoapods gets fixed, I would recommend you to re-install it. Albert Pascual
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
4w
Reply to Xcode Playground and FoundationModels
Thanks for reaching out! To clarify, Foundation Models framework is currently not available in Swift Playgrounds, which you get if you do Xcode > File > New > Playground... Overall Swift Playgrounds only support a subset of the SDK. Foundation Models is supported in Xcode inline Playgrounds though, so if you do: import Playgrounds import FoundationModels @Generable struct Specifications { @Guide(description: Search for color) var color: String } #Playground { let session = LanguageModelSession() let response = try await session.respond( to: Help me search for orange, generating: Specifications.self ) } This should work.
Replies
Boosts
Views
Activity
4w
Reply to Do I need to request Packet Tunnel Provider entitlement from Apple to get my app working?
So I take that as a no I don't need to request anything from Apple and the option in Xcode is all I need? If so, then there is another issue on my side that I need to track down.
Replies
Boosts
Views
Activity
4w
Reply to How can I use private AI agents in Xcode 26.3?
This week-end, I played a bit with Xcode 26.3 coding agent. I wanted to use Claude model served by Amazon Bedrock. I found three different ways, summarised in two blog posts. Part 1: https://stormacq.com/2026/02/19/xcode-openrouter-bedrock.html. Part 2: https://stormacq.com/2026/02/21/xcode-local-proxy-bedrock.html I wrote a small local proxy (In Swift) that translate OpenAI Chat Completion API Calls issued by Xcode into Anthropic message API on Bedrock. GitHub repo: https://github.com/sebsto/anthropic-proxy Don't install a binary proxy distributed as a DMG as you can't audit what that app does.
Replies
Boosts
Views
Activity
4w
Reply to Playgrounds app with the latest SDK (OS 26)
[quote='874040022, DTS Engineer, /thread/812429?answerId=874040022#874040022'] If and when there’s news, I’ll post an update here. [/quote] I’ve been closely following this issue internally. Unfortunately, I don’t have any good news to share. And given that submissions close in less than a week, I think the only reasonable option is for you to develop your submission based on the current choices, namely: Swift Playground 4.6.x as it’s currently shipping Xcode 26 or later, with the submission running in the simulator I’m sorry I don’t have better news )-: Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Replies
Boosts
Views
Activity
Feb ’26