macos-catalina

zsh autocomplete slow for ssh

▼魔方 西西 提交于 2021-01-05 06:29:59
问题 I upgraded my macbook to OSX Catalina recently. Ever since that upgrade my zsh autocomplete (tab completion) for ssh is really slow (previously, it was reasonably fast, e.g. autocomplete would happen in a few seconds). Some details that I think are relevant: I have a ~/.ssh/config file with ~2000 hosts configured When I type ssh x <TAB> things seem to hang, typing ctrl-C says Killed by signal in _ssh_hosts after 22s so it seems that my _ssh_hosts script is the problem Any tips on how to debug

zsh autocomplete slow for ssh

回眸只為那壹抹淺笑 提交于 2021-01-05 06:29:37
问题 I upgraded my macbook to OSX Catalina recently. Ever since that upgrade my zsh autocomplete (tab completion) for ssh is really slow (previously, it was reasonably fast, e.g. autocomplete would happen in a few seconds). Some details that I think are relevant: I have a ~/.ssh/config file with ~2000 hosts configured When I type ssh x <TAB> things seem to hang, typing ctrl-C says Killed by signal in _ssh_hosts after 22s so it seems that my _ssh_hosts script is the problem Any tips on how to debug

MacOS: How/where do I store a programmatically created file within my app folder?

自作多情 提交于 2021-01-02 03:55:12
问题 Very new to MacOS development (as in, completely new). I've developed a MacOS app (SwiftUI / Swift) and now figuring out a very things related to deployment. My app generates a text file, but I'd like to save it within the app's folder (or whatever it is called) - and not in a user specified folder, and read it when I want. I can read resources from the Assets.xcassets but I'd like to be able to save as well without making the user choose a location. Is there a way I can write/read from the

Cannot preview in this file - active scheme does not build this file : SwiftUI on Xcode 11 in CatalinaOS

回眸只為那壹抹淺笑 提交于 2020-12-26 05:51:52
问题 I opened Landmark App using SwiftUI on Xcode 11 in macOS Catalina(10.15) and while opening the Canvas Editor for .swift files containing SwiftUI is showing Cannot preview in this file - active scheme does not build this file Try Again , Diagonistics option or restarting Xcode not solving the problem. 回答1: Select the Scheme that has the current file to Preview 回答2: If this is a new project coming from a copied folder and inside an iCloud folder, just close Xcode and relaunch it. The sync was

Cannot preview in this file - active scheme does not build this file : SwiftUI on Xcode 11 in CatalinaOS

坚强是说给别人听的谎言 提交于 2020-12-26 05:51:44
问题 I opened Landmark App using SwiftUI on Xcode 11 in macOS Catalina(10.15) and while opening the Canvas Editor for .swift files containing SwiftUI is showing Cannot preview in this file - active scheme does not build this file Try Again , Diagonistics option or restarting Xcode not solving the problem. 回答1: Select the Scheme that has the current file to Preview 回答2: If this is a new project coming from a copied folder and inside an iCloud folder, just close Xcode and relaunch it. The sync was

Trash files inside user-selected folder inside iCloud Drive

混江龙づ霸主 提交于 2020-12-09 04:24:11
问题 My app works with user txt-files (create, change, delete) inside any user-selected folder. I just internally store the bookmark to get access to that user-selected folder and files. Now, with macOS Catalina when the source folder is inside iCloud Drive, system still allows me to create and edit files. But doesn't allow to trash one. When I try to do it via [[NSFileManager defaultManager] trashItemAtURL: ... ] I get the following error: Error Domain=NSCocoaErrorDomain Code=3328 "<filename>

Trash files inside user-selected folder inside iCloud Drive

坚强是说给别人听的谎言 提交于 2020-12-09 04:23:57
问题 My app works with user txt-files (create, change, delete) inside any user-selected folder. I just internally store the bookmark to get access to that user-selected folder and files. Now, with macOS Catalina when the source folder is inside iCloud Drive, system still allows me to create and edit files. But doesn't allow to trash one. When I try to do it via [[NSFileManager defaultManager] trashItemAtURL: ... ] I get the following error: Error Domain=NSCocoaErrorDomain Code=3328 "<filename>

Determine Volume Groups in macOS Catalina, Big Sur and later

空扰寡人 提交于 2020-12-06 12:32:49
问题 Since macOS 10.15 (Catalina), a volume, as the user sees it, may actually be comprised of multiple volumes, such as the System and the Data volume. I'm writing a tool that needs to identify these volumes separately because when using specific file operations, such as searchfs and fts_read , which do not cross such volume boundaries, I need to understand which volumes belong together, so that, when the user wants to search a system volume, I know to include both the "System" and its "Data"

Determine Volume Groups in macOS Catalina, Big Sur and later

妖精的绣舞 提交于 2020-12-06 12:32:14
问题 Since macOS 10.15 (Catalina), a volume, as the user sees it, may actually be comprised of multiple volumes, such as the System and the Data volume. I'm writing a tool that needs to identify these volumes separately because when using specific file operations, such as searchfs and fts_read , which do not cross such volume boundaries, I need to understand which volumes belong together, so that, when the user wants to search a system volume, I know to include both the "System" and its "Data"

Determine Volume Groups in macOS Catalina, Big Sur and later

馋奶兔 提交于 2020-12-06 12:31:43
问题 Since macOS 10.15 (Catalina), a volume, as the user sees it, may actually be comprised of multiple volumes, such as the System and the Data volume. I'm writing a tool that needs to identify these volumes separately because when using specific file operations, such as searchfs and fts_read , which do not cross such volume boundaries, I need to understand which volumes belong together, so that, when the user wants to search a system volume, I know to include both the "System" and its "Data"