2011-12-28 116 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

相关问题