I want to duplicate target of Xcode project with command line, I have searched a lot but not found any solution. I don't have any idea how to write script to duplicate target.
Can anyone help me?
Thanks in advance
I want to duplicate target of Xcode project with command line, I have searched a lot but not found any solution. I don't have any idea how to write script to duplicate target.
Can anyone help me?
Thanks in advance
Please see the code, it worked for me:
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