Search results for

smb big sur

11,794 results found

Post

Replies

Boosts

Views

Activity

Reply to How to detect an auto-mounting directory and wait for it to get mounted?
Wow, Kevin. That's excellent support, thank you so much for making the effort! I had no idea that using concurrency in file system calls would have any such effect. You proved me wrong. In a real implementation, I think you'd probably want a fixed set of threads calling getattrlistbulk, another set of threads processing the data each call produced, and then system the pushed directory back to the syscall thread. Already doing all the processing past the initial gathering of the directory contents in a separate thread, but that's clearly far from what's possible. I actually tracked this bug down and I have a question about your testing. Were you always testing on freshly mounted volumes (meaning, umount volume-> mount volume-> searchfs)? Or did you also test on volumes under normal use and repeatedly running searchfs? The use case of my app is to mainly run searches on the entire startup volume. So that's what I focused on with my tests. I try to be aware of caching effects (I believe some OS versions ca
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
Reply to How to detect an auto-mounting directory and wait for it to get mounted?
I also agree that some of the properties, such as NSURLIsVolumeKey shouldn't be costly because they should not require another call into the BSD/POSIX APIs as I'd have thought that the information is already present at the level above the VFS. And that's especially true for the NSURLIsDirectoryKey. No, it doesn't work that way. More specifically, there are basically two levels where caching can occur: At the system level, where all processes have a coherent view of what they believe the file systems current state is. At the process level, where processes have whatever data they last received from #1. The key issue here is that the system level cache IS the VFS layer. The POSIX APIs operate as the bridge between those two layers and that means they minimize any kind of caching (since that would only complicate the bridge). That is, the ony level above the VFS layer IS NSURL. It should be caching the data it's getting from getattrlistbulk (that's one of it's jobs) and it shouldn't be seeing the large performanc
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
Reply to How to detect an auto-mounting directory and wait for it to get mounted?
I've noted down your comments, though, in case I have to work on this again. I have a concern about performance, though: I like to be as fast as possible with the iteration, especially if I only need to look at file names. So, my first and biggest warning here is that this kind of performance testing is excruciatingly tricky and error prone. There are so many details and edge cases that distort the results, all of which make it very hard to be entirely confident in any conclusion. The next thing to understand here is that the fundamental performance issues and the corresponding solutions are EXACTLY the same across basically all of the APIs your looking at. More specifically, going back to your article here: https://blog.tempel.org/2019/04/dir-read-performance.html ...you reference basically 3 APIs. Here are the APIs and their underlying implementation: contentsOfDirectoryAtURL-> Implemented as a wrapper around enumeratorAtURL, which is wrapper around getattrlistbulk. opendir()/readdir_r()-> Wrapper aro
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
App Intents doesn't works in widgets
I’m trying to develop a widget with a button that triggers an app intent. I integrated the app intent into my app within a separate app framework. I tested it with Shortcuts and Siri, and it works well—it opens the app on the required screen. However, when I added a button Button(intent: MyIntent()) to my widget, it doesn’t work at all. The only clue I found is the following message in the Xcode debug console: “No ConnectionContext found for (some big integer)” when I tap on the widget's button. However, I see the same message when running it through the Shortcuts app, and in that case, it works fine. Does anyone know what might be causing this issue? My Intent: public struct OpenTextInputIntent: AppIntent { public static var title: LocalizedStringResource = Open text input public static var openAppWhenRun: Bool = true @Parameter(title: Predefined text) public var predefinedText: String @Dependency private var appCoordinator: AppCoordinatorProtocol public init() { } public func perform() async throws
0
0
93
Mar ’25
Reply to If you have code to package as a framework which has a 3rd party dependency, what can you do given that iOS doesn't support umbrella frameworks
[quote='829701022, mungbeans, /thread/776743?answerId=829701022#829701022, /profile/mungbeans'] How should a framework be statically linked into its parent framework, which setting in Xcode controls this? [/quote] There are three basic strategies for this: Build a static library. Build a static framework. Build a mergeable framework and then choose to statically link it. Honestly, I’m a big fan of the last option because it gives your clients the most flexibility. Regardless, the exact process depend on a variety of factors, including the build system you use to create the library and the build system you use to consume it. For Xcode, there are various articles in Xcode > Bundles and frameworks and Xcode > Build system. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Mar ’25
Reply to Strong Passwords with SecAccessControlCreateWithFlags
[quote='776929021, neil218, /thread/776929, /profile/neil218'] Is there a way to enforce strong password requirements when using the .applicationPassword flag? [/quote] There is not. I think that’d made a fine enhancement request. If you do file an ER, please post your bug number, just for the record. [quote='776929021, neil218, /thread/776929, /profile/neil218'] If enforcing strong passwords isn’t possible, is there an alternative approach to provide a predefined strong password during the creation process, bypassing the need for user input? [/quote] No. But I suspect I’m missing something here. Let’s say you could do this, what would the workflow look like? Would you expect the user to remember this high-complexity password? That seems rather… well… brittle. [quote='776929021, neil218, /thread/776929, /profile/neil218'] With SecAccessControlCreateWithFlags, I noticed the item isn’t stored in the traditional file-based Keychain but in an iOS-style Keychain … ? [/quote] Correct. This is officially known as th
Topic: Privacy & Security SubTopic: General Tags:
Mar ’25
Debugging memory consumption in an Endpoint Security process
I have a launch daemon that's using the Endpoint Security framework which also is causing high memory usage (in Activity Monitor memory column shows for example 2GB and Real Memory 11MB) when building a big project in Xcode. Is it some kind of memory caching by the system? leaks -forkCorpse seems to not show any leaks. How can I attach with heap or Instruments without the process being killed with ENDPOINTSECURITY, Code 2 EndpointSecurity client terminated because it failed to respond to a message before its deadline?
1
0
145
Mar ’25
Unable to open mach-O at path - metallib Error:2
When I toggle a panel like navigationsidebar, I get a message in the console. I guess it's not a big issue, but is there a way to fix this message? because it appears in every project. Unable to open mach-O at path: /AppleInternal/Library/BuildRoots/d187757d-b9a3-11ef-83e5-aabfac210453/Library/Caches/com.apple.xbs/Binaries/RenderBox/install/TempContent/Root/System/Library/PrivateFrameworks/RenderBox.framework/Versions/A/Resources/default.metallib Error:2
1
0
444
Mar ’25
Getting VoIP notifications to work and use iOS call UI when phone is locked/app is in background/Not running
Hey there my application allows users to have video calls with each other using Agora. I have successfully set up incoming call functionality on Android but on iOS I am struggling to get the call ui to appear when the app is not running/in background/locked. To my knowledge this is because there is much stricter security on iOS which is limiting me from calling this. When i initially set it up it worked at first when the app was in the background but I think I was failing to report the call to call kit in time and now it's not working. I'm not sure if I need access to this entitlement: com.apple.developer.pushkit.unrestricted-voip Which i believe is only for the big boys or if I make sure I'm reporting the call to call kit fast enough that I won't encounter this issue and it will consistently work in the background.
0
0
205
Mar ’25
Reply to macOS maximum CPU usage of application
What is the maximum of CPU power that an application can consume? So, the first thing to understand is that the percentage here is both relative to each device and somewhat made up. The evolution here started with single core machine where, in theory, it meant the CPU is completely busy. When symmetric multi-core machine came along, the decision was made to treat each CPU as it's own percentage, so the max percentage of a (symmetric) 2 core machine was 200%. Now, when you get to a asymmetric system... that math doesn't really work, a 100% of an E core is lot less computational power than the same percentage of a P core. More to the point, all of these percentage are a bit of an invented abstraction as they don't actually correspond to any kind of absolute measure. Are there any limits and There's a limit in the sense that we decided what percentages we'd use on every machine we ship. could they be modified? I'm not sure what you mean here. They'll absolutely vary between machine models. That is: Across core c
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’25
Reply to How to detect an auto-mounting directory and wait for it to get mounted?
Ironically, the answer is found in a 10 year old post by myself As an additional irony, I'd just finished writing all this up when I saw your own post. Filling in some details which may be helpful... (This was a bit surprising to me - I'd have thought that Windows or SMB would hide the fact that the share has sub-volumes, and simply show them as directories - and that's what it did in older macOS versions indeed, e.g. in High Sierra. But in Sequoia, these sub-volumes on the Windows side are mirrored on the Mac side, and they behave accordingly) This is actually done by something called DFS (Distributed File System), which is actually designed to allow an organization to present a unified hierarchy across multiple servers as well as shares. The broader protocol obviously handles much more that this specific volume case and I suspect they used it here because it handles standard edge cases better* and the work had already been done. *For example, exposing the secondary volume as a separate share means
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’25
LSRegisterURL resultCode -10819
I have an option in my app to set the URL Handler for smb or switch it back to Finder. But using my code below it always give me a -10819 error. Which is a generic kLSNotRegisteredErr, even those the documentation shows Not currently used. func setDefaultHandler(bundleID: String) { DebugLogger.shared.log(Attempting to set (bundleID) as default handler for SMB URLs) // Post Sonoma macOS requires user interaction to change default handlers // We'll register our app and then guide the user to System Settings // For our app, register it with Launch Services if bundleID != com.apple.finder { if let appBundleURL = Bundle.main.bundleURL as CFURL? { let registerResult = LSRegisterURL(appBundleURL, true) DebugLogger.shared.log(LSRegisterURL result: [(appBundleURL)](registerResult)) } } // Check current handler using modern API let testSMBURL = URL(string: smb://example.com)! if let handlerURL = NSWorkspace.shared.urlForApplication(toOpen: testSMBURL) { DebugLogger.shared.log(Current default
4
0
332
Mar ’25
"es_new_client"'s "es_handler_block_t" can't receive a ES_EVENT_TYPE_NOTIFY_KEXTLOAD in M1 macOS11 BigSur
I am using es_new_client and es_subscribe in SystemExtension and EndpointSecurity. I tested it on M3, and it is working. It also works on M1 versions 12, 13, and 14. Additionally, ES_EVENT_TYPE_NOTIFY_KEXTUNLOAD is functioning correctly. However, there is a bug on M1 Big Sur where es_new_client's es_handler_block_t cannot receive ES_EVENT_TYPE_NOTIFY_KEXTLOAD. The tested command is: sudo kextload /System/Library/Extensions/msdosfs.kext sudo kextload /System/Library/Extensions/*.kext Is this intended behavior or a bug? Are there any plans to fix it?
1
0
278
Mar ’25
Reply to HID reports issue migrating from IOKit.hid to CoreHID
First off, as some clarifying background context, there has always been a pretty large gap between how the HID specification was intended to work and what actually ships as hardware. In theory, HID devices should be largely self documenting. The accessory describes it's physical configuration, the system maps that configuration into the system user interface, and everything just works. Unfortunately, in practice that's not how most hardware actually ships. More specifically: HID has been fairly widely used as software control/configuration API, not just for actual control accessories. For example, MANY microphones have one or more secondary interfaces which are used to configure the microphone. HID actually works VERY well for this sort of thing, though it does mean that an app needs to be careful about how it interacts with whatever it finds. A very large percentage of HID accessories present HID configuration which are WILDLY out of line with their physical configuration. It's entirely possible that hardwar
Topic: App & System Services SubTopic: Hardware Tags:
Mar ’25
How to detect an auto-mounting directory and wait for it to get mounted?
I need to detect the triggering of an auto-mount operation when accessing the path to a formerly unknown mount point at the file system (BSD, POSIX, NSURL) level, and how to wait for it to finish the operation. Network shares can have sub-volumes on them Consider a Windows server. Let's say there's a SMB sharepoint at C:Shared. It has some folders, one of which is at C:SharedMore. Furthermore, there's another partition (volume) on the PC, which is mounted at C:SharedMoreOtherVol. If you mount the initial share on a Mac with a recent macOS, macOS initially only sees a single mount point at /Volumes/Shared, which can be checked with the mount command. Now, if you use Finder to dive into the Shared/More folder, Finder will trigger an auto-mount action on the containing OtherVol folder, and after that, the mount command will list two mount points from this server, the second being at /Volumes/Shared/More/OtherVol. (This was a bit surprising to me - I'd have thought that Windows or SMB would hide
11
0
429
Mar ’25