<i id='9WkMt'><tr id='9WkMt'><dt id='9WkMt'><q id='9WkMt'><span id='9WkMt'><b id='9WkMt'><form id='9WkMt'><ins id='9WkMt'></ins><ul id='9WkMt'></ul><sub id='9WkMt'></sub></form><legend id='9WkMt'></legend><bdo id='9WkMt'><pre id='9WkMt'><center id='9WkMt'></center></pre></bdo></b><th id='9WkMt'></th></span></q></dt></tr></i><div id='9WkMt'><tfoot id='9WkMt'></tfoot><dl id='9WkMt'><fieldset id='9WkMt'></fieldset></dl></div>

<small id='9WkMt'></small><noframes id='9WkMt'>

      <bdo id='9WkMt'></bdo><ul id='9WkMt'></ul>
    <legend id='9WkMt'><style id='9WkMt'><dir id='9WkMt'><q id='9WkMt'></q></dir></style></legend>

      1. <tfoot id='9WkMt'></tfoot>
      2. 如何在不损坏文件的情况下重命名 xcode 项目中的文件夹名称

        How to rename the folder name in xcode project with out corrupting the files(如何在不损坏文件的情况下重命名 xcode 项目中的文件夹名称)
      3. <tfoot id='6E9k0'></tfoot>
        • <bdo id='6E9k0'></bdo><ul id='6E9k0'></ul>
          <i id='6E9k0'><tr id='6E9k0'><dt id='6E9k0'><q id='6E9k0'><span id='6E9k0'><b id='6E9k0'><form id='6E9k0'><ins id='6E9k0'></ins><ul id='6E9k0'></ul><sub id='6E9k0'></sub></form><legend id='6E9k0'></legend><bdo id='6E9k0'><pre id='6E9k0'><center id='6E9k0'></center></pre></bdo></b><th id='6E9k0'></th></span></q></dt></tr></i><div id='6E9k0'><tfoot id='6E9k0'></tfoot><dl id='6E9k0'><fieldset id='6E9k0'></fieldset></dl></div>

          <small id='6E9k0'></small><noframes id='6E9k0'>

                <tbody id='6E9k0'></tbody>
              <legend id='6E9k0'><style id='6E9k0'><dir id='6E9k0'><q id='6E9k0'></q></dir></style></legend>

                  本文介绍了如何在不损坏文件的情况下重命名 xcode 项目中的文件夹名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在我的 xcode 项目中,我手动创建了一个名为 "MyClasses" 的文件夹,以将新添加的文件/类放置到此文件夹中.

                  In my xcode project i have created a folder manually named "MyClasses" to place the newly added files/classes to this folder.

                  现在我在这个文件夹中有近 30 个类.

                  Now i have nearly 30 classes in this folder.

                  当我重命名这个文件夹时,这个文件夹中的所有文件都被删除了.

                  when i renamed this folder , all the files in this folder are gets Erased.

                  现在我需要将文件夹重命名为ViewControllerClasses".

                  Now i need to rename the folder to "ViewControllerClasses".

                  但我丢失了 30 个 .h、.m、xib 文件.[幸运的是我有一份副本&和压缩文件]

                  But i lost 30 .h, .m, xib files. [lucky i have a copy & and zip file]

                  如何在不损坏文件的情况下重命名文件夹.

                  将其重命名为 myviewcontrollerclasswes

                  Renamed it to myviewcontrollerclasswes

                  当我改名时

                  推荐答案

                  注意 截至 2017 年:现在 Xcode 9 会自动同步文件夹和项目层次结构.

                  NOTE as of 2017: Now Xcode 9 synchronises the folder and the project hierarchy automatically.

                  注意截至 2013 年:复制和重命名 Xcode 项目 &相关文件夹

                  您在项目文件下的 XCode 中看到的文件夹"不是文件系统中的真实文件夹,只是 .xcodeproj 文件中管理的虚拟文件夹.您可以独立于文件系统中的位置来组织项目文件夹中的文件.有些人喜欢将文件系统文件夹结构映射到项目文件夹结构中,有些人喜欢将所有源文件存储在文件系统的一个大文件夹中,并仅在项目文件夹中组织它们:这是一个偏好问题.

                  The "folders" what you see in XCode under your project file are not real folders in the file system, only virtual folders administered in the .xcodeproj file. You can organize your files in the project folder independently from their location in the file system. Some prefers to map the file system folder structure inside the project folder structure, some others store all source files in one big folder in the file system and organize them only in the project folders: it's rather a question of preference.

                  但是,如果您物理地重命名/移动文件系统中的文件,您将不得不删除它们并将它们重新添加到您的项目中,因为 XCode 不知道在哪里可以找到它们.注意不要在物理上删除它们只从 XCode 项目中删除它们,然后重新添加它们并根据需要重新组织.

                  However if you rename/move physically the files in the file system, you will have to delete and re-add them to your project since XCode will not know where to find them. Pay attention not to delete them physically only remove them from XCode project, then re-add them and reorganize as you want.

                  还有一点需要注意:如果您使用的是版本控制系统,您还必须通知其客户端(最有可能是 svn 或 git)您已重命名/移动了文件.如果您想保留文件修订历史记录,最好向版本控制明确发出复制/移动命令,否则它会将您的文件视为从旧位置删除并在新位置添加为新文件.

                  One more thing to note: if you are using version control system you will have to inform also its client (svn or git most likely) that you have renamed/moved your files. If you want to keep file revision history it will be a good idea to issue the copy/move command explicitly to the version control otherwise it will treat your files as deleted from the old location and added as new in the new location.

                  这篇关于如何在不损坏文件的情况下重命名 xcode 项目中的文件夹名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  How to get indexPath.row of tableView which is currently being displayed?(如何获取当前正在显示的 tableView 的 indexPath.row?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                      <bdo id='IvWbd'></bdo><ul id='IvWbd'></ul>

                          <i id='IvWbd'><tr id='IvWbd'><dt id='IvWbd'><q id='IvWbd'><span id='IvWbd'><b id='IvWbd'><form id='IvWbd'><ins id='IvWbd'></ins><ul id='IvWbd'></ul><sub id='IvWbd'></sub></form><legend id='IvWbd'></legend><bdo id='IvWbd'><pre id='IvWbd'><center id='IvWbd'></center></pre></bdo></b><th id='IvWbd'></th></span></q></dt></tr></i><div id='IvWbd'><tfoot id='IvWbd'></tfoot><dl id='IvWbd'><fieldset id='IvWbd'></fieldset></dl></div>
                        1. <tfoot id='IvWbd'></tfoot>
                          • <small id='IvWbd'></small><noframes id='IvWbd'>

                              <tbody id='IvWbd'></tbody>
                            <legend id='IvWbd'><style id='IvWbd'><dir id='IvWbd'><q id='IvWbd'></q></dir></style></legend>