Search results for

“xcode github”

96,025 results found

Post

Replies

Boosts

Views

Activity

Reply to MacCatalyst, UIScene and the green zoom/fullscreen button
Perhaps ending with that question was a mistake; obviously, I should use a new control. But I have used the zoom/no zoom feature since the birth of MacCat in 2019, ... There are two UISceneWindowDelegate methods didUpdateCoordinateSpace and didUpdateEffectiveGeometry, and by inspection it's possible to infer which of the two states the App should configure itself. The problem is that these methods are both “did” variants, there are no “will” methods. My App should never be in fullscreen. (Note Xcode 26.4.1 is aware of willUpdateEffectiveGeometry, but it was never called - maybe in the future.) The new zoom button control worked fine, by setting the scene’s size restriction minimumSize and maximumSize attributes appropriately. Positioning the new zoom control precisely over the green button didn’t work, the green guy intercepted events. Hovering over the green button posts a dialog showing all 15 possible action variations, none useful to me. But, of course, I had long ago missed windowScene.sizeRestr
Topic: UI Frameworks SubTopic: UIKit Tags:
1d
FamilyControls individual authorization: No way to detect revocation while app is backgrounded
We are developing an MDM agent app that uses FamilyControls with .individual authorization to enforce Screen Time restrictions (app blocking, domain blocking via ManagedSettingsStore and DeviceActivityCenter). The Problem We are actively subscribing to AuthorizationCenter.shared.$authorizationStatus to detect authorization changes. However, when the user revokes the app's FamilyControls authorization through Settings (either via Settings > Screen Time > Apps With Screen Time Access, or Settings > Apps > [Our App]), the publisher does not emit any value. All ManagedSettingsStore restrictions are lifted immediately by the system, but our app receives no notification of this change. The only scenario where the publisher reliably emits is when a debugger is attached (i.e., running directly from Xcode). Without the debugger, the publisher is completely silent — even when the app returns to foreground. Code Example We tried subscribing directly to AuthorizationCenter.shared.$authorizationStatus
1
0
183
1d
Reply to Background Assets Mac (Designed for iPad)
Thanks, let’s focus on your Designed for iPad issue and error in that target. You said you can’t add any Mac however are you using Mac Catalyst? Xcode attempts to dynamically build the final Info.plist at compile time based on your project settings. When this happens, Xcode often ignores or strips out custom keys that you manually added to the physical Info.plist file, especially when switching the run destination to the Mac. Even though the key shows up under Custom iOS Target Properties in the Xcode UI (which is expected, since Designed for iPad is technically still an iOS build), the dynamic generation process is dropping the BAAppGroupID key when compiling the Mac app bundle. Since you already have a physical Info.plist file with the correct BAAppGroupID key inside it, you can tell Xcode generating the plist, you need to make sure the key is injected properly during the build process. The issue seems a target issue as is working with the target that was designed to work
Topic: App & System Services SubTopic: Core OS Tags:
1d
Reply to Background Assets Mac (Designed for iPad)
Thanks for the post. The Background Assets framework is fully supported on the Mac. It is available on macOS 16.0 and later, as well as for iOS apps and Mac Catalyst and shown in the documentation you linked. iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ The error you are seeing is actually not a limitation of the Apple framework itself. The file AssetPackManager.swift and the specific BAAppGroupID key are not internal to the Background Assets framework. What is your info.plist with key BAAppGroupID? Please look at the documentation https://developer.apple.com/documentation/bundleresources/information-property-list/baappgroupid If you defined the App Group ID in your Xcode Build Settings (often as a User-Defined Build Setting that gets injected into the Info.plist), it might be restricted to iOS. Go to your app target's Build Settings. Search for the variable that populates BAAppGroupID (or search for BAAppGroupID directly if it is in the Info.plist Values section). Click the triangle next to the setting
Topic: App & System Services SubTopic: Core OS Tags:
1d
App Intents: String array parameter value clears immediately in Shortcuts editor
Hello, I am experiencing an issue with the App Intents framework where a parameter of type [String] (String Array) fails to persist user input in the Shortcuts app action editor. Issue Description: When adding an item to the String Array parameter in the Shortcuts app action editor, the input text automatically clears/resets to empty within less than 1 second. This happens spontaneously while the keyboard is still active, or immediately after typing, making it impossible to input any values. Environment: Xcode Version: 26.2 (17C52) iOS Version: 26.2.1 Device: iPhone 17 Code Snippet: import AppIntents import SwiftUI struct TestStringArrayIntent: AppIntent { static var title: LocalizedStringResource = Test Array Input Bug static var description: IntentDescription = Reproduces the issue where String Array input clears automatically. // PROBLEM: // Input for this parameter vanishes automatically < 1s after typing. @Parameter(title: Test Strings, default: []) var strings: [String] func perform() async
5
0
349
1d
Reply to App Intents: String array parameter value clears immediately in Shortcuts editor
Hi, I'm using the latest Xcode (26.4.1) and I'm targeting iOS 16.6. Also, make sure that you don't provide parametrized summary - in this case it works correctly. I'm using something like that: static var parameterSummary: some ParameterSummary { Summary(List Items) { .$collections } } The issue occurs only if you have the form view. It's easily reproducible with this configuration. I tried also with an optional array [String]? and it doesn't help. I've found a workaround which in my case is suitable. I added predefined values this way: @Parameter(title: Collections, optionsProvider: CollectionsOptionsProvider()) var collections: [String]? However, it isn't good enough if someone needs a completely custom input.
1d
Reply to App Intents: String array parameter value clears immediately in Shortcuts editor
@maxik Thanks for the post, can you provide more information about the setup of your environment as this issue is not happening currently with the latest release of iOS. It is recommended to ensure that your Xcode project is correctly configured to build against the latest SDKs and that your development environment is up to date. To work around this issue, you can make the parameter optional and remove the argument. This prevents the Shortcuts editor from continuously applying the empty array state over the user's active input. However I don’t see the issue on the latest release and that’s why is so important to provide the details of the iOS version you are targeting and what Xcode are you using. Albert
  Worldwide Developer Relations.
1d
Can not upload using Xcode 26.5 release candidate
I’m trying to upload my project using Xcode Release Candidate 26.5. However, when I upload it, I receive this error. Is this normal? The server’s response was: “code = 90534; description = ‘Unsupported SDK or Xcode version. Your app was built with an SDK or version of Xcode that isn’t supported. Although you can use beta versions of SDKs and Xcode to build and upload apps to App Store Connect, you need to use the latest Release Candidates (RC) for SDKs and Xcode to submit the app. For details on currently supported SDKs and versions of Xcode, visit: https://developer.apple.com/news/releases.’”
5
0
96
1d
App rejected 13+ times for UIRequiredDeviceCapabilities after adding DeviceActivity extensions — what am I missing?
I've been stuck on Guideline 2.3 for two weeks now and I'm running out of ideas. My app is iPhone-only (UIDeviceFamily = [1]) and has been on the App Store since January. Version 2.1.9 passed review fine. The only change in 2.1.10 is adding two DeviceActivity extensions — a DeviceActivityMonitor and a DeviceActivityReport — for screen time-based stress detection. Every build since then gets rejected with the same message: The UIRequiredDeviceCapabilities key in the Info.plist is set up in such a way that the app will not install on the device used in review. Review devices: iPhone 14 Pro, iPhone 17 Pro Max, iPad Air M3. Here's what I've tried across 13+ submissions: UIRequiredDeviceCapabilities as [arm64] (array) — rejected Empty array [] — rejected Removed the key entirely — upload validation fails, Xcode re-injects arm64 anyway Post-build script to force [arm64] — rejected Dictionary format {arm64: true} — rejected Added com.apple.developer.family-controls to extension entitlements — rejected Enabl
2
0
242
1d
Reply to Localization doesn't work in watchOS widget configuration intent
Hopefully this is not too late. I've been quite swamped these days... No, I'm still trying to resolve this problem. Thank you for investigating it. Tomorrow, I will be able to check it on a physical device. However, even if this is a workaround, it won't help in my case, because I need to have access to intents from the watch app to check a couple of things and to perform old complications migration from ClockKit to WidgetKit. Also, intents should be shared between the watchOS app and widgets extension. If you don't share it and tap on a widget you get these warnings in the console: Failed to instantiate type ConfigurationAppIntent by name (12WatchWidgets22ConfigurationAppIntentV). The type with this mangled name does not exist in the process’s memory space. [InitializeAction <>] Could not find an intent with identifier ConfigurationAppIntent, mangledTypeName: Optional(12WatchWidgets22ConfigurationAppIntentV) associateAppIntent(forUserActivity:) - Error converting INIntent to App Intent: AppIntents.Perf
2d
Reply to Sometimes my apps crash on launch at _libsecinit_appsandbox.cold.6
That suggests that you’re hitting the issue described in Updating Mac Software, or something like it. That's weird. My apps do include a software updater (Sparkle) for the versions I sell on my website, but for the App Store versions, the updater is not included. I have separate Xcode targets for the two versions, and the App Store target (the one for which Xcode downloads the crash reports) doesn't even link to the updater. And when running the apps locally (including when the only crash on my Mac happened, which wasn't in Xcode, but just launching the debug build from Spotlight), I always run the App Store version.
Topic: App & System Services SubTopic: Core OS Tags:
2d
Provisioning profiles marked "Ineligible" for Contactless Pass Provisioning even though entitlement is present in profile
We are seeing what looks like a signing / managed-capability mismatch for Contactless Pass Provisioning. Environment Team ID: S7AUTD2C2B Bundle IDs: com.swiftpass.ios com.swiftpass.ios.dev Xcode: 26.4 macOS: 26.4 Problem Our app has had Contactless Pass Provisioning approved by Apple for a long time, and builds were working until a few days ago. Without any intentional signing/capability changes on our side, Xcode started failing with the following error: Provisioning profile Swiftpass prod Appstore doesn't include the Contactless Pass Provisioning capability. Contactless Pass Provisioning capability needs to be assigned to your team and bundle identifier by Apple in order to be included in a profile. Observed behavior Xcode marks the relevant provisioning profiles as Ineligible in the profile selector. This affects both development/debug and release/App Store builds. If we remove Contactless Pass Provisioning from the app entitlements/capabilities, the exact same profiles immediate
27
0
1.6k
2d
Reply to MacCatalyst, UIScene and the green zoom/fullscreen button
Perhaps ending with that question was a mistake; obviously, I should use a new control. But I have used the zoom/no zoom feature since the birth of MacCat in 2019, ... There are two UISceneWindowDelegate methods didUpdateCoordinateSpace and didUpdateEffectiveGeometry, and by inspection it's possible to infer which of the two states the App should configure itself. The problem is that these methods are both “did” variants, there are no “will” methods. My App should never be in fullscreen. (Note Xcode 26.4.1 is aware of willUpdateEffectiveGeometry, but it was never called - maybe in the future.) The new zoom button control worked fine, by setting the scene’s size restriction minimumSize and maximumSize attributes appropriately. Positioning the new zoom control precisely over the green button didn’t work, the green guy intercepted events. Hovering over the green button posts a dialog showing all 15 possible action variations, none useful to me. But, of course, I had long ago missed windowScene.sizeRestr
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
1d
FamilyControls individual authorization: No way to detect revocation while app is backgrounded
We are developing an MDM agent app that uses FamilyControls with .individual authorization to enforce Screen Time restrictions (app blocking, domain blocking via ManagedSettingsStore and DeviceActivityCenter). The Problem We are actively subscribing to AuthorizationCenter.shared.$authorizationStatus to detect authorization changes. However, when the user revokes the app's FamilyControls authorization through Settings (either via Settings > Screen Time > Apps With Screen Time Access, or Settings > Apps > [Our App]), the publisher does not emit any value. All ManagedSettingsStore restrictions are lifted immediately by the system, but our app receives no notification of this change. The only scenario where the publisher reliably emits is when a debugger is attached (i.e., running directly from Xcode). Without the debugger, the publisher is completely silent — even when the app returns to foreground. Code Example We tried subscribing directly to AuthorizationCenter.shared.$authorizationStatus
Replies
1
Boosts
0
Views
183
Activity
1d
Reply to Background Assets Mac (Designed for iPad)
Not using Mac Catalyst. Just the iOS app that will run on Apple Silicon Macs. How do I tell Xcode to make sure the key is injected properly during the build process
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1d
Reply to Background Assets Mac (Designed for iPad)
Thanks, let’s focus on your Designed for iPad issue and error in that target. You said you can’t add any Mac however are you using Mac Catalyst? Xcode attempts to dynamically build the final Info.plist at compile time based on your project settings. When this happens, Xcode often ignores or strips out custom keys that you manually added to the physical Info.plist file, especially when switching the run destination to the Mac. Even though the key shows up under Custom iOS Target Properties in the Xcode UI (which is expected, since Designed for iPad is technically still an iOS build), the dynamic generation process is dropping the BAAppGroupID key when compiling the Mac app bundle. Since you already have a physical Info.plist file with the correct BAAppGroupID key inside it, you can tell Xcode generating the plist, you need to make sure the key is injected properly during the build process. The issue seems a target issue as is working with the target that was designed to work
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1d
Reply to Background Assets Mac (Designed for iPad)
Thanks for the post. The Background Assets framework is fully supported on the Mac. It is available on macOS 16.0 and later, as well as for iOS apps and Mac Catalyst and shown in the documentation you linked. iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ The error you are seeing is actually not a limitation of the Apple framework itself. The file AssetPackManager.swift and the specific BAAppGroupID key are not internal to the Background Assets framework. What is your info.plist with key BAAppGroupID? Please look at the documentation https://developer.apple.com/documentation/bundleresources/information-property-list/baappgroupid If you defined the App Group ID in your Xcode Build Settings (often as a User-Defined Build Setting that gets injected into the Info.plist), it might be restricted to iOS. Go to your app target's Build Settings. Search for the variable that populates BAAppGroupID (or search for BAAppGroupID directly if it is in the Info.plist Values section). Click the triangle next to the setting
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1d
App Intents: String array parameter value clears immediately in Shortcuts editor
Hello, I am experiencing an issue with the App Intents framework where a parameter of type [String] (String Array) fails to persist user input in the Shortcuts app action editor. Issue Description: When adding an item to the String Array parameter in the Shortcuts app action editor, the input text automatically clears/resets to empty within less than 1 second. This happens spontaneously while the keyboard is still active, or immediately after typing, making it impossible to input any values. Environment: Xcode Version: 26.2 (17C52) iOS Version: 26.2.1 Device: iPhone 17 Code Snippet: import AppIntents import SwiftUI struct TestStringArrayIntent: AppIntent { static var title: LocalizedStringResource = Test Array Input Bug static var description: IntentDescription = Reproduces the issue where String Array input clears automatically. // PROBLEM: // Input for this parameter vanishes automatically < 1s after typing. @Parameter(title: Test Strings, default: []) var strings: [String] func perform() async
Replies
5
Boosts
0
Views
349
Activity
1d
Reply to App Intents: String array parameter value clears immediately in Shortcuts editor
Hi, I'm using the latest Xcode (26.4.1) and I'm targeting iOS 16.6. Also, make sure that you don't provide parametrized summary - in this case it works correctly. I'm using something like that: static var parameterSummary: some ParameterSummary { Summary(List Items) { .$collections } } The issue occurs only if you have the form view. It's easily reproducible with this configuration. I tried also with an optional array [String]? and it doesn't help. I've found a workaround which in my case is suitable. I added predefined values this way: @Parameter(title: Collections, optionsProvider: CollectionsOptionsProvider()) var collections: [String]? However, it isn't good enough if someone needs a completely custom input.
Replies
Boosts
Views
Activity
1d
Reply to App Intents: String array parameter value clears immediately in Shortcuts editor
@maxik Thanks for the post, can you provide more information about the setup of your environment as this issue is not happening currently with the latest release of iOS. It is recommended to ensure that your Xcode project is correctly configured to build against the latest SDKs and that your development environment is up to date. To work around this issue, you can make the parameter optional and remove the argument. This prevents the Shortcuts editor from continuously applying the empty array state over the user's active input. However I don’t see the issue on the latest release and that’s why is so important to provide the details of the iOS version you are targeting and what Xcode are you using. Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
1d
Reply to Can not upload using Xcode 26.5 release candidate
@MiladBigle Great to know, since May 5 the RC can be used to submit apps to the store based on the notes: May 5, 2026 App Store Connect update You can now upload apps built with Xcode 26.5 >RC using the SDK for iOS 26.5 RC, https://developer.apple.com/help/app-store-connect/release-notes/ Albert
  Worldwide Developer Relations.
Replies
Boosts
Views
Activity
1d
Can not upload using Xcode 26.5 release candidate
I’m trying to upload my project using Xcode Release Candidate 26.5. However, when I upload it, I receive this error. Is this normal? The server’s response was: “code = 90534; description = ‘Unsupported SDK or Xcode version. Your app was built with an SDK or version of Xcode that isn’t supported. Although you can use beta versions of SDKs and Xcode to build and upload apps to App Store Connect, you need to use the latest Release Candidates (RC) for SDKs and Xcode to submit the app. For details on currently supported SDKs and versions of Xcode, visit: https://developer.apple.com/news/releases.’”
Replies
5
Boosts
0
Views
96
Activity
1d
Reply to Can not upload using Xcode 26.5 release candidate
@DTS Engineer Thanks Albert for the link. I have successfully submitted the app for review on the App Store today using the same Xcode candidate release. Everything went through correctly on my side, and App Store Connect also appears to be updated. It may be because there were no changes in the Xcode version.
Replies
Boosts
Views
Activity
1d
App rejected 13+ times for UIRequiredDeviceCapabilities after adding DeviceActivity extensions — what am I missing?
I've been stuck on Guideline 2.3 for two weeks now and I'm running out of ideas. My app is iPhone-only (UIDeviceFamily = [1]) and has been on the App Store since January. Version 2.1.9 passed review fine. The only change in 2.1.10 is adding two DeviceActivity extensions — a DeviceActivityMonitor and a DeviceActivityReport — for screen time-based stress detection. Every build since then gets rejected with the same message: The UIRequiredDeviceCapabilities key in the Info.plist is set up in such a way that the app will not install on the device used in review. Review devices: iPhone 14 Pro, iPhone 17 Pro Max, iPad Air M3. Here's what I've tried across 13+ submissions: UIRequiredDeviceCapabilities as [arm64] (array) — rejected Empty array [] — rejected Removed the key entirely — upload validation fails, Xcode re-injects arm64 anyway Post-build script to force [arm64] — rejected Dictionary format {arm64: true} — rejected Added com.apple.developer.family-controls to extension entitlements — rejected Enabl
Replies
2
Boosts
0
Views
242
Activity
1d
Reply to Localization doesn't work in watchOS widget configuration intent
Hopefully this is not too late. I've been quite swamped these days... No, I'm still trying to resolve this problem. Thank you for investigating it. Tomorrow, I will be able to check it on a physical device. However, even if this is a workaround, it won't help in my case, because I need to have access to intents from the watch app to check a couple of things and to perform old complications migration from ClockKit to WidgetKit. Also, intents should be shared between the watchOS app and widgets extension. If you don't share it and tap on a widget you get these warnings in the console: Failed to instantiate type ConfigurationAppIntent by name (12WatchWidgets22ConfigurationAppIntentV). The type with this mangled name does not exist in the process’s memory space. [InitializeAction <>] Could not find an intent with identifier ConfigurationAppIntent, mangledTypeName: Optional(12WatchWidgets22ConfigurationAppIntentV) associateAppIntent(forUserActivity:) - Error converting INIntent to App Intent: AppIntents.Perf
Replies
Boosts
Views
Activity
2d
Reply to Sometimes my apps crash on launch at _libsecinit_appsandbox.cold.6
That suggests that you’re hitting the issue described in Updating Mac Software, or something like it. That's weird. My apps do include a software updater (Sparkle) for the versions I sell on my website, but for the App Store versions, the updater is not included. I have separate Xcode targets for the two versions, and the App Store target (the one for which Xcode downloads the crash reports) doesn't even link to the updater. And when running the apps locally (including when the only crash on my Mac happened, which wasn't in Xcode, but just launching the debug build from Spotlight), I always run the App Store version.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
2d
Provisioning profiles marked "Ineligible" for Contactless Pass Provisioning even though entitlement is present in profile
We are seeing what looks like a signing / managed-capability mismatch for Contactless Pass Provisioning. Environment Team ID: S7AUTD2C2B Bundle IDs: com.swiftpass.ios com.swiftpass.ios.dev Xcode: 26.4 macOS: 26.4 Problem Our app has had Contactless Pass Provisioning approved by Apple for a long time, and builds were working until a few days ago. Without any intentional signing/capability changes on our side, Xcode started failing with the following error: Provisioning profile Swiftpass prod Appstore doesn't include the Contactless Pass Provisioning capability. Contactless Pass Provisioning capability needs to be assigned to your team and bundle identifier by Apple in order to be included in a profile. Observed behavior Xcode marks the relevant provisioning profiles as Ineligible in the profile selector. This affects both development/debug and release/App Store builds. If we remove Contactless Pass Provisioning from the app entitlements/capabilities, the exact same profiles immediate
Replies
27
Boosts
0
Views
1.6k
Activity
2d