2010-06-10 83 views
0

如何使用快捷方式在xcode中設置當前項目的活動構建配置?這個想法是有一個簡單的改變設備和iPhone模擬器之間的變化。我認爲這可以很容易地在AppleScript中完成,然後集成到用戶腳本中,但由於我對AppleScript沒有任何知識,所以我希望得到您的幫助。 謝謝。通過用戶腳本在Xcode中設置活動構建配置

回答

0
tell application "Xcode" 
    tell first project 
     set allTypes to its build configuration types 
     set its active build configuration type to item 1 of allTypes 
    end tell 
end tell 
相關問題