Michael's Blog

Software Engineer

iOS

Watch​Kit Learning Resources

WatchKit是Apple发布的用来开发Apple Watch应用的框架,本文主要列出一些关于WatchKit的学习资源。 * Apple官方推出的Apple Watch Programming Guide [https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html] * WatchKit Development Tips [https://developer.apple.com/watchkit/tips/] * Apple Watch Human Interface Guidelines [https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/WatchHumanInterfaceGuidelines/index.html] * Raywenderl

How to get cocoapods work on Yosemite

今天升级了Mac OS X 10.10-Yosemite以后运行pod install遇到下面的错误: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:245:in 'mkdir': Permission denied - /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14 (Errno::EACCES) 一番折腾后找到解决方案如下: 1. 分别执行下面命令卸载cocoapods和xcodeproj,如果你的机器上面有多个版本,选择All versions卸载 $ sudo gem uninstall cocoapods $ sudo gem
1 min read
Xcode

Xcode 6 Simulator Folder

本文主要介绍一下Xcode 6的iOS模拟器的应用目录的变化。 Xcode 5的iOS模拟器的应用的目录是在~/Library/Application Support/iPhone Simulator//Applications/{Application_ID} Xcode 6的目录改为 ~/Library/Developer/CoreSimulator/Devices/{Device_ID}/data/Containers/Bundle/Application/{Application_ID}/ 这里的Device_ID和Application_ID都是一串UUID,如果想查找不同的模拟器对应的Device_ID,可以通过在Terminal执行命令 xcrun simctl list,如下图所示 iOS模拟器的管理工具SimPholders2 [http://simpholders.com/]也针对此变动进行了更新。 Hope this helps, Michael
1 min read
iOS

Swift Learning Resources

Swift是Apple在今年的WWDC推出的一门新的编程语言,它的1.0版本跟着Xcode 6正式发布了。本文主要列出一些关于Swift的学习资源。 * Apple官方推出的iBook The Swift Programming Language [https://itunes.apple.com/us/book/the-swift-programming-language/id881256329?mt=11&ls=1] web版 The Swift Programming Language [https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/] * Using Swift with Cocoa and Objective-C [https://developer.apple.com/library/
1 min read
Ghost

如何在DigitalOcean安装Ghost

这篇文章主要讲一下如何在DigitalOcean [https://www.digitalocean.com/?refcode=f80bd2df8978] VPS上面安装Ghost。 Ghost [http://ghost.org]是一个基于Node.js的开源的博客发布系统,本站就是用的Ghost并部署在DigitalOcean [https://www.digitalocean.com/?refcode=f80bd2df8978] VPS上。 1. 首先去DigitalOcean [https://www.digitalocean.com/?refcode=f80bd2df8978] 注册一个帐号,目前用前面的链接注册会赠送$10。 2. 注册完帐号就可以创建一个VPS了。点击"Create Droplet"创建一个Droplet,输入Droplet名称,根据您的需要选择配置,目前最低配置(512MB内存/20GB SSD/1000 GB流量)对于个人站点足够用了而且一个月只要$5,相当便宜。
2 min read
DigitalOcean Referral Badge