0

AppleScript を使用して iOS シミュレーターで iPhone プロジェクトを実行したいので、次のコードを書きました。

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".

私は何を間違っていますか?

4

1 に答える 1

2

これは、プロジェクトの名前が"EightQueens. xcodeproj "ではないためです。

代わりに
tell project "EightQueens.xcodeproj"

tell project "EightQueens"

于 2011-12-28T14:17:41.730 に答える