2009-08-14 12 views

Antwort

2

Ich fand die Antwort. Ich musste die Erstellungseinstellung SDKROOT auf den Pfad setzen, der auf das Simulator SDK zeigt.

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 
+0

Wie haben Sie das über applescript gemacht? – probablyCorey

+0

Ich habe weitere Informationen in meine Antwort eingefügt – Ian1971

+0

Danke! Ich habe überall nach der Verwendung von AppleScript gesucht, um das aktive Ziel in Xcode festzulegen. Freut mich, die Antwort hier zu finden. –

Verwandte Themen