Mac OS

mountain lion

After upgrading macOS Monterey, the device wakes up frequently in the middle of the night after sleeping

Recently updated to macOS Monterey, Waking up by the screen in the middle of the nightclub,It feels weird,Have been before,But the screen will only light up when there is a notification,Now I light it up without any reason,The hardware is still that hardware,Then it should be the software's pot。

Checked it online,First I found Apple's official tutorial:https://support.apple.com/zh[……]

Click link to continue reading...

zsh enable bash * Asterisk wildcard function

Recently I found that the server is very slow every time apt upgrade,The reason,There are still a lot of unused kernels that have to be regenerated every time,Encountered a problem while cleaning up,*Number matching does not take effect,You must manually enter the full kernel name each time to uninstall it。

Found after stepping on the pit,It turned out to be because I used zsh,and zsh The default is not supported * No. wildcard! It’s easy to turn on this feature[……]

Click link to continue reading...

Open Xcode Live Preview for UIKit

One of the big benefits of using SwiftUI is that you can hot update the App like Flutter,UI code changed,Will be directly reflected in the simulator or the real machine,Greatly improve the efficiency of writing user interfaces,No need to change 1px,run,Various clicks,Then check the loop of effects。But it's too early to use SwiftUI,After all, there is still a lot of iOS 12 Equipment in operation[……]

Click link to continue reading...

Run and train Moses on macOS

Moses official website actually has macOS Binary packageof,You don't need to compile them from source。But short,Since Moses developers no longer use Macs,So he can't update,This leads to a bug in the code of the latest version (4.0),Make the binary file can not be used directly,The author said, "It's not difficult to compile from source anyway..." But in short,Compile Mo from BigSur[……]

Click link to continue reading...

Use Packages to create a pkg installation package that supports Apple M1 chip

Use advanced settings to modify Packages default parameters

It's been a while since Apple released the M1 chip device,Although I applied for DTK equipment at the first time,But for some reasons,Until Apple Recycles Equipment,I couldn't touch it myself。Anyway,The drop grid input method macOS still successfully supports the Apple architecture by blind typing,I.e. arm64,According to user feedback,The effect is ok。

Until some users say that although the app supports the m1 chip,[……]

Click link to continue reading...

macOS uses the atos command to parse arbitrary crash records and sample data

Recently, the drop grid input method has encountered several difficult to reproduce problems-the key is that it will not cause a crash。This makes the crash statistics function completely ineffective,The specific performance is that the input method will suddenly get stuck for a few seconds in some cases,Very annoying。Then I thought,macOS comes with activity manager,There is a "sampling" function,You can see the current execution (call) status of the corresponding process,Can I use it to analyze the cause of the error?

In Japan[……]

Click link to continue reading...

Xcode plugin is missing and does not display the solution

In system preferences,Xcode extensions are not displayed

In a previous article, I introduced a way to install multiple versions at the same time Xcode Tool ofUse xcode-install to manage Xcode versionsBut when there are multiple Xcodes in your system at the same time,Will cause system confusion,Make Xcode plugins unrecognizable,The main manifestation is that it is not visible at all in the system preferences Xcode pluginOptions-just like you[……]

Click link to continue reading...

Use a third-party mouse without a driver on macOS

Enable management of Logitech mouse

All to known,macOS to third partiesmouseVery picky,If it is an ordinary office mouse,That almost works,At most, the fixed DPI requires adjusting the mouse speed.,But if it goes up to a gaming mouse with more buttons,There are many problems。

Not necessarily for playing games,For example, a mouse with forward and back buttons is very useful when writing code。

In General,The famous mouse will support macOS[……]

Click link to continue reading...