2013年8月15日 星期四

Vim編輯工具

ctrl+C 進入編輯模式
按ESC進入命令模式+":wq"儲存並退出


連結:
http://blogs.longwin.com.tw/lifetype/vi-vim-cheat-sheet.png
http://blog.eddie.com.tw/2011/12/28/vim-tips/
http://ithelp.ithome.com.tw/question/10073146?tag=rt.rq

2013年8月4日 星期日

使用Terminal 編譯以及實機測試

一.building Project
  xcodebuild -project MySkyBox.xcodeproj -alltargets
  xcodebuild -project MySkyBox.xcodeproj
  xcodebuild -scheme MySkyBox -sdk iphoneos build

二.實機測試
fruitstrap <-d //--debug> -b [app位置] [Device ID]

QA:
1.輸入指令 xcodebuild 會出現以下錯誤
Error: No developer directory found at /Volumes/Xcode/Xcode.app/Contents/Developer. Run /usr/bin/xcode-select to update the developer directory path.

solution:
輸入sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

2.都是使用Release分支,所以會在build資料夾出現Release-iphoneos資料夾,如何改成Debug分支??

solution:
於project 的 info標籤將下方command-line build 改成debug