从 TextMate 构建 iPhone 模拟器

发布于 2024-08-06 09:27:37 字数 151 浏览 5 评论 0原文

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

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

谢谢。

I have the Xcode bundle for TextMate and the Build and Run with XCode work fine but is there a way to pass Active Target, Active SDK or configuration into the build in order to launch the simulator?

I have tried setting shell vars in the prefs pane but no luck.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

意中人 2024-08-13 09:27:37

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

我自己还没有测试过这个,但是这个人建议在 xcode 中将 TextMate 设置为您选择的编辑器,然后更改运行快捷方式以使用 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

Found at http://hexperimental.com/content/coding-iphone-apps-textmate

I haven't tested this myself, but this guy suggests setting TextMate as your editor of choice in xcode and then changing the run shortcut to use applescript to send keyboard shortcuts

Open the Bundle editor ( Bundles > Bundle Editor > Show Bundle editor ), the xcode bundle is all the way down, select the Run command and change the Command to this:

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文