Renaming projects in Xcode 4

前端 未结 11 1964
猫巷女王i
猫巷女王i 2020-11-27 09:22

I must be missing something obvious, but I can\'t figure out how to rename my project in Xcode 4.

If I remember correctly Xcode 3 had a dedicated menu item for this

11条回答
  •  臣服心动
    2020-11-27 10:15

    In addtion to the other answers provided if you would also like to rename the folder in which your files are placed by default (that exists at the same level as your *.xcodeproj file) then perform the below steps:

    - In Finder copy and paste the '/' folder 
          (in the same location) and 
          rename the copied folder to '/'
    
    - In XCode in the 'Project Navigator' (first tab in the pane on the left) 
    
    foreach ('Group' you have in your project)
    {
       Select the 'Group' and observe the details in the 'File Inspector' 
              (first tab in the pane on the right)
    
       if ('Path' == 'Relative to Group' 
              AND 'Full Path' ==  '/')
       {
               Click the icon to change the path of the 'Group' 
               Choose the '/ folder
       }
    }
    
    - Delete the '/' folder
    
    - Open the Project Settings, choose the Project target and under 'Build Settings' 
    
      - find change the path appropriately for the following values:
    
            'Prefix Header' and 'Info.plist file' 
    

    And you're done.

    If you also have a Tests folder then you will want to repeat the same.

提交回复
热议问题