Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以通过执行 AppleScript 或某种终端命令来运行 XCode?
您可以传递 XCode 启动参数,例如要打开的项目,或在启动时构建项目吗?
编辑:
请原谅我的懒惰,但感谢 Apple Script 示例。
从终端运行 Xcode 相当简单:open -a Xcode只需打开它,或者open yourproject.xcodeproj在 Xcode 中打开您的项目。至于让它在启动时构建,你可能不得不求助于 AppleScript:
open -a Xcode
open yourproject.xcodeproj
tell application "Xcode" build launch end tell