1

AppleScript を使用してプロジェクトのアクティブ ターゲット、実行可能ファイル、およびビルド構成を設定できましたが、アクティブ SDK を設定する方法がわかりません。何か案は?

4

1 に答える 1

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
于 2009-08-14T14:45:16.093 に答える