我想用命令行复制Xcode项目的目标,我搜索了很多但没找到任何解决方案。我不知道如何编写脚本来复制目标。
任何人都可以帮助我吗?
提前致谢
答案 0 :(得分:5)
请看代码,它对我有用:
tell active workspace document
set my_project to (get first project)
tell my_project
tell application "System Events"
keystroke "d" using {command down}
delay 0.5
tell application process "Xcode"
--delay 1.0E-3
click button "Duplicate Only" of window 1
end tell
end tell
end tell
end tell
end tell