作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试让 Xcode 使用 Applescript 构建和运行我的项目。这是与 How to build & run Xcode with Applescript? 相同的问题,但我认为该答案可能已过时,因为它在我的机器上不起作用。我明白了:
execution error: Xcode got an error: The specified object is a property, not an element. (-10008)
tell application "Xcode"
build project "MyProject"
end tell
最佳答案
我冒昧地猜测,这对 Apple 来说是一个不完整的实现。字典指出 build
应该返回一个值,但没有返回任何内容,Xcode 什么也不做。下面的代码完全符合字典,但它也不起作用。
tell application "Xcode"
set theProject to project 1
set theBuildConfigType to build configuration type 2 of theProject -- "Debug"
set projectBuilt to build theProject using theBuildConfigType without static analysis and transcript
end tell
set theResult to build reference ¬
static analysis boolean ¬
transcript boolean ¬
using build configuration type
关于xcode - 如何让 Xcode 使用 Applescript 构建和运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6686802/
我是一名优秀的程序员,十分优秀!