如何使用AppleScript在xcode中设置Active SDK?

时间:2009-08-14 12:53:01

标签: applescript

我已设法使用AppleScript设置项目的活动目标,可执行文件和构建配置,但我无法确定如何设置Active SDK。 有什么想法吗?

1 个答案:

答案 0 :(得分:2)

我找到了答案。我需要将构建设置SDKROOT设置为指向模拟器SDK的路径。

  set SDK to "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/"
  open file templateProj
  set tabReaderProj to project "MyProj"
  tell tabReaderProj
      set the active target to the target named "MyTarget"
      set value of build setting "SDKROOT" of every build configuration of the active target to SDK
  end tell
相关问题