Search results for

Building for iOS Simulator, but the linked and embedded framework ‘XX.framework‘ was built for

186,320 results found

Post

Replies

Boosts

Views

Activity

tabViewBottomAccessory in 26.1: View's @State is lost when switching tabs
Any view that is content for the tabViewBottomAccessory API fails to retain its state as of the last couple of 26.1 betas (and RC). The loss of state happens (at least) when the currently selected tab is switched (filed as FB20901325). Here's code to reproduce the issue: struct ContentView: View { @State private var selectedTab = TabSelection.one enum TabSelection: Hashable { case one, two } var body: some View { TabView(selection: $selectedTab) { Tab(One, systemImage: 1.circle, value: .one) { BugExplanationView() } Tab(Two, systemImage: 2.circle, value: .two) { BugExplanationView() } } .tabViewBottomAccessory { AccessoryView() } } } struct AccessoryView: View { @State private var counter = 0 // This guy's state gets lost (as of iOS 26.1) var body: some View { Stepper(Counter: (counter), value: $counter) .padding(.horizontal) } } struct BugExplanationView: View { var body: some View { ScrollView { VStack(alignment: .leading, spacing: 16) { Text((1) Manipulate the counter state) Text((2) Then switch t
6
0
569
3d
NFCPresentmentIntentAssertion validity behavior
Hello, I would like to discuss the behavior of the expiration of NFCPresentmentIntentAssertion (test in iOS 18.5). In the documentation we have : The intent assertion expires if any of the following occur: The intent assertion object deinitializes Your app goes into the background 15 seconds elapse BUT; in fact ; only the 1st rule is applied. The expiration seems to be random after the usage of CardSession and that's difficult to give to the user a good experience. Has someone faced the same kind of issue; or can give an explanation? Regards, François
3
0
139
3d
Reply to Clarifying when Game Center activity events fire relative to authentication
I'm trying to implement this too. Seems like it is working on macOS but iOS does not. I've implemented the flow as described by @DTS Engineer GKGameActivity.checkPendingGameActivityExistence is false even if I open the a challenge to a leaderboard from the Games App. I have iOS 26.3, macOS 26.3 building with Xcode 26.2. Curiously the Debug > GameKit > Manage Game Progress window shows nothing on both iOS and macOS. The app shows up but nothing seems set up. The leaderboard is live but the activity is not in App Store Connect.
Topic: Graphics & Games SubTopic: GameKit Tags:
3d
Clarifying when Game Center activity events fire relative to authentication
Hello, In our game we enforce an age gate before showing Game Center sign‑in. Only after the user passes the age gate do we call GKLocalPlayer.localPlayer.authenticateHandler. The reason I’m asking is that we want to reliably detect if the game was launched from a Game Center activity in the Games app (iOS 26+). If the user prefers to enter via activities, we don’t want to miss that event during cold start. Our current proposal is: Register a GKLocalPlayerListener early in didFinishLaunchingWithOptions: so the app is ready to catch events. Queue any incoming events in our dispatcher. Only process those events after the user passes the age gate and authentication succeeds. My questions are: Does player:wantsToPlayGameActivity:completionHandler: ever fire before authentication, or only after the local player is authenticated? If it only fires after authentication, is our “register early but gate processing” approach the correct way to ensure we don’t miss activity launches? Is there any recommended pat
3
0
446
3d
UIHostingConfiguration focus problem on tvOS, with SwiftUI view
UIHostingConfiguration on tvOS: focus permanently broken with multiple focusable SwiftUI views Hi everyone, I'm working on a tvOS app with a UICollectionView. Some cells embed SwiftUI content via UIHostingConfiguration, specifically a row of 3 buttons that should be individually focusable. The cell itself returns canBecomeFocused = false so focus passes through to the SwiftUI buttons. The problem: after navigating focus into that section once, it becomes permanently unfocusable. Focus enters briefly, then immediately exits to nil on its own, without any user input. From that point on, the focus engine completely skips the section. The exact same SwiftUI view works perfectly when embedded via UIHostingController instead. How to reproduce Press DOWN to move focus into the UIHostingConfiguration section Focus lands on a SwiftUI button for a split second Focus exits on its own and bumps to another section The section is now dead, focus skips it on every subsequent navigation What the system logs say (-UI
1
0
18
3d
Is Changing IOS version in package.swift file manually accepted?
I was working on my challenge submission but when I created a iOS swift playground through Xcode, the playground generated get's defaulted to iOS 18, and I can't use latest features like the new glass design seemlessely without using #if available macro's everywhere so I manually changed iOS 18.0 to iOS 26.0 in the package.swift file. So far there have been no problems but as the package.swift file recommends not to change it manually so am I in any problem can someone give me advice of whether it's a legit option ??
4
0
125
3d
Reply to iOS Simulator fails to boot (18.6 / 26.1 / 26.2) – launchd_sim could not bind to session
Hi there, this is what AI just told me because I thought our MDM is blocking the process and I specifically asked AI about it again. Let your MDM know about this: **PSA: iOS 18.5 Simulator Issues with Defender/Cisco AnyConnect - Architecture Change** If you're experiencing issues with iOS 18.5 simulators failing to launch while iOS 18.2 and earlier simulators work fine, this may be due to a fundamental architecture change Apple introduced: **What Changed:** Apple changed the simulator architecture in iOS 18.5 (and macOS 15.x): **iOS 18.2 and earlier:** - Simulator ran as a single process - launchd_sim was a simple subprocess - Minimal network communication - ✅ Works with security software like Defender/AnyConnect **iOS 18.5+ (and iPhone 17.x simulators):** - New Virtualization Framework integration - Simulator now uses multiple isolated processes - launchd_sim binds to virtual network
3d
iOS Simulator fails to boot (18.6 / 26.1 / 26.2) – launchd_sim could not bind to session
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
6
0
708
3d
Reply to When AI leads to lost prompts (26.3)
You should probably raise these as bugs in the usual way. They won't really get progressed if they're only posted in these Developer Forums. You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others (especially Apple employees) can link to them.
3d
URL Blocking in Chrome on iOS via Extensions – Is It Possible?
Hello Apple Developer Community, I currently have a Safari Web Extension on iOS that blocks certain URLs for users. I would like to provide the same functionality for Chrome on iOS. I understand that Chrome on iOS uses WebKit under the hood, and Safari Web Extensions can run in Safari, but I am unsure whether there is any way to implement URL blocking in Chrome for iOS—either via an extension, API, or other supported mechanism. Specifically, I’m looking for guidance on: Whether any browser extension (Safari, Chrome, or otherwise) can intercept or block web requests in Chrome on iOS. If not, what Apple-supported alternatives exist for implementing URL-blocking functionality for users of Chrome on iOS. Any best practices for maintaining a cross-browser URL-blocking solution for iOS users. I want to make sure my approach is aligned with Apple’s policies and platform capabilities. Any guidance or official references would be greatly appreciated. Thank
1
0
302
3d
Team Id Changed / Old Team Id Automatically Signs
Good afternoon, I have the latest version of Xcode. I am trying to debug why I am not able to Sign in with Apple Sign In on my app. After days of trying everything I just noticed today that the TeamID Xcode is using to automatically sign the app is not my current Team Id. I had a years hiatus and my code login expired. When I recreated my account I got a new Team Id and that is what is on all my certificates, profiles, etc. Old team id: Z82SJZ64R6 Current team id: 22649D52Q5. I take off automatically signing and select my Mac app bistro and iOS app distro and the app fully builds then Xcode crashes with an error that mentions security - Error code 5. Is there a way for me to change the old team id in Xcode? I've already tried logging out and back in through settings.
5
0
124
3d
Reply to Is Changing IOS version in package.swift file manually accepted?
[quote='876364022, Yashya, /thread/815698?answerId=876364022#876364022, /profile/Yashya'] Yes it's in Xcode playground [/quote] OK. This came up last year and the general consensus is that it’s fine to make this change in order to avoid all the availability ceremony. Note The reason I asked about whether you’re using Xcode is that Swift Playground still doesn’t support the iOS 26 SDK )-: See this post. I’d appreciate you filing a bug requesting that Xcode’s Swift playground support add a deployment target option. This limitation is an ongoing source of confusion for Swift Student Challenge participants )-: Please post your bug number, just for the record. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
3d