我已经设法使用 AppleScript 设置了我的项目的活动目标、可执行文件和构建配置,但我不知道如何设置 Active SDK。有任何想法吗?
问问题
1157 次
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 回答