![](/media/posts/categories/covers/programming.jpg)
Sep
22
SSL: certificate verify failed
Published 12:09 Sep 22, 2016 by @ezra.
#Programming# 今天在虚拟机里安装 CocoaPods 的时候,偶然遇到一个问题:
$ gem install cocoapods
ERROR: Could not find a valid gem 'cocoap...
![](/media/posts/categories/covers/programming.jpg)
Sep
12
Xcode 8: Resource fork, Finder information, or similar detritus not allowed
Published 12:09 Sep 12, 2016 by @ezra.
#Programming# 最近 Xcode 8 中遇到这样一个错误:
.app: resource fork, Finder information, or similar detritus not allowed
其实解决办...
![](/media/posts/categories/covers/programming.jpg)
Sep
10
Swift 3: Basic Syntax
Published 12:09 Sep 10, 2016 by @ezra.
#Programming# 这里是一些 Swift 3 的基本语法示例,Swift 前几个版本变化较大,所以做一个总结。
虽然目前来说选择 Swift 做为商业应用的开发语言的维护成本还是很大,但始终是一个前进的方向。
控制台输...
![](/media/posts/categories/covers/programming.jpg)
Sep
09
Swift 3.0 怎么玩
Published 12:09 Sep 09, 2016 by @ezra.
#Programming# Swift 已经发展到 3.0,早在几个月前苹果就已经表明 Swift 3.0 还将会有不少崩坏性的改动,这篇博客就来介绍一下新版本 Swift 的主要改动。
编译器与语法
参数标签
在 Swift ...
![](/media/posts/categories/covers/programming.jpg)
Aug
16
OS X: Simulating mouse input programmatically
Published 12:08 Aug 16, 2016 by @ezra.
#Programming# 玩过远程辅助工具小伙伴应该都对模拟鼠标事件不陌生, 要做到这件事, 可以使用 Quartz Event Services。
先来一个 Demo, 首先要引入 ApplicationServices:
...
![](/media/posts/categories/covers/programming.jpg)
Aug
10
Sierra: 找回消失的允许“任何来源”的应用
Published 12:08 Aug 10, 2016 by @ezra.
#Programming# 自从 Sierra 之后, 系统偏好设置 -> 通用 -> 允许以下位置下载的应用 中的 任何来源 便消失了。
为了找回它,我们打开 终端, 输入:
sudo spctl --master...
![](/media/posts/categories/covers/programming.jpg)
Jul
26
Xcode 8: 注释快捷键失效的问题
Published 12:07 Jul 26, 2016 by @ezra.
#Programming# Xcode 8 发布以来,Beta 版有一个可能不是很普遍的问题: 注释快捷键 ⌘ + / 失效。
在 Twitter 上找到一个解决办法,很简单,在终端执行下面的指令,然后重启系统即可。
sudo ...
![](/media/posts/categories/covers/programming.jpg)
Jul
20
User-Agents
Published 12:07 Jul 20, 2016 by @ezra.
#Programming# 一些常见的 User-Agents 示例:
桌面
IE
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)
Mozilla/4.0 (compatib...
![](/media/posts/categories/covers/programming.jpg)
Jul
16
CocoaPods: Swift Version
Published 12:07 Jul 16, 2016 by @ezra.
#Programming# 最近使用 CocoaPods 又出了点问题,在执行 pod trunk push 的时候,出现了 Xcode Build 错误,提示了一些关于 Swift 版本的错误。
起初尝试了配置 Xcode 项...
![](/media/posts/categories/covers/programming.jpg)
Jul
12
iOS: Easy cast with _ObjectiveCBridgeable
Published 12:07 Jul 12, 2016 by @ezra.
#Programming# Swift is out there for about a year and it’s a great programming language. I think that almost every...
![](/media/posts/categories/covers/programming.jpg)
Jul
10
iOS: UIAlertController text alignment
Published 12:07 Jul 10, 2016 by @ezra.
#Programming# Custom text alignment of UIAlertController:
let controller = UIAlertController(title: t, message: in...