Search results for

Swift 6

49,210 results found

Post

Replies

Boosts

Views

Activity

Accessibility Personal Voice Issue with iOS & iPadOS Beta 1-6
Please refer to Feedback report: FB19701007 The Personal Voice file created in English changes to either Spanish or Chinese and no longer works properly. This has been happening since Beta 1 of iOS/iPadOS 26. I have been unable to pinpoint what causes this to occur. Possibly downloading foreign voices to a device or using different voices via AVSpeechSynthesizer. I run an app in Xcode on my device that prints to the console info about the installed voices. Initially after creation here is the output: Voice Identifier: com.apple.speech.personalvoice.16173F8D-DFB0-4024-98CC-69D965FD96A4 Language: en-US Then I hear a Spanish accent and find this: Voice Identifier: com.apple.speech.personalvoice.16173F8D-DFB0-4024-98CC-69D965FD96A4 Language: es-MX Currently it isn't working and here is the output: Voice Identifier: com.apple.speech.personalvoice.16173F8D-DFB0-4024-98CC-69D965FD96A4 Language: zh-CN Note that the voice file on all three above is the same. No matter what the user does, the created voice file should
0
0
820
3w
Reply to Help needed identifying commands for remote access
libdispatch.dylib + 112004) [0x1a4f40584] 1 ??? (libswiftDispatch.dylib + 7308) [0x1a6606c8c] 1 ??? (libswiftDispatch.dylib + 7728) [0x1a6606e30] 1 ??? (libswiftDispatch.dylib + 7972) [0x1a6606f24] 1 ??? (libswiftDispatch.dylib + 8124) [0x1a6606fbc] 1 ??? (libswiftDispatch.dylib + 7768) [0x1a6606e58] 1 ??? (GRDBInternal + 9948) [0x2674e16dc] 1 ??? (GRDBInternal + 9764) [0x2674e1624] 1 ??? (ToolKit + 528580) [0x278d030c4] 1 ??? (libsqlite3.dylib + 521032) [0x1cb4b0348] 1 ??? (libsqlite3.dylib + 1067048) [0x1cb535828] 1 ??? (libsqlite3.dylib + 382056) [0x1cb48e468] 1 ??? (libsqlite3.dylib + 309376) [0x1cb47c880] 1 ??? (libsystem_kernel.dylib + 27292) [0x1eddfba9c] 1 Binary Images: 0x104810000 - ??? com.apple.WorkflowKit.BackgroundShortcutRunner 7.0 (3612.0.2.1) /System/Library/PrivateFrameworks/WorkflowKit.framework/XPCServices/BackgroundShortcutRunner.xpc/BackgroundShortcutRunner 0x1a4f25000 - 0x1a4f6ab3f libdispatch.dylib /usr/lib/system/libdispatch.dylib 0x1a6605000 - 0x1a661b560 libswiftDispatch.dylib <
Topic: Community SubTopic: Apple Developers Tags:
3w
Reply to Help needed identifying commands for remote access
{app_name:BackgroundShortcutRunner,timestamp:2025-08-15 17:49:40.00 +1000,app_version:7.0,slice_uuid:DAB8C7ED-E848-3D53-BDF3-CE9809DE4D53,build_version:3612.0.2.1,bundleID:com.apple.WorkflowKit.BackgroundShortcutRunner,duration_ms:882533,share_with_app_devs:0,is_first_party:0,bug_type:145,os_version:iPhone OS 18.6.1 (22G90),roots_installed:0,name:BackgroundShortcutRunner,incident_id:3F24B677-0C9B-4556-AF18-02EDAB046108} Date/Time: 2025-08-15 17:34:56.315 +1000 End time: 2025-08-15 17:49:38.848 +1000 OS Version: iPhone OS 18.6.1 (Build 22G90) Architecture: arm64e Report Version: 60 Incident Identifier: 3F24B677-0C9B-4556-AF18-02EDAB046108 Data Source: Microstackshots Shared Cache: C4C231A4-B057-324E-9152-B464B595F130 slid base address 0x19a404000, slide 0x1a404000 Command: BackgroundShortcutRunner Path: /System/Library/PrivateFrameworks/WorkflowKit.framework/XPCServices/BackgroundShortcutRunner.xpc/BackgroundShortcutRunner Identifier: com.apple.WorkflowKit.BackgroundShortcutRunner Version: 7.0 (3612.0.2.1) Res
Topic: Community SubTopic: Apple Developers Tags:
3w
Alarmkit custom sound plays once
When setting a custom sound in AlarmKit, the alarm only plays the audio file once. I can understand why push notifications would play a sound only once, but I don’t understand why alarms can only play the sound for less than 30 seconds. We’re already at beta 6, so I’m wondering if Apple still hasn’t fixed this or if they have no intention of fixing it.
5
0
240
3w
Reply to Compile Error
Cocoapods is a third-party tool, so if you're committed to using that as a dependency manager for your project, you should seek support using their support resources. As an alternative, Xcode supports Swift Package Manager, so if you're interested in switching all of your dependencies over to using that instead, that will also resolve this issue for you. — Ed Ford,  DTS Engineer
Topic: App & System Services SubTopic: StoreKit Tags:
3w
Reply to Crash when assigning NSImage to `@objc dynamic var` property
The NSImageView is in fact in an NSTableView, and I call NSImageView.bind(:to:withKeyPath:options:) in the callback passed to NSObject.observe(:options:changeHandler). The observer is added when the table cell view's objectValue is set, then removed again when it is set to nil. I'll add a call to NSImageView.unbind(.value) and see if that solves the crash. Your code has me a bit confused. How do you modify the contents of the NSImageView? Are you: Modifying the property of MyObject? (going through the binding) Modifying objectValue? (directly modifying the view cell) It feels like you're somewhat awkwardly set up to do both, which seems like an unnecessary complication. In the first case, there's no reason to remove any views, as you're simply doing a one-timing binding to a specific NSImageView. In the second case, you could drop binding entirely and simply directly assign the image whenever it changes. My concern here is that mixing both puts you in an odd situation, since going through #2 will remove the e
Topic: UI Frameworks SubTopic: AppKit Tags:
3w
iOS 26, bottom UIToolbar not extending behind safe area to screen edge
An app with a UIToolbar pinned to the bottom of a view controllers view extends to the screen edge (behind the safe area) when run on iOS 18.X but not iOS 26. This UIToolbar is set as constrained to the safeAreaLayoutGuide with the following constraints. self.view.addConstraints([ bottomToolbar.leadingAnchor.constraint(equalTo: self.view.leadingAnchor), bottomToolbar.trailingAnchor.constraint(equalTo: self.view.trailingAnchor), bottomToolbar.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor), bottomToolbar.heightAnchor.constraint(greaterThanOrEqualToConstant: 44.0) ]) This is especially noticeable when the UIToolbar background color differs from the view background color. This occurs on iOS 26 beta 6, app built with Xcode 26 beta 5. I've posted a Feedback FB19664903 including a minimal Xcode workspace that reproduces this issue. Anyone suggestions would be appreciated ... this definitely seems like a regression.
3
0
194
3w
Reply to Crash when assigning NSImage to `@objc dynamic var` property
When any image view is being destroyed, make sure you're setting the target image to null and you've torn down any KVO infrastructure you've created that's tied to that object The NSImageView is in fact in a NSTableView, and I call NSImageView.bind(_:to:withKeyPath:options:) in the callback passed to NSObject.observe(_:options:changeHandler). The observer is added when the table cell view's objectValue is set, then removed again when it is set to nil. I'll add a call to NSImageView.unbind(.value) and see if that solves the crash. class MyCellView: NSTableCellView { private var observer: NSKeyValueObservation? override var objectValue: Any? { didSet { if let objectValue = objectValue as? MyObject { observer = objectValue.observe(.property) { [weak self] _, _ in for view in subviews { view.removeFromSuperview() } let imageView = NSImageView(image: nil) imageView.bind(.value, to: objectValue, withKeyPath: keyPath) addSubview(imageView) } } else { observer = nil } } } } That's generally a reasonable statement for
Topic: UI Frameworks SubTopic: AppKit Tags:
3w
Cannot install any widgets. Crash in SBHRippleSimulation.
I cannot install any widgets on my simulator, even the system provided ones. I just finished removing all dev software from my machine and reinstalling only Xcode 16.3. Springboard always crashes: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0xfffffffffffffff8 Exception Codes: 0x0000000000000001, 0xfffffffffffffff8 VM Region Info: 0xfffffffffffffff8 is not in any region. REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> UNUSED SPACE AT END Termination Reason: SIGNAL 11 Segmentation fault: 11 Terminating Process: exc handler [5015] Triggered by Thread: 0 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 SpringBoardHome 0x10f0f8e50 -[SBHRippleSimulation clear] + 74 1 SpringBoardHome 0x10f0f8f0f -[SBHRippleSimulation createRippleAtGridCoordinate:strength:] + 73 2 libdispatch.dylib 0x12de8e5b6 _dispatch_client_callout + 6 3 libdispatch.dylib 0x12de78a33 _dispatch_continuation_pop + 859 4 libdispatch.dylib 0x12de8baa
0
0
108
3w
How to get PersistentIdentifier from a model created in a transaction?
I have a ModelActor that creates a hierarchy of models and returns a PersistentIdentifier for the root. I'd like to do that in a transaction, but I don't know of a good method of getting that identifier if the models are created in a transaction. For instance, an overly simple example: func createItem(timestamp: Date) throws -> PersistentIdentifier { try modelContext.transaction { let item = Item(timestamp: timestamp) modelContext.insert(item) } // how to return item.persistentModelID? } I can't return the item.persistentModelID from the transaction closure and even if I could, it will be a temporary ID until after the transaction is executed. I can't create the Item outside the transaction and just have the transaction do an insert because swift will raise a data race error if you then try to return item.persistentModelID. Is there any way to do this besides a modelContext.fetch* with separate unique identifiers?
2
0
155
3w