2011-12-28 111 views
0

我想運行使用AppleScript在iPhone模擬器iPhone的項目,所以我寫了這個代碼:爲什麼我的AppleScript無法使用我的Xcode項目?

tell application "Xcode" 
    open "IAPPS:Xcode 4:EightQueens:EightQueens.xcodeproj" 
    tell project "EightQueens.xcodeproj" 
     clean 
     build 
     try 
      debug 
     end try 
    end tell 
    quit 
end tell 

但它給我這個錯誤:

Xcode got an error: Can’t get project "EightQueens.xcodeproj". 

我在做什麼錯?

回答

2

這是因爲你的項目沒有命名爲「EightQueens。xcodeproj

而不是
tell project "EightQueens.xcodeproj"
做:
tell project "EightQueens"

+0

我嘗試BT NT工作.... – 2012-01-05 12:25:09

+0

有什麼錯誤...? – Guillaume 2012-01-05 15:01:44

+0

它又一次錯誤Xcode出現錯誤:無法獲得項目「EightQueens.xcodeproj」。 – 2012-01-06 05:55:11

相關問題