从TextMate构建到iPhone模拟器

时间:2009-09-23 13:07:07

标签: iphone ios-simulator textmate

我有TextMate的Xcode包,并且使用XCode构建和运行工作正常,但有没有办法将Active Target,Active SDK或配置传递到构建中以启动模拟器?

我已尝试在prefs窗格中设置shell vars,但没有运气。

感谢。

1 个答案:

答案 0 :(得分:2)

找到http://hexperimental.com/content/coding-iphone-apps-textmate

我自己没有测试过,但是这个人建议将TextMate设置为xcode中的首选编辑器,然后更改运行快捷方式以使用applescript发送键盘快捷键

打开Bundle编辑器(Bundles> Bundle Editor> Show Bundle编辑器),xcode包完全关闭,选择Run命令并将Command更改为:

osascript -e 'tell application "Xcode"
activate
end tell

tell application "System Events"
key code 15 using {command down, shift down}
key code 15 using {command down}
end tell'

#I'm leaving the old command commented below just in case. 
#PROJECT=$(ruby -- "${TM_BUNDLE_SUPPORT}/bin/find_xcode_project.rb")
#if [[ -f "${PROJECT}/project.pbxproj" ]]; then
#   "${TM_BUNDLE_SUPPORT}/bin/run_xcode_target.rb" -project_dir="$PROJECT"
#else
#   echo "Didn't find an Xcode project file."
#   echo "You may want to set TM_XCODE_PROJECT."
#fi