【问题标题】:Build to iPhone Simulator from TextMate从 TextMate 构建到 iPhone 模拟器
【发布时间】:2009-09-23 13:07:06
【问题描述】:

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

我尝试在首选项窗格中设置 shell 变量,但没有成功。

谢谢。

【问题讨论】:

    标签: iphone ios-simulator textmate


    【解决方案1】:

    发现于http://hexperimental.com/content/coding-iphone-apps-textmate

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

    打开Bundle编辑器(Bundles > Bundle Editor > Show Bundle editor),xcode bundle一路下来,选择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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-04-20
      • 2013-04-05
      • 2010-12-03
      • 2011-05-08
      • 2010-11-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多