macfidelity

|

rethinking the think-different thing

mac | Projekte umbenennen in XCode

March 13th, 2009 at 12:07

xcode_512

Jeder der sich wie ich XCode versucht selber beizubringen kommt igendwann an den Punkt dass er ein existierendes Projekt mal umbenennen will.

Als Mac-User sucht man anschließend verzweifelt nach einer einfachen Funktion a la:

Rename Project

….. aber nein so einfach macht es uns Apple nun wirklich nicht.

Das Übel beginnt mit den 3 Ebenen

  • product
  • target
  • project

Erstellt man in Xcode ein neues Projekt vergibt man einmalig einen Namen, dieser wird dann jedoch an diversen Stellen verwendet so etwa in:

  • It creates a directory with that name to put everything in.
  • It creates a project file wrapper with that name as the basename.
  • It creates a target in the project file with that name.
  • It creates source code files in the project with that basename.
  • It creates auxiliary files, like Info-plists and prefix headers, with that name.
  • It sets the appropriate build settings in the target to point to the auxiliary files.
  • It sets the product name of the target to that name, which propagates to the executable name, to Info.plist settings, etc.
  • In some cases it even creates strings in source files, Info.plist files, and .nib or .xib files with that name, so they appear in your application’s source code or user interface.

Eine hilfreiche Gedanken dazu finden sich im Beitrag On the Renaming of Xcode Projects bei Arustisha, von wo auch obige Liste stammt.

Leider zeigt dieser Beitrag sehr schön wie unsauber das ganze je nach Projekt ist und dass dies letzlich eine der Änderungen ist die Apple selber machen sollte um den Alltag diverser Entwickler einfacher zu gestalten.

Um ehrlich zu sein erwarte ich da keine Anpassungen, schön wäre es trotzdem.

Tags: , , ,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>