I've managed to set the active target, executable and the build configuration of my project using AppleScript but I can't work out how to set the Active SDK. Any ideas?
+1
A:
I found the answer. I needed to set the build setting SDKROOT to the path that points to the simulator 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
Ian1971
2009-08-14 14:45:16
How did you do this via applescript?
probablyCorey
2009-10-04 18:16:42
I've added more info into my answer
Ian1971
2009-10-06 15:55:15
Thanks! I searched all over for how to use AppleScript to set the active target in Xcode. Happy to find the answer here.
Noah Sussman
2010-03-14 21:59:52