Search results for

Swift 6

49,211 results found

Post

Replies

Boosts

Views

Activity

Reply to Swift 6 Minimum Requirement for App Store
I can't speak to urgency, because that could be interpreted as a future looking timeframe. As a process, I would enable the Swift 5 stricter concurrency checking in code that you control to gauge what the important issues in your code base are, and decide what it would mean to fix them in terms of complexity. After that, try out the Swift 6 language mode, and see what other issues the complier identifies, once again with an eye for complexity. You can then take that information about the technical complexity and use that as information in your overall scheduling and mangement of your software project, and when the best time to do the work is. Since you can do that on a module-by-module basis, there's no need to jump to Swift 6 all at once. You can turn it on just for one module where perhaps there are no issues, or they are easy to address, after updating the language mode, and expand outward from there. And looking at this from the other direction, if there's a module where the iss
Aug ’25
Swift 6 Minimum Requirement for App Store
Good afternoon, all! I was wondering if there was a timeline for when the App Store and/or TestFlight will drop support for Swift 5? I know Swift 6 was released last year and historically App Store requires a certain SDK minimum for upload. I was wondering if any SDK update was on the docket that would effectively force applications onto Swift 6? Looking at past releases, I had estimated mid to late 2026, but I wanted to confirm? Swift 4 Released September 2017 Became the default SDK in Xcode 9 Strongly encouraged via the iOS 12 SDK in late 2018 Essentially required by early 2019 Swift 5 Released March 2019 Became the default SDK in Xcode 10.2 Strongly encouraged via the iOS 12.1 SDK in early 2019 Essentially required by late 2020 Swift 6 Released June 2024 Became the default SDK in Xcode 16 Strongly encouraged via the iOS 18 SDK in April 2025 **Essentially required by mide-late 2026 ?? ** Thank you in advance!
4
0
127
Aug ’25
Family Controls (Distribution) entitlement missing for Device Activity Monitor extension - blocking TestFlight distribution
Hi Apple Developer Community, I'm experiencing an issue with Family Controls entitlements for my iOS app that I'd like to discuss and see if others have encountered similar problems. Background: My app (BrightStart) uses Family Controls to help users build healthy morning routines by temporarily blocking distracting apps until they complete a sunlight exposure session. The core functionality relies on automatic time-based blocking (e.g., block social media apps from 6-8am daily). The Problem: I have Family Controls working perfectly in development builds, but I'm blocked from distributing via TestFlight due to entitlement issues with my Device Activity Monitor extension. Technical Details: Main app bundle ID: app.brightstart.app ✅ Has both Family Controls (Development) and Family Controls (Distribution) options available Extension bundle ID: app.brightstart.app.BrightStartMonitorExtension ❌ Only shows Family Controls (Development) - no Distribution option Error when archiving for TestFlight: ❌ Provis
1
0
170
Aug ’25
Reply to Delay in Microphone Input When Talking While Receiving Audio in PTT Framework (Full Duplex Mode)
Thank you for the detailed reply. I've submitted a bug report as requested: FB19421676 – Perfect, thank you. It turns out that isVoiceProcessingInputMuted was set to true when starting a transmission, and only reverted to false once audio output stopped. This was the source of the delay between initiating transmission and receiving valid microphone input. Good find! I'm still relatively new to Swift and iOS audio development, and I was wondering if there are any sample projects or best practices that demonstrate integrating audio with the Push-to-Talk framework. No, there isn't any direct sample for it. Practically speaking, the PushToTalk framework was actually created to support an existing set of developers who'd previously built PTT apps using the voip background category and CallKit, so that they could migrate away from the unrestricted PTT entitlement. That's why we didn't create a sample— most of the framework's adopters were integrating the sample into an existing large-scale project, where a
Topic: Media Technologies SubTopic: Audio Tags:
Aug ’25
Reply to Can't observe Entity's orientation properties in Slider
Hello @Tinn_Vision , thank you for your question! The error you are seeing is caused by the type of property you are attempting to observe. An Entity's position is represented by the type SIMD3 , while its orientation is represented by the type simd_quatf. For SIMD3, x is a stored property, while for simd_quatf, angle is a computed property. This means the slider would have no way of setting the value of angle when a person slides the handle. For this reason, I would consider the error you are seeing to be expected behavior. You can review the Swift documentation for properties for more information. simd_quatf is a Quaternion, and while the implementation details are complex, it does not store values like the number of degrees the entity has rotated around an axis. If you'd like to make a slider that spins an entity around the Y axis, for example, you'd need to store that observed slider value someplace else, and then convert that value to a rotation, depending on what you need for your app. I'd be h
Topic: Spatial Computing SubTopic: General Tags:
Aug ’25
Reply to Crash when assigning NSImage to `@objc dynamic var` property
Thanks. So it sounds like the NSImage is getting over-released or being incorrectly deallocated, although it's unclear to me what exactly is trying to form a weak reference, since my code (as shown above) has a strong reference. Unfortunately the higher up function calls are made by AppKit, which is not open source, so I cannot look it up. As far as I understand, the link you posted helps investigating memory issues in Xcode, but since the crash reports are downloaded by Xcode from other users and I cannot reproduce it myself... The Xcode statistics seem to show that it only happens with macOS 15.3 or newer. I don't know if it's because there's not enough space to show older releases, or if it's really a clue that it's a change introduced with macOS 15.3 that causes this issue. From my perspective it would make sense that it's a new issue with macOS 15.3, because I haven't changed the code that generates or assigns that image in a very long time, and this issue didn't happen for a previous version of my app t
Topic: UI Frameworks SubTopic: AppKit Tags:
Aug ’25
TVTopShelfContentProvider and Swift 6 Concurrency
I have a TVTopShelfContentProvider that implements func loadTopShelfContent() async -> (any TVTopShelfContent)? When running on Xcode 26 b5 I am seeing the following error in swift 6 mode. Non-Sendable type '(any TVTopShelfContent)?' cannot be returned from nonisolated override to caller of superclass instance method 'loadTopShelfContent()' I'm not sure exactly what's changed here as it used to compile just fine but it's unclear now how I can work-around this error or how the API is supposed to be used. The following definition is enough to trigger the error in Swift 6 language mode. import TVServices class ContentProvider: TVTopShelfContentProvider { override func loadTopShelfContent() async -> (any TVTopShelfContent)? { return nil } } I can fix it by adding @preconcurrency to the TVServices import but it seems like this API is unusable currently? Or maybe it's user error on my part?
2
0
39
Aug ’25
Swift 6 conversion for IBOutlet
I'm struggling to convert Swift 5 to Swift 6. As advised in doc, I first turned strict concurrency ON. I got no error. Then, selected swift6… and problems pop up. I have a UIViewController with IBOutlets: eg a TextField. computed var eg duree func using UNNotification: func userNotificationCenter I get the following error in the declaration line of the func userNotificationCenter: Main actor-isolated instance method 'userNotificationCenter(_:didReceive:withCompletionHandler:)' cannot be used to satisfy nonisolated requirement from protocol 'UNUserNotificationCenterDelegate' So, I declared the func as non isolated. This func calls another func func2, which I had also to declare non isolated. Then I get error on the computed var used in func2 Main actor-isolated property 'duree' can not be referenced from a nonisolated context So I declared duree as nonsilated(unsafe). Now comes the tricky part. The computed var references the IBOutlet dureeField if dureeField.text == X leading to the error Ma
5
0
607
Aug ’25
Reply to Swift 6 conversion for IBOutlet
[quote='853068022, Claude31, /thread/796278?answerId=853068022#853068022, /profile/Claude31'] Converting to Swift 6 is definitely not an easy ride… [/quote] Well, we’re actively working to improve that. Speaking of that, what version of Xcode are you testing this on? I want to play around with some specific scenarios and it’d be good to know whether you’re testing on Xcode 16.4 or the latest Xcode 26.0 beta. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’25
unzip identifier is not unique?
In Swift I'm using unzip by launching a Process to unzip a file. I added a launchRequirement to the process in order to make sure the executable is code signed by Apple and the identifier is com.apple.unzip. After testing out my code on another machines (both physical and virtual), I found out that in some the identifier is actually com.apple.zipinfo, which broke the SigningIdentifier requirement. It's safe to assume that /usr/bin/unzip can be trusted since it's in a System Integrity Protection (SIP) location, but I'm wondering why this executable has different identifiers?
4
0
109
Aug ’25