Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,370 results found

Post

Replies

Boosts

Views

Activity

[Urgent] Bug Fix Update in Review for 12 Days — Collaboration Event Ends May 29
Hello Apple Review Team and Community, We are requesting expedited review of the bug fix update for App ID 6449141384. Despite multiple appeals and supporting materials submitted, rejections under Guideline 4.1(a) have continued for 12 days, and only 15 days remain until the event ends. Please review the details below. App Information App Name: HungryAliens / QWER x HungryAliens (iOS) App ID: 6449141384 Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) → Resubmitted with explanation of why the app is not a copycat May 7–8: Rejected again under Guideline 4.1(a) (Copycat) → Resubmitted with detailed explanation and supporting materials May 12: Contacted Apple Developer Support to explain the situation and request assistance → No response received to date May 13: New build resubmitted → Currently delayed in review Why This Is Urgent This update contains bug fixes for an active, ongoing collaboration event. The event ends on May 29 — 15 days from now. If the update is n
2
0
425
1w
Reply to App Store Button Price Shows Incorrect NonExistent Product
I figured out what was going on and putting this here in case it helps anyone else in the future worried why they were seeing wrong prices for their App. In my case, there were two factors First: I had filled in the Pricing and Availability (P&A) section in App Store Connect
, that was in addition to In-App Purchases (which I subsequently deleted i.e. the 'NonExistent Product' in the Post Title) and also filled in Subscriptions. I assumed the Store Listing button took its price from IAP. Wrong. It takes its price from P&A. Finding this out was thanks to AI/LLM. An hour after deleting the P&A price I started seeing the correct price in the Store, but inconsistently, sometimes correct, sometimes wrong. Second: The inconsistency was apparent when checking the direct link to the App in a web browser. For one, I hadn't noticed the URL included the two-character country code e.g. /us/ or /gb/ etc for the country storefront. The prices for my six storefronts differed, half migh
1w
17 days without approval — new build stuck in review queue. Is this a process issue?
Hi, App ID 6449141384 has been stuck in App Review for 17 days. After repeated rejections on a previous build, I submitted a new build — but review hasn't started at all. I'd like to request that an Apple reviewer check the status and expedite the review process. If anyone has experienced the same issue or knows the escalation path, your input would also be appreciated. Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) May 7: Resubmitted with official collaboration authorization document → Rejected again under the same guideline May 12: Contacted Developer Support → No response to date May 13: New build submitted → Review has not started as of today Supporting Documentation The following was submitted in the review notes: Official collaboration authorization document from the IP holder (QWER, a K-pop group) Link to the IP holder's official channel promoting the app: https://youtu.be/vI6QCGZ5t0s Despite this, we have not received any specific guidance on why the reje
1
0
343
1w
AVAudioSession gets interrupted when closing a window
I have a visionOS app that plays audio using AVAudioEngine and presents both a window and an immersive space. If I close the window, the audio session gets interrupted and attempting to restart the session and audio engine has no effect. I need to dismiss the app, then reopen it, which reopens the main window, in order for audio to start playing again. This is in all visionOS 2 betas. Note that I have background audio enabled for my app.
4
0
1.4k
1w
AppKit & State Restoration: Windows Auto Closing On App Quit Breaks State Restoration
I probably should know the answer to this but I don't, so I'll ask. When I enable state restoration and have like three windows open, and I quit the app (via Quit menu, not 'Stop In Xcode') the following happens: -NSApplication calls _closeForTermination on all the windows and this causes state restoration to fail to restore these open windows on next app launch. This behavior is not aligned with the behavior of apps like Mail. If I have two Viewer Windows open in Mail and I quit the app, when I relaunch the two viewer windows are restored. I can of course track this and write data to restore for these auto closed window myself but shouldn't there be an easy way to opt in to this behavior?
1
0
193
1w
Reply to After binding to NSBrowser indexPaths the browser assumes I'm using NSBrowserCell and calls unimplemented methods on my NSCell subclass
Thanks a lot for the reply! I had a bug I recently introduced in my app where I missed syncing model/UI with a selection change. I was already using the target-action but my app is pretty large and also programmatically changes the selection in many different places. As far as a I know there is no way to pick up all selection changes globally (other than the binding) so I decided to try the binding but that didn't work out as described in the original post. So instead of the binding to resolve I'm now overriding four different set methods (in addition to responding in the target-action). - (void)selectRow:(NSInteger)row inColumn:(NSInteger)column; - (void)selectRowIndexes:(NSIndexSet *)indexes inColumn:(NSInteger)column -(void)setSelectionIndexPath:(NSIndexPath *)selectionIndexPath -(void)setSelectionIndexPaths:(NSArray *)selectionIndexPaths Maybe overriding only two is required, not sure but if so that is undocumented and subject to change anyway. So a binding or a notification like NSBrowserSelecti
Topic: UI Frameworks SubTopic: AppKit Tags:
1w
Apple Developer Program enrollment still pending and blocking Mac app notarization
Hello Apple Developer Support, Our Apple Developer Program enrollment is still pending, and we need help understanding the status and next steps. We are planning to launch our Mac app in approximately two weeks, around June 1, 2026, and the continued pending status is becoming a serious blocker because we need to complete Developer ID signing and notarization. Could someone please review the application or let us know if any additional information is required from our side? Thank you.
2
0
141
1w
iOS 26.0+: Liquid Glass views don't respect named colors
Hello, I'm a bit new to iOS development, so this could be something I've overlooked, but I've tried a bunch of things on my own and with the help of Copilot, as well as some senior engineers here at my company. I let AI summarize what the problem is, what I've tried, what doesn't work, and also some information on the system: Problem: UITabBarAppearance Custom Colors Ignored - All Diagnostics Show Correct Configuration Environment: iOS Deployment Target: 13.4 Xcode: Latest (26.4.1 as of writing) Device/Simulator: Both affected Language: Swift UI: UIKit with Storyboards Description: Tab bar selected item displays system default colors (gray in light mode, white in dark mode) instead of my custom named color from asset catalog. System colors like .systemBlue work correctly, but custom asset catalog colors are completely ignored. Expected behavior: Selected tab bar item should display BlueTVColor2 (RGB 0, 0.173, 0.38 in light mode; RGB 0, 0.569, 1.0 in dark mode) Actual behaviour: Selected tab bar item displays
2
0
291
1w
Xcode Source Control pull/push hangs indefinitely, terminal Git works normally After Tahoe 26.3 (25D125) Update
Device Details: MBP M2 Pro AND MBP M3 Pro macOS 26.3 (25D125) Xcode Version 26.3, 26.2, 26.1 (I reinstalled all 3 of these after the macOS update) BUG: Xcode hangs indefinitely when performing Source Control operations (Pull or Push) on a Git repository that uses SSH authentication. The same repository works correctly when performing the equivalent Git operations from the Terminal using the Git CLI. The issue appears to be specific to Xcode’s internal Source Control integration. When the operation is triggered from Xcode, the UI shows a spinning progress indicator and never completes. Terminal Git commands (git fetch, git pull, git push) complete normally using the same SSH key and repository. A hang sample taken during the issue shows the Xcode main thread blocked in Source Control authentication and fingerprint handling code paths, including: IDESourceControlUIHandler IDESourceControlFingerprintManager handleAuthenticationFailure showFingerprintAlertOnWindow This suggests Xcode may be waiting on a
8
0
666
1w
Reply to codesign tool generates "timestamps differ by XXX seconds" error
[quote='888308022, jaikiran, /thread/826273?answerId=888308022#888308022, /profile/jaikiran'] This gives the wrong impression that the timestamp difference is on host H2 … while in reality the tool is merely reporting the difference that was present in the previous signature (on host H1). [/quote] Ah, yeah, I can see how that’d happen and also how it’s super confusing. I think you should file a bug against codesign for better diagnostics here; please post your bug number, just for the record. [quote='888308022, jaikiran, /thread/826273?answerId=888308022#888308022, /profile/jaikiran'] maybe the timestamp difference message should be a warning and the tool should exit with an exit code of zero? [/quote] Agreed. Again, I’d appreciate you filing a second bug about that. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
1w
Notarization submissions stuck "In Progress" 24+ hours — first-time enrolment, signing verified clean
Hi, Two notarization submissions on my Team ID are stuck In Progress well past normal turnaround. Looking for guidance on whether this is normal first-time-enrolment latency or whether something needs escalating. Team ID: U7N63C278S Submissions: 2ac71ef0-cbfa-4bdd-9059-c2554050de48 — submitted 2026-05-14 08:09 UTC (currently ~48 hours In Progress) c2b557c5-92a2-4c36-996e-812b61b67fe6 — submitted 2026-05-14 11:33 UTC (currently ~46 hours In Progress) Status: xcrun notarytool history shows both as In Progress xcrun notarytool info returns no log URL, no message, no error No rejection email received at the APPLE_ID address Apple System Status shows Developer ID Notary Service as green Context: This is my first notarization from a newly enrolled Developer Program account (enrolled ~5 days ago). I'm aware first-time submissions can be subject to longer in-depth analysis, which is why I haven't escalated sooner. Build verification (already done): codesign --verify --deep --strict -verbose=2 exits
3
0
798
1w
Reply to Notarization submissions stuck "In Progress" 24+ hours — first-time enrolment, signing verified clean
[quote='888287022, Poojan, /thread/826626?answerId=888287022#888287022, /profile/Poojan'] does that mean that my upload is being held in in-depth analysis? [/quote] It seems likely. Based on my experience helping folks here on the forums, this is how things usually pan out: You submit request N. It stays stuck in the In Progress state. You submit requests N + 1, N + 2, and so on. They all get stuck in the In Progress state. At some point in the future, the in-depth analysis of request N completes and request N completes. Shortly thereafter requests N + 1, N + 2, and so on also completely. Presumably this is the “learn how to recognise” effect I mentioned above. As to how long this is taking, 4 days (100 hours) is certainly longer than is typical but it’s not completely beyond the pale. If it’s still stuck after a week, reply back here and I’ll do some digging. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Notarization Tags:
1w
Reply to Entitlement com.apple.vm.networking not found and could not be included in profile. This likely is not a valid entitlement and should be removed from your entitlements file
The VM Networking capability, which granted access to the com.apple.vm.networking entitlement, is managed. That is, you must apply to Apple for access to the capability. Apple has recently introduced a shiny new mechanism for requesting managed capabilities (see here). VM Networking should use that process but, sadly, it doesn’t [1]. In the meantime, you can apply for the VM Networking capability by opening a DTS code-level support request. When you submit the request, in the section where it asked who sent you to DTS, make sure to reference this forums thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] It’s on my to-do list. One day… one day…
Topic: App & System Services SubTopic: Core OS Tags:
1w
Count of Windows Open in App Switcher on iPadOS? Tried Via UIApplication.sharedApplication.openSessions
I'm trying to get the count of how many windows an iPadOS app has 'open' (open from the user's perspective in the app switcher). This is for the sake of determining whether I should show or hide a button that takes action on every window (if there is only 1 window, the button will be hidden). According to the documentation the proper API for this is this property on UIApplication: // All of the representations that currently have connected UIScene instances or had their sessions persisted by the system (ex: visible in iOS' switcher) @property(nonatomic, readonly) NSSet *openSessions So I print the count (only sessions with role UIWindowSceneSessionRoleApplication) when scenes are added/removed etc via appropriate lifecycle notifications like -sceneDidDisconnect: -sceneDidBecomeActive: and so forth. What I noticed is when I add a new window scene, the count increases by one so cool, that works. But when I kill a window in the App switcher the count does not decrease. I can end up in a situation where the app h
1
0
320
1w
After the last update, the Undo button is not appearing in the chat screen.
I enter the following example code into the chat screen, the code is applied, but the Undo button does not appear. The Undo button is also grayed out in the Edit menu. I don't know if this is due to the update or a settings issue, as this is my first time using Xcode. Before the update, there were no problems; the Undo button would appear right next to the chat screen after the code was applied, but now it's gone. Can you help me with this? Edit only: MetalPortfolio/MetalPortfolio/Models/Transaction.swift Goal: Make Transaction decoding backward-compatible so older saved transactions do not fail to load when newer fields are missing. Critical rules: - Do not edit any other file. - Do not change Transaction stored property names. - Do not change encoding format. - Do not change UI. - Do not change storage/export/import logic yet. - Do not change calculations. - Keep existing behavior for valid current JSON. Implementation: In Transaction.init(from:), change only optional/backward-com
1
0
159
1w
[Urgent] Bug Fix Update in Review for 12 Days — Collaboration Event Ends May 29
Hello Apple Review Team and Community, We are requesting expedited review of the bug fix update for App ID 6449141384. Despite multiple appeals and supporting materials submitted, rejections under Guideline 4.1(a) have continued for 12 days, and only 15 days remain until the event ends. Please review the details below. App Information App Name: HungryAliens / QWER x HungryAliens (iOS) App ID: 6449141384 Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) → Resubmitted with explanation of why the app is not a copycat May 7–8: Rejected again under Guideline 4.1(a) (Copycat) → Resubmitted with detailed explanation and supporting materials May 12: Contacted Apple Developer Support to explain the situation and request assistance → No response received to date May 13: New build resubmitted → Currently delayed in review Why This Is Urgent This update contains bug fixes for an active, ongoing collaboration event. The event ends on May 29 — 15 days from now. If the update is n
Replies
2
Boosts
0
Views
425
Activity
1w
Reply to App Store Button Price Shows Incorrect NonExistent Product
I figured out what was going on and putting this here in case it helps anyone else in the future worried why they were seeing wrong prices for their App. In my case, there were two factors First: I had filled in the Pricing and Availability (P&A) section in App Store Connect
, that was in addition to In-App Purchases (which I subsequently deleted i.e. the 'NonExistent Product' in the Post Title) and also filled in Subscriptions. I assumed the Store Listing button took its price from IAP. Wrong. It takes its price from P&A. Finding this out was thanks to AI/LLM. An hour after deleting the P&A price I started seeing the correct price in the Store, but inconsistently, sometimes correct, sometimes wrong. Second: The inconsistency was apparent when checking the direct link to the App in a web browser. For one, I hadn't noticed the URL included the two-character country code e.g. /us/ or /gb/ etc for the country storefront. The prices for my six storefronts differed, half migh
Replies
Boosts
Views
Activity
1w
17 days without approval — new build stuck in review queue. Is this a process issue?
Hi, App ID 6449141384 has been stuck in App Review for 17 days. After repeated rejections on a previous build, I submitted a new build — but review hasn't started at all. I'd like to request that an Apple reviewer check the status and expedite the review process. If anyone has experienced the same issue or knows the escalation path, your input would also be appreciated. Timeline May 2: Bug fix update submitted → Rejected under Guideline 4.1(a) (Copycat) May 7: Resubmitted with official collaboration authorization document → Rejected again under the same guideline May 12: Contacted Developer Support → No response to date May 13: New build submitted → Review has not started as of today Supporting Documentation The following was submitted in the review notes: Official collaboration authorization document from the IP holder (QWER, a K-pop group) Link to the IP holder's official channel promoting the app: https://youtu.be/vI6QCGZ5t0s Despite this, we have not received any specific guidance on why the reje
Replies
1
Boosts
0
Views
343
Activity
1w
AVAudioSession gets interrupted when closing a window
I have a visionOS app that plays audio using AVAudioEngine and presents both a window and an immersive space. If I close the window, the audio session gets interrupted and attempting to restart the session and audio engine has no effect. I need to dismiss the app, then reopen it, which reopens the main window, in order for audio to start playing again. This is in all visionOS 2 betas. Note that I have background audio enabled for my app.
Replies
4
Boosts
0
Views
1.4k
Activity
1w
AppKit & State Restoration: Windows Auto Closing On App Quit Breaks State Restoration
I probably should know the answer to this but I don't, so I'll ask. When I enable state restoration and have like three windows open, and I quit the app (via Quit menu, not 'Stop In Xcode') the following happens: -NSApplication calls _closeForTermination on all the windows and this causes state restoration to fail to restore these open windows on next app launch. This behavior is not aligned with the behavior of apps like Mail. If I have two Viewer Windows open in Mail and I quit the app, when I relaunch the two viewer windows are restored. I can of course track this and write data to restore for these auto closed window myself but shouldn't there be an easy way to opt in to this behavior?
Replies
1
Boosts
0
Views
193
Activity
1w
Reply to After binding to NSBrowser indexPaths the browser assumes I'm using NSBrowserCell and calls unimplemented methods on my NSCell subclass
Thanks a lot for the reply! I had a bug I recently introduced in my app where I missed syncing model/UI with a selection change. I was already using the target-action but my app is pretty large and also programmatically changes the selection in many different places. As far as a I know there is no way to pick up all selection changes globally (other than the binding) so I decided to try the binding but that didn't work out as described in the original post. So instead of the binding to resolve I'm now overriding four different set methods (in addition to responding in the target-action). - (void)selectRow:(NSInteger)row inColumn:(NSInteger)column; - (void)selectRowIndexes:(NSIndexSet *)indexes inColumn:(NSInteger)column -(void)setSelectionIndexPath:(NSIndexPath *)selectionIndexPath -(void)setSelectionIndexPaths:(NSArray *)selectionIndexPaths Maybe overriding only two is required, not sure but if so that is undocumented and subject to change anyway. So a binding or a notification like NSBrowserSelecti
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
1w
Apple Developer Program enrollment still pending and blocking Mac app notarization
Hello Apple Developer Support, Our Apple Developer Program enrollment is still pending, and we need help understanding the status and next steps. We are planning to launch our Mac app in approximately two weeks, around June 1, 2026, and the continued pending status is becoming a serious blocker because we need to complete Developer ID signing and notarization. Could someone please review the application or let us know if any additional information is required from our side? Thank you.
Replies
2
Boosts
0
Views
141
Activity
1w
iOS 26.0+: Liquid Glass views don't respect named colors
Hello, I'm a bit new to iOS development, so this could be something I've overlooked, but I've tried a bunch of things on my own and with the help of Copilot, as well as some senior engineers here at my company. I let AI summarize what the problem is, what I've tried, what doesn't work, and also some information on the system: Problem: UITabBarAppearance Custom Colors Ignored - All Diagnostics Show Correct Configuration Environment: iOS Deployment Target: 13.4 Xcode: Latest (26.4.1 as of writing) Device/Simulator: Both affected Language: Swift UI: UIKit with Storyboards Description: Tab bar selected item displays system default colors (gray in light mode, white in dark mode) instead of my custom named color from asset catalog. System colors like .systemBlue work correctly, but custom asset catalog colors are completely ignored. Expected behavior: Selected tab bar item should display BlueTVColor2 (RGB 0, 0.173, 0.38 in light mode; RGB 0, 0.569, 1.0 in dark mode) Actual behaviour: Selected tab bar item displays
Replies
2
Boosts
0
Views
291
Activity
1w
Xcode Source Control pull/push hangs indefinitely, terminal Git works normally After Tahoe 26.3 (25D125) Update
Device Details: MBP M2 Pro AND MBP M3 Pro macOS 26.3 (25D125) Xcode Version 26.3, 26.2, 26.1 (I reinstalled all 3 of these after the macOS update) BUG: Xcode hangs indefinitely when performing Source Control operations (Pull or Push) on a Git repository that uses SSH authentication. The same repository works correctly when performing the equivalent Git operations from the Terminal using the Git CLI. The issue appears to be specific to Xcode’s internal Source Control integration. When the operation is triggered from Xcode, the UI shows a spinning progress indicator and never completes. Terminal Git commands (git fetch, git pull, git push) complete normally using the same SSH key and repository. A hang sample taken during the issue shows the Xcode main thread blocked in Source Control authentication and fingerprint handling code paths, including: IDESourceControlUIHandler IDESourceControlFingerprintManager handleAuthenticationFailure showFingerprintAlertOnWindow This suggests Xcode may be waiting on a
Replies
8
Boosts
0
Views
666
Activity
1w
Reply to codesign tool generates "timestamps differ by XXX seconds" error
[quote='888308022, jaikiran, /thread/826273?answerId=888308022#888308022, /profile/jaikiran'] This gives the wrong impression that the timestamp difference is on host H2 … while in reality the tool is merely reporting the difference that was present in the previous signature (on host H1). [/quote] Ah, yeah, I can see how that’d happen and also how it’s super confusing. I think you should file a bug against codesign for better diagnostics here; please post your bug number, just for the record. [quote='888308022, jaikiran, /thread/826273?answerId=888308022#888308022, /profile/jaikiran'] maybe the timestamp difference message should be a warning and the tool should exit with an exit code of zero? [/quote] Agreed. Again, I’d appreciate you filing a second bug about that. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
1w
Notarization submissions stuck "In Progress" 24+ hours — first-time enrolment, signing verified clean
Hi, Two notarization submissions on my Team ID are stuck In Progress well past normal turnaround. Looking for guidance on whether this is normal first-time-enrolment latency or whether something needs escalating. Team ID: U7N63C278S Submissions: 2ac71ef0-cbfa-4bdd-9059-c2554050de48 — submitted 2026-05-14 08:09 UTC (currently ~48 hours In Progress) c2b557c5-92a2-4c36-996e-812b61b67fe6 — submitted 2026-05-14 11:33 UTC (currently ~46 hours In Progress) Status: xcrun notarytool history shows both as In Progress xcrun notarytool info returns no log URL, no message, no error No rejection email received at the APPLE_ID address Apple System Status shows Developer ID Notary Service as green Context: This is my first notarization from a newly enrolled Developer Program account (enrolled ~5 days ago). I'm aware first-time submissions can be subject to longer in-depth analysis, which is why I haven't escalated sooner. Build verification (already done): codesign --verify --deep --strict -verbose=2 exits
Replies
3
Boosts
0
Views
798
Activity
1w
Reply to Notarization submissions stuck "In Progress" 24+ hours — first-time enrolment, signing verified clean
[quote='888287022, Poojan, /thread/826626?answerId=888287022#888287022, /profile/Poojan'] does that mean that my upload is being held in in-depth analysis? [/quote] It seems likely. Based on my experience helping folks here on the forums, this is how things usually pan out: You submit request N. It stays stuck in the In Progress state. You submit requests N + 1, N + 2, and so on. They all get stuck in the In Progress state. At some point in the future, the in-depth analysis of request N completes and request N completes. Shortly thereafter requests N + 1, N + 2, and so on also completely. Presumably this is the “learn how to recognise” effect I mentioned above. As to how long this is taking, 4 days (100 hours) is certainly longer than is typical but it’s not completely beyond the pale. If it’s still stuck after a week, reply back here and I’ll do some digging. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
1w
Reply to Entitlement com.apple.vm.networking not found and could not be included in profile. This likely is not a valid entitlement and should be removed from your entitlements file
The VM Networking capability, which granted access to the com.apple.vm.networking entitlement, is managed. That is, you must apply to Apple for access to the capability. Apple has recently introduced a shiny new mechanism for requesting managed capabilities (see here). VM Networking should use that process but, sadly, it doesn’t [1]. In the meantime, you can apply for the VM Networking capability by opening a DTS code-level support request. When you submit the request, in the section where it asked who sent you to DTS, make sure to reference this forums thread. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] It’s on my to-do list. One day… one day…
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Count of Windows Open in App Switcher on iPadOS? Tried Via UIApplication.sharedApplication.openSessions
I'm trying to get the count of how many windows an iPadOS app has 'open' (open from the user's perspective in the app switcher). This is for the sake of determining whether I should show or hide a button that takes action on every window (if there is only 1 window, the button will be hidden). According to the documentation the proper API for this is this property on UIApplication: // All of the representations that currently have connected UIScene instances or had their sessions persisted by the system (ex: visible in iOS' switcher) @property(nonatomic, readonly) NSSet *openSessions So I print the count (only sessions with role UIWindowSceneSessionRoleApplication) when scenes are added/removed etc via appropriate lifecycle notifications like -sceneDidDisconnect: -sceneDidBecomeActive: and so forth. What I noticed is when I add a new window scene, the count increases by one so cool, that works. But when I kill a window in the App switcher the count does not decrease. I can end up in a situation where the app h
Replies
1
Boosts
0
Views
320
Activity
1w
After the last update, the Undo button is not appearing in the chat screen.
I enter the following example code into the chat screen, the code is applied, but the Undo button does not appear. The Undo button is also grayed out in the Edit menu. I don't know if this is due to the update or a settings issue, as this is my first time using Xcode. Before the update, there were no problems; the Undo button would appear right next to the chat screen after the code was applied, but now it's gone. Can you help me with this? Edit only: MetalPortfolio/MetalPortfolio/Models/Transaction.swift Goal: Make Transaction decoding backward-compatible so older saved transactions do not fail to load when newer fields are missing. Critical rules: - Do not edit any other file. - Do not change Transaction stored property names. - Do not change encoding format. - Do not change UI. - Do not change storage/export/import logic yet. - Do not change calculations. - Keep existing behavior for valid current JSON. Implementation: In Transaction.init(from:), change only optional/backward-com
Replies
1
Boosts
0
Views
159
Activity
1w