Reputation: 929
I want to run an iPhone project in the iOS Simulator using AppleScript, so I wrote this code:
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
But it is giving me this error:
Xcode got an error: Can’t get project "EightQueens.xcodeproj".
What am I doing wrong?
Upvotes: 0
Views: 360
Reputation: 21736
It is because your project isn't named "EightQueens.xcodeproj".
Instead of
tell project "EightQueens.xcodeproj"
do:
tell project "EightQueens"
Upvotes: 2