I'm experiencing a contradictory validation issue with DeviceActivityReportExtension that creates an impossible situation: The Problem: Without NSExtensionPrincipalClass in Info.plist → App Store Connect rejects upload with: Missing Info.plist values. No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found With NSExtensionPrincipalClass → Local install fails with: defines either an NSExtensionMainStoryboard or NSExtensionPrincipalClass key, which is not allowed for the extension point com.apple.deviceactivityui.report-extension Setup: Extension point: com.apple.deviceactivityui.report-extension Using SwiftUI with @main attribute and DeviceActivityReportExtension protocol Xcode 16.2, iOS 17.6 deployment target Code structure: @main struct SpoolReport: DeviceActivityReportExtension { var body: some DeviceActivityReportScene { // Report scenes here } } The extension builds and runs perfectly without NSExtensionPrincipalClass, but cannot be uploaded to App Store Connect. Adding the key
Search results for
xcode github
94,683 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
@DTS Engineer hello, I have same issue, below are details as you requested: Without NSExtensionPrincipalClass in Info.plist -> App Store Connect rejects upload with: Missing Info.plist values. No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found in extension Info.plist Screenshot of the extension's Info.plist Screenshot of the extension's Info.plist Screenshot of the main app's Info.plist With NSExtensionPrincipalClass -> Local install fails with: defines either an NSExtensionMainStoryboard or NSExtensionPrincipalClass key, which is not allowed for the extension point com.apple.deviceactivityui.report-extension Screenshot of the error encountered Screenshot of the extension's Info.plist Screenshot of the main app's Info.plist Environment: macOS Version 15.7.3 (Build 24G419) Xcode 26.0.1 (24229) (Build 17A400) iOS 26.2 Thanks you!
Topic:
App & System Services
SubTopic:
General
Tags:
Hello, I think it's expected that Transaction.updates is not called (because when a user cancels its subscription, there is actually no new transaction to be pushed to the devices) but I expect Product.SubscriptionInfo.Status.updates to be called (also when a user changes plan from monthly to yearly for example, so we can be informed about the renewal product). This Status.update async sequence is called when I test with Xcode testing (with a configuration file). But this behaviour seems to be different in the Sandbox environment (or it's very very slow to update?). Before publishing the app, I want to be sure my flow is working but having two different behaviours between the Sandbox and the Xcode testing is not helping. Thank you, Axel
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
Hello, In my iOS app, I have a customer center where the user can see some details about its current subscription. I display things like the billing period, the price, the introductory offer state, the renewal date if it's not cancelled or the expiration date if it's cancelled, etc. From this screen, the user can open the subscription management sheet. I want to detect if the user cancels the subscription from this sheet or from the App Store (when the app is running) so I can refresh the information displayed on my customer center. I checked the asynchronous sequences provided by StoreKit 2 like Transaction.updates or Product.SubscriptionInfo.Status.updates and tested with a Sandbox account on my physical device with the app debugged using Xcode. But I noticed these sequences don't emit when I cancel the subscription in Sandbox. Is this the expected behavior? Is there a way to observe in real time if a user cancels the subscription? I can still manually check when the sheet is dismissed but it's not
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
Subscriptions
StoreKit Test
StoreKit
In-App Purchase
I am trying to upgrade my app to use Xcode 26 and I cannot get my tests to launch. I am trying to launch tests to the simulator, and I always get this error after 300 second timeout: encountered an error (The test runner hung before establishing connection.) There are no other errors getting logged. I can run to the same simulator just fine, and in Xcode 16 the tests launch with no issues. The tests also run fine on an actual iPhone. Thanks in advance.
We're also getting the same error ... encountered an error (The test runner hung before establishing connection.) We tried nearly everything, including disabling the Thread Performance Checker in the test scheme shutting down all emulators via xcrun simctl shutdown all and erasing them xcrun simctl erase all force killing any potential hanging simulators beforehand clearing all Simulator logs and caches restarting the machine(s) But this still keeps popping up intermittently. We're using Xcode 26.2. Any tips on what we might want to try next? Thanks!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hi, I’m facing a consistent simulator boot issue that appears to start after iOS 18.2 simulator runtimes and persists in 18.6, 26.1, and 26.2. Observed behavior iOS 18.2 simulator works fine iOS 18.6 simulator does NOT boot iOS 26.1 / 26.2 simulators do NOT boot Tried everything reinstall/clear cache and all and event formatted the system Unable to boot the Simulator NSPOSIXErrorDomain Code: 4 Failure Reason: Interrupted system call Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding macOS: Sequoia Xcode: 26.1, 26.2 Machine: Apple Silicon Unable to boot the Simulator. Domain: NSPOSIXErrorDomain Code: 4 Failure Reason: Interrupted system call User Info: { DVTErrorCreationDateKey = 2025-12-26 02:19:27 +0000; IDERunOperationFailingWorker = _IDEInstalliP.honeSimulatorWorker, Session = com apple CoreSimulator.SimDevice CCDECA56-4A59-491B-A830-0F3928FCD957; } Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit resp
When I use Xcode 26 (0.1, 1) for debugging and hit a breakpoint, using step over causes the debugger to freeze at a random line of code. Clicking Pause program execution indicates that the line is being executed, but the breakpoint never exits, seemingly causing a freeze. The application on the simulator also becomes unresponsive. However, when I do not use breakpoints, my program runs smoothly, and debugging on a physical device does not cause any freezes. This issue only occurs with the simulator. I am using Xcode on Apple Silicon, and due to some third-party SDKs that depend on Rosetta, our app can only run on the Rosetta simulator. We did not encounter this issue when using Xcode 16.x for simulator debugging. The current situation with Xcode 26.x significantly reduces our development efficiency. What could be causing this, and is there a solution?
When I start a Simulator (iPhone 13 mini) with iOS 26 and activate Use the Same Keyboard Language as macOS, it still sets the keyboard to US (my Mac keyboard is in German). This makes the Mac keyboard unusable. It looks like a bug, because it clearly ignores the settings. When I type “@”, I get “¬”. Restarting the simulator did nothing, changing the settings back and forth also. BTW: Why does every single update of XCode come with a bug nowadays? I always have to spend half a day after an update to fix a problem I didn't have before. Highly frustrating.
I have the same problem. Xcode 26.2, MacOS 26.2. This happens at least on every iOS 26 simulator (26.0, 26.1, 26.2). In my case I use the US-PC keyboard distribution in MacOS but simulator keeps using another one. I tried to restart them, create new ones, restart the Mac, Xcode... I started noticing it after changing to Xcode 26 from the 16 and resetting the simulator. Before resetting it everything worked well
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I’m facing an issue where iOS Simulator versions 18.6 and above (including iOS 26.0.1) fail to boot, while older simulators like iOS 18.0 / 18.2 work fine on the same machine. Environment macOS 26.2 (Build 25C56) Xcode 26.0 (Build 17A324) iOS Simulator runtimes: iOS 18.0 – works iOS 18.6 – fails to boot iOS 26.0.1 – fails to boot Error observed Unable to boot the Simulator NSPOSIXErrorDomain Code: 4 (Interrupted system call) Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding This happens even when launching the Simulator app directly (without running any app). Steps already tried (no success) Shut down and erased all simulators: xcrun simctl shutdown all xcrun simctl erase all Deleted CoreSimulator data: rm -rf ~/Library/Developer/CoreSimulator killall -9 com.apple.CoreSimulator.CoreSimulatorService Rebooted macOS multiple times Reinstalled simulator runtimes via Xcode → Settings → Platforms Attempted runtime deletion using: xcrun simctl r
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hi, I’m encountering an issue in my app’s Wallet Extension, specifically within the Non-UI Extension, where we are unable to retrieve payment passes bound to a user’s account. The same code that successfully retrieves these bound cards in the main app does not work when used in the Non-UI Extension. Case-ID: 8932090 Steps to Reproduce: Set up In-App Provisioning: Ensure that the app has the necessary In-App Provisioning permissions. This functionality works correctly in the main app, confirming that the permissions are properly configured. Configure Wallet Extensions: Follow the Wallet Extensions documentation to configure the app, including all required settings for the Non-UI Extension. Add Code to Retrieve Payment Passes: In the main app’s LoginView, implement the following code in the handleLogin() method to retrieve payment passes: // Get the identifiers of payment passes that already exist in Apple Pay. paymentPassLibrary = self.passLibrary.passes(of: .secureElement) for pass in paymentPassLibrary { if
Description I've encountered a consistent hang/freeze issue in SwiftUI applications when using nested LazyVStack containers with Accessibility Inspector (simulator) or VoiceOver (physical device) enabled. The application becomes completely unresponsive and must be force-quit. Importantly, this hang occurs in a minimal SwiftUI project with no third-party dependencies, suggesting this is a framework-level issue with the interaction between SwiftUI's lazy view lifecycle and the accessibility system. Reproduction Steps I've created a minimal reproduction project available here: https://github.com/pendo-io/SwiftUI_Hang_Reproduction To Reproduce: Create a SwiftUI view with the following nested LazyVStack structure: struct NestedLazyVStackView: View { @State private var outerSections: [Int] = [] @State private var innerRows: [Int: [Int]] = [:] var body: some View { ScrollView { LazyVStack(alignment: .leading, spacing: 24) { ForEach(outerSections, id: .self) { section in VStack(alignment: .leading, spacing: 8) { Text
I have the following view hierarchy in my app: [UINavigationController] -> [MainViewController] -> [MyTabBarController] -> [DashboardViewController] In my MainViewController I have a button that pushes the MyTabBarController onto the navigation controllers stack. In the tab bar controller I only have one tab in this example showing the DashboardViewController. That all works fine, and when I tap the back button on MyTabBarController, everything works fine and the MainViewController is shown again. The UI works exactly how I want it, but when I load up the 'Debug Memory Graph' view, I can see that my DashboardViewController is still in memory and it seems the UITab has a reference to it. The MyTabBarController is NOT in memory anymore. MyTabBarController is very simple: class MyTabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() self.mode = .tabSidebar var allTabs:[UITab] = [] let mainTab = UITab(title: Dashboard, image: UIImage(systemName: chart.pie), identifier:
Topic:
UI Frameworks
SubTopic:
UIKit
Hi Richard, Thanks for the quick response. I am on Xcode 26.2, and running iPadOS 26.2. Interestingly enough, it works fine on an iPhone simulator, but not the iPad.
Topic:
UI Frameworks
SubTopic:
UIKit