Ho difficoltà a copiare le cartelle nei progetti XCode con AppleScript. Senza Applescript, trascino la cartella in Xcode.applecript per copiare le cartelle in Xcode?
Ho usato un gestore Applescript simile, come quello mostrato di seguito, per copiare le librerie in XCode utilizzando "wrapper.library" per il tipo di file. Di seguito sto usando "wrapper.folder" per provare a copiare una cartella in XCode e non funziona.
on addFolder(fname, fpath)
tell application "Xcode"
tell project "Unity-iPhone"
set my_targets to targets
set s_target to item 1 of my_targets
set compile_phase to compile sources phase of s_target
set link_phase to get link binary with libraries phase of s_target
tell root group
set a to make new file reference with properties {full path:fpath & fname, name:fname, file type:"wrapper.folder"}
add a to link_phase
end tell
end tell
end tell
end addFolder
Qualcuno ha qualche idea su che cosa manco o come scrivere un AppleScript per copiare una cartella in XCode?
Sono curioso di sapere come hai risolto questo problema ... –
Questo plugin Xcode potrebbe aiutare: https://github.com/larsxschneider/Xcode-Scripting-Interface –
Non ho mai trovato una soluzione tranne che per spostare le cartelle manualmente. So che può essere fatto, perché ho usato Applescripts compilati che possono spostare le cartelle. –