Search results for

“xcode github”

96,033 results found

Post

Replies

Boosts

Views

Activity

SystemLanguageModel.Adapter leaks ~100MB of irrecoverable APFS disk space per call
FoundationModels framework, macOS Tahoe 26.4.1, MacBook Air M4. Loading a LoRA adapter via SystemLanguageModel.Adapter(fileURL:) leaks ~100MB of APFS disk space per invocation. The space is permanently consumed at the APFS block level with no corresponding file. Calls without an adapter show zero space loss. Running ~300 adapter calls in a benchmark loop leaked ~30GB and nearly filled a 500GB drive. The total unrecoverable phantom space is now ~239GB (461GB allocated on Data volume, 222GB visible to du). Reproduction: Build a CLI tool that loads a .fmadapter and runs one generation Measure before/after with df and du: Before: df free = 9.1 GB, du -smx /System/Volumes/Data = 227,519 MB After: df free = 9.0 GB, du -smx /System/Volumes/Data = 227,529 MB df delta: ~100 MB consumed du delta: +10 MB (background system activity) Phantom: ~90 MB -- no corresponding file anywhere on disk Without --adapter (same code, same model): zero space change du was run with sudo -x. Files modified during the ca
7
0
558
3w
Reply to Can’t paste into Simulator after updating to Xcode 26.4
@dser I don't see that issue on 26.5 beta 2. I went ahead and created a new project in SwiftUI struct ContentView: View { @State private var inputText: String = var body: some View { VStack { TextField(Test, text: $inputText) } } } I was able to copy and paste into the TextField. Can you provide me the steps you doing where you are still seeing the issue? Can you copy and paste the version of your Xcode including the build number? Thanks Albert
  Worldwide Developer Relations.
3w
Xcode documentation has disappeared
I'm using Xcode 26.4 for Swift development on macOS 26.4.1. It seems that the documentation for the Foundation framework has disappeared, possibly after an Xcode update (not the latest one). Foundation does not appear in the left-side list in the developer documentation window, and searching for URLSession, UndoManager finds no result. Autocomplete for these classes works. Quick help on URLSession shows just inherits from and conforms to, but no description and no link to a help page. I've tried deleting files in ~/Library/Developer so that it rebuilds the index, and also fully removing and reinstalling Xcode and rebooting, but nothing seems to solve it. Is there any way to get the full documentation back in Xcode.
0
0
66
3w
Reply to Disable automatic Liquid-Glass app icon generation
Thanks for the post, you can quickly turn off Liquid Glass on the info.plist file to see your assets without Liquid Glass using the UIDesignRequiresCompatibility key on your info.plist: https://developer.apple.com/documentation/BundleResources/Information-Property-List/UIDesignRequiresCompatibility Note: Check the note on that documentation as should be only used for testing not for deployment . I would also recommend for you to take a look at this great documentation. https://developer.apple.com/documentation/TechnologyOverviews/adopting-liquid-glass Also, by default, older versions of iOS automatically applied a gloss overlay to make all app icons look uniform. I do not know if that’s your case based on your description. To turn this off and have your raw PNGs display exactly as you designed them, you need to tell the system that your icon is. If you are using an Asset Catalog to manage your app icons, which is the standard for modern iOS development. Open your Xcode project and select your Asset C
3w
Embedded Collection View in SwiftUI offset issue
I have a collection view that covers all the screen and it is scrolling behavior is paging. This collection view is embedded in a UIViewRepresentable and used in a SwiftUI app. The issue is that when users rotate the devices, sometimes the CollectionView.contentOffset get miscalculated and shows 2 pages. This is the code that I'm using for the collectionView and collectionViewLayout: class PageFlowLayout: UICollectionViewFlowLayout { override class var layoutAttributesClass: AnyClass { UICollectionViewLayoutAttributes.self } private var calculatedAttributes: [UICollectionViewLayoutAttributes] = [] private var calculatedContentWidth: CGFloat = 0 private var calculatedContentHeight: CGFloat = 0 public weak var delegate: PageFlowLayoutDelegate? override var collectionViewContentSize: CGSize { return CGSize(width: self.calculatedContentWidth, height: self.calculatedContentHeight) } override init() { super.init() self.estimatedItemSize = .zero self.scrollDirection = .horizontal self.minimumLineSpacing = 0
6
0
201
3w
AVMetricMediaResourceRequestEvent returns error but no URLSession metrics for failed HLS playlist/segment requests
Hello, I am using AVMetrics to monitor HLS playback requests from AVPlayer, specifically AVMetricHLSPlaylistRequestEvent and AVMetricHLSMediaSegmentRequestEvent. These events provide an AVMetricMediaResourceRequestEvent. For successful requests, I can read URLSession metrics. However, when a request fails, the event contains an error but no URLSession metrics. I reproduced this by intercepting HLS playlist and segment requests with Charles Proxy and forcing failures on both the simulator and a physical device. Is this expected behavior? If so, is there any supported way to get timing details for failed HLS requests? I am using code like this: for try await event in playerItem.metrics(forType: AVMetricHLSPlaylistRequestEvent.self) { // ... } for try await event in playerItem.metrics(forType: AVMetricHLSMediaSegmentRequestEvent.self) { // ... } Also, the example shown in the WWDC session does not compile for me (XCode 26.2). I get the following error: Pack expansion requires that '' and 'AVMetricEvent'
2
0
241
3w
Reply to Clipboard issues with simulators
Thanks for this @d_andreikiv The release notes contain this fix: https://developer.apple.com/documentation/xcode-release-notes/xcode-26_5-release-notes Fixed: Pasteboard Synchronization within Simulator.app is currently not functioning. (173403967) (FB22340739) Albert
  Worldwide Developer Relations.
3w
Reply to Xcode 26.4: xcodebuild test crashes on iOS 15.2 Simulators before XCTest bootstrap due to ResultDataPublisher missing Foundation.URLRequest.httpMethod symbol
Hello, this issue should be resolved in Xcode 26.5 Beta 2. It was noted as a Known Issue in the release notes here: Testing Known Issues Tests fail to run on iOS 15 simulators (173337319) (FB22333623) However, despite being marked as a known issue, it should in fact be resolved in Beta 2, and we will update the release notes to reflect that. Please try the latest Xcode 26.5 release and file a Feedback if you continue to experience problems with testing on older simulators.
3w
Reply to Xcode Signing & Capabilities Errors
Thanks for your post. In my opinion and after to checking on Xcode myself, I think, these two errors are directly related and is because you don’t have a registered device? I could be wrong. Please check first if your Apple Developer account currently has no devices registered to it, Xcode cannot generate the provisioning profile, which causes both of those errors. If not please plug your iPhone into your Mac using a cable. Unlock your iPhone. If prompted, tap the trust button to trust the computer and enter your passcode. In Xcode, look at the very top center of the window. Click it and change the destination from a Simulator to your physical iPhone. This step is important. Xcode won't try to register the device unless it is selected as the active build destination. Go back to your project settings and select the Signing & Capabilities tab and check “Automatically manage signing is checked and your team is selected. Because your physical iPhone is now selected as the b
3w
Xcode Cloud is unable to connect to the repository. Reconnect the repository to resume builds.
I'm seeing this repository issue on my ASC Xcode Cloud page, and when I click Reconnect it shows me a lovely huge green checkmark with GitHub has been successfully connected. but the error remains, and I cannot kick off new builds.
Replies
1
Boosts
0
Views
103
Activity
3w
SystemLanguageModel.Adapter leaks ~100MB of irrecoverable APFS disk space per call
FoundationModels framework, macOS Tahoe 26.4.1, MacBook Air M4. Loading a LoRA adapter via SystemLanguageModel.Adapter(fileURL:) leaks ~100MB of APFS disk space per invocation. The space is permanently consumed at the APFS block level with no corresponding file. Calls without an adapter show zero space loss. Running ~300 adapter calls in a benchmark loop leaked ~30GB and nearly filled a 500GB drive. The total unrecoverable phantom space is now ~239GB (461GB allocated on Data volume, 222GB visible to du). Reproduction: Build a CLI tool that loads a .fmadapter and runs one generation Measure before/after with df and du: Before: df free = 9.1 GB, du -smx /System/Volumes/Data = 227,519 MB After: df free = 9.0 GB, du -smx /System/Volumes/Data = 227,529 MB df delta: ~100 MB consumed du delta: +10 MB (background system activity) Phantom: ~90 MB -- no corresponding file anywhere on disk Without --adapter (same code, same model): zero space change du was run with sudo -x. Files modified during the ca
Replies
7
Boosts
0
Views
558
Activity
3w
Reply to Can’t paste into Simulator after updating to Xcode 26.4
@dser I don't see that issue on 26.5 beta 2. I went ahead and created a new project in SwiftUI struct ContentView: View { @State private var inputText: String = var body: some View { VStack { TextField(Test, text: $inputText) } } } I was able to copy and paste into the TextField. Can you provide me the steps you doing where you are still seeing the issue? Can you copy and paste the version of your Xcode including the build number? Thanks Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
3w
Reply to Can’t paste into Simulator after updating to Xcode 26.4
I just tried downloading Xcode 26.5 Beta 2. It still doesn't allow to paste clipboard content into a simulator.
Replies
Boosts
Views
Activity
3w
Xcode documentation has disappeared
I'm using Xcode 26.4 for Swift development on macOS 26.4.1. It seems that the documentation for the Foundation framework has disappeared, possibly after an Xcode update (not the latest one). Foundation does not appear in the left-side list in the developer documentation window, and searching for URLSession, UndoManager finds no result. Autocomplete for these classes works. Quick help on URLSession shows just inherits from and conforms to, but no description and no link to a help page. I've tried deleting files in ~/Library/Developer so that it rebuilds the index, and also fully removing and reinstalling Xcode and rebooting, but nothing seems to solve it. Is there any way to get the full documentation back in Xcode.
Replies
0
Boosts
0
Views
66
Activity
3w
Reply to "Upload for App Store Connect" not getting past "Preparing to upload"
I deleted all the files and folders of Xcode on my Mac, re installed and it's still doing it..
Replies
Boosts
Views
Activity
3w
Stuck on "Sending analysis to App Store Connect
Hey, im running a MacBook Pro m2 26.4.1 and Xcode 26.4. I'm trying to upload to App Store Connect and it's getting stuck on Sending analysis to App Store Connect.... now what's interesting my Mac mini m4. same iOS works fine? Any ideas
Replies
2
Boosts
0
Views
176
Activity
3w
Reply to Disable automatic Liquid-Glass app icon generation
Thanks for the post, you can quickly turn off Liquid Glass on the info.plist file to see your assets without Liquid Glass using the UIDesignRequiresCompatibility key on your info.plist: https://developer.apple.com/documentation/BundleResources/Information-Property-List/UIDesignRequiresCompatibility Note: Check the note on that documentation as should be only used for testing not for deployment . I would also recommend for you to take a look at this great documentation. https://developer.apple.com/documentation/TechnologyOverviews/adopting-liquid-glass Also, by default, older versions of iOS automatically applied a gloss overlay to make all app icons look uniform. I do not know if that’s your case based on your description. To turn this off and have your raw PNGs display exactly as you designed them, you need to tell the system that your icon is. If you are using an Asset Catalog to manage your app icons, which is the standard for modern iOS development. Open your Xcode project and select your Asset C
Replies
Boosts
Views
Activity
3w
Embedded Collection View in SwiftUI offset issue
I have a collection view that covers all the screen and it is scrolling behavior is paging. This collection view is embedded in a UIViewRepresentable and used in a SwiftUI app. The issue is that when users rotate the devices, sometimes the CollectionView.contentOffset get miscalculated and shows 2 pages. This is the code that I'm using for the collectionView and collectionViewLayout: class PageFlowLayout: UICollectionViewFlowLayout { override class var layoutAttributesClass: AnyClass { UICollectionViewLayoutAttributes.self } private var calculatedAttributes: [UICollectionViewLayoutAttributes] = [] private var calculatedContentWidth: CGFloat = 0 private var calculatedContentHeight: CGFloat = 0 public weak var delegate: PageFlowLayoutDelegate? override var collectionViewContentSize: CGSize { return CGSize(width: self.calculatedContentWidth, height: self.calculatedContentHeight) } override init() { super.init() self.estimatedItemSize = .zero self.scrollDirection = .horizontal self.minimumLineSpacing = 0
Replies
6
Boosts
0
Views
201
Activity
3w
AVMetricMediaResourceRequestEvent returns error but no URLSession metrics for failed HLS playlist/segment requests
Hello, I am using AVMetrics to monitor HLS playback requests from AVPlayer, specifically AVMetricHLSPlaylistRequestEvent and AVMetricHLSMediaSegmentRequestEvent. These events provide an AVMetricMediaResourceRequestEvent. For successful requests, I can read URLSession metrics. However, when a request fails, the event contains an error but no URLSession metrics. I reproduced this by intercepting HLS playlist and segment requests with Charles Proxy and forcing failures on both the simulator and a physical device. Is this expected behavior? If so, is there any supported way to get timing details for failed HLS requests? I am using code like this: for try await event in playerItem.metrics(forType: AVMetricHLSPlaylistRequestEvent.self) { // ... } for try await event in playerItem.metrics(forType: AVMetricHLSMediaSegmentRequestEvent.self) { // ... } Also, the example shown in the WWDC session does not compile for me (XCode 26.2). I get the following error: Pack expansion requires that '' and 'AVMetricEvent'
Replies
2
Boosts
0
Views
241
Activity
3w
Reply to Can’t paste into Simulator after updating to Xcode 26.4
Thanks for all the post. Can you please verify with Xcode 26.5 Beta 2 Resolved Issues Fixed: Pasteboard Synchronization within Simulator.app is currently not functioning. https://developer.apple.com/documentation/xcode-release-notes/xcode-26_5-release-notes And let us know. Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
3w
Reply to Clipboard issues with simulators
Thanks for this @d_andreikiv The release notes contain this fix: https://developer.apple.com/documentation/xcode-release-notes/xcode-26_5-release-notes Fixed: Pasteboard Synchronization within Simulator.app is currently not functioning. (173403967) (FB22340739) Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
3w
Reply to Xcode 26.4: xcodebuild test crashes on iOS 15.2 Simulators before XCTest bootstrap due to ResultDataPublisher missing Foundation.URLRequest.httpMethod symbol
Hello, this issue should be resolved in Xcode 26.5 Beta 2. It was noted as a Known Issue in the release notes here: Testing Known Issues Tests fail to run on iOS 15 simulators (173337319) (FB22333623) However, despite being marked as a known issue, it should in fact be resolved in Beta 2, and we will update the release notes to reflect that. Please try the latest Xcode 26.5 release and file a Feedback if you continue to experience problems with testing on older simulators.
Replies
Boosts
Views
Activity
3w
Reply to Xcode Signing & Capabilities Errors
Thanks for your post. In my opinion and after to checking on Xcode myself, I think, these two errors are directly related and is because you don’t have a registered device? I could be wrong. Please check first if your Apple Developer account currently has no devices registered to it, Xcode cannot generate the provisioning profile, which causes both of those errors. If not please plug your iPhone into your Mac using a cable. Unlock your iPhone. If prompted, tap the trust button to trust the computer and enter your passcode. In Xcode, look at the very top center of the window. Click it and change the destination from a Simulator to your physical iPhone. This step is important. Xcode won't try to register the device unless it is selected as the active build destination. Go back to your project settings and select the Signing & Capabilities tab and check “Automatically manage signing is checked and your team is selected. Because your physical iPhone is now selected as the b
Replies
Boosts
Views
Activity
3w
Reply to Provisioning profiles marked "Ineligible" for Contactless Pass Provisioning even though entitlement is present in profile
Hi @DTS Engineer - we do not see the Deprecated permission, the ShareableCredential one appears but even if we check it - XCode still isn't allowing us to deploy. This is now materially impacting our business and we would appreciate rapid support.
Replies
Boosts
Views
Activity
3w