Xcode 4 Applescript 构建并运行当前目标应用程序
我正在寻找一些可以告诉 Xcode 运行当前目标的 applescript。
我想从 textmate 自动化 Xcode 以提供“在模拟器中运行”和“在设备上运行”。
据我所知,这是:
tell application "Xcode"
set myWorkspace to active workspace document
set myProject to the active project document of myWorkspace -- Can’t get active project document of workspace document "project.xcworkspace"
...
end tell
I'm looking for some applescript that would tell Xcode to run the current target.
I'd like to automate Xcode from textmate to provide "Run in simulator" and "Run on device".
This is as far as I got:
tell application "Xcode"
set myWorkspace to active workspace document
set myProject to the active project document of myWorkspace -- Can’t get active project document of workspace document "project.xcworkspace"
...
end tell
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创造性地使用 xcodebuild 命令行工具很可能会让您走得更远。
Creative use of the xcodebuild command line tool would very likely get you much further.