命令行下使用xcode编译工程

http://www.kunli.info/2010/09/19/xcode-vim-integration/ vim中实现xcode,用cocoa.vim

http://www.hudo.it/index.php?topic=390.0 :列举2套方案

vim的cocoa插件:cocoa.vim

自动补 [] 的插件:

xcode的vim插件:XVim: https://github.com/JugglerShu/XVim 很好很强大

https://github.com/WarWithinMe/xVim 另一个插件,未安装成功

虽说Xcode使用起来很方便,但有时候为了快捷也希望能够在终端输入一条命令执行编译,幸好Xcode提供了相关的命令,可以通过它来编译xcode工程。

  1. 查看环境
$ xcodebuild -showsdks
Mac OS X SDKs:
Mac OS X 10.6 -sdk macosx10.6
Mac OS X 10.7 -sdk macosx10.7

iOS SDKs:
iOS 5.0 -sdk iphoneos5.0

iOS Simulator SDKs:
Simulator - iOS 4.3 -sdk iphonesimulator4.3
Simulator - iOS 5.0 -sdk iphonesimulator5.0
  1. 编译
$ xcodebuild -sdk iphoneos5.0

还不知道如何通过命令来运行程序,探索中。。。

自动配置

$ gem install choctop
% install_choctop .
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /Users/amoblin/.rvm/gems/ruby-1.9.3-p125/gems/rubigen-1.5.8/lib/rubigen/lookup.rb:284.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /Users/amoblin/.rvm/gems/ruby-1.9.3-p125/gems/rubigen-1.5.8/lib/rubigen/lookup.rb:284.
create appcast/build
create Rakefile
create release_notes.txt
create release_notes_template.html.erb
readme README.normal
You use choctop with the following rake tasks:
rake appcast # Create dmg, update appcast file, and upload to host
rake build # Create/update the appcast file
rake dmg # Create the dmg file for appcasting
rake upload # Upload the dmg and appcast files to the host
tagged by
comments powered by Disqus