Search results for

smb big sur

11,798 results found

Post

Replies

Boosts

Views

Activity

AsyncRenderer causes crashes in ForEach when in Swift 6 language mode
Hi! We've recently done a big migration to Swift 6 language mode in our app and are now getting reports of crashes occurring due to closures in our SwiftUI code (most often the view builder in ForEach) not running on the main queue but instead running on the queue com.apple.SwiftUI.AsyncRenderer. One example of a call stack (ScheduleListView is our view that is in Swift 6 mode): Thread 16 #0 (null) in _dispatch_assert_queue_fail () #1 (null) in dispatch_assert_queue$V2.cold.1 () #2 (null) in dispatch_assert_queue () #3 (null) in swift_task_isCurrentExecutorWithFlagsImpl(swift::SerialExecutorRef, swift::swift_task_is_current_executor_flag) () #4 (null) in closure #2 in closure #1 in closure #1 in ScheduleListView.body.getter () #5 (null) in closure #1 in ForEachState.item(at:offset:) () #6 (null) in partial apply for closure #1 in ForEachState.item(at:offset:) () #8 (null) in partial apply for closure #1 in _withObservation(do:) () .... (We have many other crashes with similar crash reports but in oth
Topic: UI Frameworks SubTopic: SwiftUI
2
0
95
3w
How to handle required @relationship optionals in SwiftData CloudKit?
Hi all, As you know, when using SwiftData Cloudkit, all relationships are required to be optional. In my app, which is a list app, I have a model class Project that contains an array of Subproject model objects. A Subproject also contains an array of another type of model class and this chain goes on and on. In this type of pattern, it becomes really taxxing to handle the optionals the correct way, i.e. unwrap them as late as possible and display an error to the user if unable to. It seems like most developers don't even bother, they just wrap the array in a computed property that returns an empty array if nil. I'm just wondering what is the recommended way by Apple to handle these optionals. I'm not really familiar with how the CloudKit backend works, but if you have a simple list app that only saves to the users private iCloud, can I just handwave the optionals like so many do? Is it only big data apps that need to worry? Or should we always strive to handle them the correct way? If that's the case
3
0
128
3w
Reply to Issue when creating Bookmark with security scope on macOS 26 RC
First off, on the bug front, these issues should be resolved in macOS 26.1, which we released to beta last week (25B5042k). Please test on that beta, and if you find any problem, file a new bug and post the bug number back here. Are we actually talking about the same bug though? Yes, I believe so. Coe 256 seems to be an issue only for the root drive of exFAT. The issue here was actually introduced as part of a security fix (r.151029665) and it affected exFAT, some SMB mounts, and the / AFPS mount. In both cases, the high-level issue is the same (basically, stat wasn't returning what it expected), but the underlying cause was different. In the case of exFAT, the file system is basically “too simple, so it's basically returning a synthetic (invented) value because the file system doesn't really have an alternative it can provide. In the case of APFS, the issue is that the way that data and system volumes are merged means that you can get different values for the same object, depending on exactly how yo
Topic: App & System Services SubTopic: Core OS Tags:
3w
Reply to BGContinuedProcessingTask launchHandler invocation
the launchHandler is there to tell you the task has started and provide you the BGTask object you use to manage that work. No task type actually requires the work to occur inside the task. Thanks Kevin! So I need to think about this a little differently then. Instead of performing the work once you get a BGContinuedProcessingTask, just begin performing the work (the exact same way you do in iOS 18), if a BGContinuedProcessingTask starts persist it and update it as the work completes, and reset state when the work finishes or gets canceled. Basically, something like this: 1-6 I put together code to demonstrate this approach. Did I understand correctly, this should be all good with this simple counting demo? class ViewController: UIViewController { private let taskIdentifier = (Bundle.main.bundleIdentifier!).count_task private let countToNumber: Int64 = 100 private var currentBackgroundContinuedProcessingTask: BGContinuedProcessingTask? private var shouldStopCounting = false @IBOutlet var progressLabel: UILabel
Sep ’25
Reply to Understanding deep sleep
When will we configure Hibernate 25? Is it valid for M series MacBooks? Is Hibernate 25 called deep sleep mode? So, let me start by quoting the man page for pmset: hibernatemode = 3 by default on portables. The system will store a copy of memory to persistent storage (the disk), and will power memory during sleep. The system will wake from memory, unless a power loss forces it to restore from hibernate image. ... hibernatemode = 25 is only settable via pmset. The system will store a copy of memory to persistent storage (the disk), and will remove power to memory. The system will restore from disk image. If you want hibernation - slower sleeps, slower wakes, and better battery life, you should use this setting. The thing to understand here is that the difference between those two ISN'T about how either mode “prepares for sleep. Both of them do exactly the same thing— that is, they flush all memory to disk, ensuring that power loss won't lose any data. The difference is that having done that flush, Hibernate 25
Topic: Privacy & Security SubTopic: General Tags:
Sep ’25
Reply to macOS 26 Launch Constraints
The problem ended up being solved by calling: sfltool resetbtm in Terminal, followed of course by a restart on each affected machine. Interesting that it occurred across several machines all running macOS 13 and 14 right when we updated to Xcode 26. It does seem like the system will occasionally get upset with big changes to the app through the development cycle.
Topic: Code Signing SubTopic: General Tags:
Sep ’25
Reply to AudioSession Crash
Please check the crash files as attached. So, this is a great example of why I always ask for a crash log, as the problem here doesn't actually have anything to do with the audio system itself. The problem is that your app is stuck in an infinite loop. For future reference, the most direct proof of this is that the number of stack frames on the crashing thread is very high (860) and that the base of the stack ISN'T a valid entry point for a thread. For the main thread, this would be main, but other threads would be thread_start or a similar entry point in libpthread. Crash collection system artificially limits the number of frames it collects (otherwise you'd potentially have 1000s+ of lines of repeating frames), so you aren't actually getting the true bottom of the stack. 858 <...> closure #1 in DeviceManager.init() + 80 859 <...> partial apply for closure #1 in DeviceManager.init() + 24 (/:0) 860 <...> closure #1 in NSNotificationCenter.addObserver(forType:object:queue:using:) + 232 (GaiaN
Sep ’25
Reply to Small Size Icons and NSToolbar on MacOS 12.0 Monterey -- can it work?
I have also just seen the height is way too big issue on Tahoe 26.0. I had recreated all my icons as all-vector PDFs with a large size and the toolbar grew to a huge depth (I presume the same size as the icon's files). Changing the page size of the PDFs to 32 (expressed in pixels in Affinity Designer) calmed this down but the icons are scaled to different sizes (mostly too small) if the sizing is left as Automatic. I had just changed them all from explicit sizes of 24-32 pix and it was all perfect on Sequoia/15.6. I though explicit sizes were deprecated so I had changed them as derisking action for Tahoe :-( Has anyone found any up-to-date documentation on NSToolbar? The only docs I have are very old.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’25
Looking for advice on app architecture
I have an existing Mac app which has evolved through over twenty years of development. It is currently written in a mixture of C++ and Objective-C, with a bit of C and Swift in a few places. For a few years now, I have been tinkering with replacing the UI with SwiftUI. The model has been completely rewritten in Swift and works fine. After a few tries, no version has been working acceptably, so I'm thinking that I need to rethink the architecture. The UI consists of a window with a master-detail view. The detail view is what users spend most of their time with. It contains a lot of subviews, around 100 typically. Keyboard events affect the display, so I've had a dedicated data structure to hold the state that is needed for displaying all the subviews. Using Instruments, I see that the view seems to recreate the subviews three times per keyboard event, so I'm clearly doing something wrong. A second factor is that there are a couple of dozen commands that are applicable to the detail view, driven either by menu
Topic: UI Frameworks SubTopic: SwiftUI Tags:
8
0
147
Sep ’25
Reply to Learn to write SwiftUI
This is the third time you’ve posted pretty much the same question [1]. Folks have tried to help you on your other threads, but I wanna take a step back and look at the big picture here. It’s unlikely that other folks on the forums have access to the specific book you’re working from. Given that, quoting an exercise from that book doesn’t help because other folks can’t look that up. You have a couple of choices: Switch to a different tutorial, one that’s publicly available. This is what Claud31 suggested here. Provide more context, so that folks can understand your question without having access to that specific tutorial. This is what darkpaw suggested here. I’m going to add a third option: Look for a support channel for your specific tutorial. For example, it’s not uncommon for book authors to set up a Discord channel to encourage conversation between folks who are using the book as a tutorial. Good luck! Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskim
Topic: UI Frameworks SubTopic: SwiftUI
Sep ’25
iOS26 CarPlay not optimized for Subaru 11.6 inch vertical in infotainment screen
The newest iOS 26 CarPlay upgrade seems more like a downgrade with vehicles from Subaru with the 11.6 inch vertical infotainment display. Such a big screen, but only one widget shows at a time additionally, prior to this iOS update we had three lines of apps on the main page now only two. also to be noted album art size on all music streaming and podcast apps is extremely small about half the size of what it originally was prior to this update yes, I tried turning on and off the screen optimization setting and CarPlay. It did not do anything.
0
0
466
Sep ’25
Reply to Files app iOS 26
Sometimes I download a set of photos I want to scroll through. This solution isn't working for me for folder of photos. Do I have to select each photo to open in Preview? This is a big PITA -- while features I could care less about (editing the photos in Files) is all that available. Finally, if I want to delete files I've viewed, now I have to delete in 2 places. Please bring old functionality back.
Topic: Community SubTopic: Apple Developers Tags:
Sep ’25