Mac OS

mountain lion

/usr/libexec/lsd occupied 100% CPU solution

Suddenly discovered a large number of writes on the disk recently,Open the task manager,Found a process called "lsd" continues to occupy 20% – 40% CPU,Very strange。

After some inquiries,Learned that this process is a system process on macOS and iOS,Full name is "Launch Service Daemon",Responsible for all App file type association and startup。But its[……]

Click link to continue reading...

Use xcode-install to manage Xcode versions

we all know,There is pyenv when using Python,If you use ruby, there is rbenv,Can easily control and manage the version of the programming language environment,Then,Is there any way,Can Xcode switch versions like this?

Every time Xcode releases an update,More or not has become a problem,Difficult to download,Can't resume,Can't use third-party tools to download,[……]

Click link to continue reading...

Safari 13 Remove Google search results jump

Create a new Safari plugin project using Xcode

In Safari 9 before,We just download a safariextz file and double click on it,So that Safari can load this plugin。The benefit is definitely very convenient,But it ’s also not very secure (plugins that can be downloaded everywhere,It is likely to have been tampered with)。

So later,Apple no longer allows users to directly download plug-ins to install on Safari,Must pass Mac App[……]

Click link to continue reading...

How to get your macOS to display the Taiwan Flag Emoji again 🇹🇼️🇹🇼️🇹🇼️

macOS uses a dedicated field to store country codes

The Taiwan flag cannot be displayed at the earliest,It's on iPhone,Apple determines by iOS system region and language settings,if it is chinese,I will put the Taiwan flag emoticon displayed as :The cracking method is also very easy,Just change the language and region.,For example, select the language as Traditional Chinese or English。

Now,Apple no longer simply makes judgments based on language and other settings.,Via iPhone hardware serial number[……]

Click link to continue reading...

Pocketed input macOS 2 It is how to restart the free activation input method

On macOS,Install the input method has always been a nightmare,To open the system input method directory,We should drag input into this directory,The process also enter a password,Full manual bad enough,After we had to reboot the system to recognize,Not really a headache。

Later, we gradually realized the problem,Pocketed input method is also provided macOS standard installation package pkg。

Having said that,But in fact it seems[……]

Click link to continue reading...

Why is my upload so slow Fastlane?

automation

Processed using automated tools for iOS test Flight distribution,It is a very pleasant thing,It can save you a lot of time,Reduce the amount of manual intervention - especially like this need to wait a long time to look at things that require manual operation,Although it does not make you feel tired,But a lot of time so wasted。

use fastlane A key to compile、Upload,And then wait for Apple server[……]

Click link to continue reading...

Disabling automatic start Android File Transfer

Android File Transfer is a good thing,In macOS can easily transfer files in to Android phones etc.,But one thing is this bad thing will reside process in the background to monitor usb insert,People very uncomfortable。

Especially when the device is inserted Android,Automatic pop-ups,Also the connection fails (because you have no time to point authorized on the phone),Very annoying。

To ban[……]

Click link to continue reading...

DoT DoH addition DNSCrypt,You can also learn more about the DNS encryption scheme

2018On November 2nd update,One day after switching to DoT,All stubby built-in server running unusually slow,Until daily use is immune to give up ......。

2018On November 1st update,used 5 After days DoH,Since the server is currently offering this service only 1.1.1.1,I was here at this address operators blocked。
[crayon-690[……]

Click link to continue reading...

NSTextField text blur solution canDrawSubviewsIntoLayer

Among developing pocketed input process macOS,I have been plagued by a strange question - text blurred。

Sub-pixel

No matter how I debug,Pocketed candidate text input method can not achieve the original text as clear and sharp。After a big ask God,The resulting experience is to see live a long time - upstreamSub-pixel rendering bug。

In many platforms have similar problems,macOS[……]

Click link to continue reading...

Use Cherry MX Board on macOS 8.0 RGB

Woman sent me a ticket Cherry MX Borad 8.0! Yes,That is a rare manufacturers that need a 9.5 H CNC milling machineAnodizing 87 Key mechanical keyboard! Apple external keyboard and a design style,Coupled with a specially designed key caps font,I fell in love with at first sight to see(Incidentally blown about,This is what I often sayDesign three elementsIn the "visceral design")

but[……]

Click link to continue reading...

UTI quick check of a file

When carrying out the development of iOS macOS,We often need to interact and file,For example, association and open a certain type of file,Well, this time,Your name suffix used in this document are not,But it's UTI。

UTI is a unified file type name,It sets out what should be a file type,Rather than suffixes to determine,For example, txt,text,json are pure text files[……]

Click link to continue reading...

Item “xxx” is used by macOS and cannot be opened.

When restoring data,You may need to use U disk copy data,But macOS default is read-only mount ntfs,of course,We have a way to use the command line to become re-mount it read-write。But this is likely to cause ntfs permission error,The result is that when plugged into another computer's,This file mayGrayed

If you use this time to force it open decompression software,Then you will have to[……]

Click link to continue reading...