开发者

Terminal Command or Apple Script to run XCode?

开发者 https://www.devze.com 2023-01-18 03:12 出处:网络
Is is possible to make XCode run by executing an AppleScript or some sort of terminal command开发者_StackOverflow?

Is is possible to make XCode run by executing an AppleScript or some sort of terminal command开发者_StackOverflow?

Can you pass XCode startup arguments, like a project to open, or to build a project on startup?

Edit:

Please excuse my laziness, but Apple Script samples are appreciated.


It's fairly simple to run Xcode from the Terminal: open -a Xcode to simply open it, or open yourproject.xcodeproj to open your project in Xcode. As for getting it to build on startup, you'd probably have to turn to AppleScript for that:

tell application "Xcode"
    build
    launch
end tell
0

精彩评论

暂无评论...
验证码 换一张
取 消