我正在尝试构建一个xcode项目并通过iPhone模拟器通过AppleScript运行它.我知道xcodebuild,但它不允许你在模拟器中运行应用程序.我已经非常接近下面的脚本......
tell application "Xcode"
set targetProject to project of active project document
tell targetProject
set active build configuration type to build configuration type "Debug"
set active SDK to "iphonesimulator3.0"
end tell
if (build targetProject) is equal to "Build succeeded" then
launch targetProject
end if
end tell
Run Code Online (Sandbox Code Playgroud)
...但是build命令似乎没有服从活动的SDK属性,它总是默认为项目的基本SDK设置(例如iPhoneOS3.0而不是iPhonesimulator3.0)
有没有办法告诉build命令使用特定的SDK?我在雪豹上使用xcode 3.2.