2009-09-23 36 views
3

我有用於TextMate的Xcode包和用XCode生成並運行的工作正常,但是有沒有辦法將Active Target,Active SDK或配置傳遞到構建中以啓動模擬器?從TextMate構建到iPhone模擬器

我曾嘗試在首選項窗格中設置外殼變量,但沒有運氣。

謝謝。

回答

2

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

我沒有這個測試自己,但這個傢伙建議設置的TextMate作爲您在Xcode中選擇的編輯器,然後改變運行快捷使用AppleScript的送鍵盤快捷鍵

開放Bundle編輯器(Bundles> Bundle Editor> Show Bundle編輯器)中,xcode包全部關閉,選擇Run命令並將命令更改爲:

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