Bug

"error: unable to read SDK settings"

After I upgraded my MacBook to macOS Mojave, for every command executed in my Terminal I got error message like this: git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk' git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk' git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' CommandLineTools was outdated, reinstalling Command Line Tools…

Keep reading

Upgrade to Ghost 2.0

Tried to upgrade Ghost,  since Ghost 2.0 was released , first I need to upgrade to the latest Ghost 1.0 version. $ ghost update Running sudo command: systemctl is-active ghost_muyexi-im ✔ Checking system Node.js version ✔ Ensuring user is not logged in as ghost user ✔ Checking if logged in user is directory owner ✔ Checking current folder permissions ✔ Checking folder permissions ✔ Checking file permissions ✔ Checking content folder ownership ✔ Checking memory availability ✔ Checking for available migrations ✖ Checking for latest Ghost version A CliError occurred. Message: You are about to migrate to Ghost…

Keep reading

weak or unowned?

In Swift, we often use weak or unowned to break reference cycles for closures. I use unowned a lot because I don't have to handle optinal type. I love concise code. For example: class ViewController: UIViewController { lazy var api: API = { let api = API() api.completionHandler = { [unowned self] obj in self.doSomething() } } override func viewDidLoad() { super.viewDidLoad() api.request() } } While I know it's safer to use weak, everthing seems OK. Then I got some mysterious crashes. SIGABRT 0 libsystem_kernel.dylib __pthread_kill + 8 1 libsystem_pthread.dylib _pthread_kill$VARIANT$…

Keep reading

使用FIR安装测试版失败

使用FIR发布测试版后,安装失败,查看安装过程中的相关Log为 entitlement 'get-task-allow' has value not permitted by provisioning profile -[MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of (Entitlements found that are not permitted by provisioning profile) 检查后发现安装失败的原因为:项目的Build Settings中的Provisioning Profile无效(比如你在Apple的后台更新该Profile之后,本地旧的Provisioning Profile会显示为一串数字,需要重新选择正确的)…

Keep reading