更改 XCode 项目名称会导致致命错误 [英] Changing XCode project name causes fatal error

查看:27
本文介绍了更改 XCode 项目名称会导致致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试重命名我的 XCode 4 项目.我尝试了几种不同的方法,但没有任何效果.我总是收到以下错误:

I am trying to rename my XCode 4 project. I have tried several different ways, but nothing works. I always get the following error:

fatal: source directory is empty,
source=Desktop/Folder/OLD PROJECT NAME.xcodeproj,
destination=Desktop/Folder/NEW PROJECT NAME.xcodeproj

导致此错误的原因是什么,我该如何解决?

What's causing this error, and how can I resolve it?

推荐答案

我在第二次尝试重命名项目时遇到了类似的问题.错误是致命的:错误的来源......".最初的项目被称为 AppTemplate.新项目被称为Project1"(比如说).Project1 是通过执行项目重命名(从右侧栏)和后续步骤(移动主目录、更改 plist 引用、重命名方案)创建的.当我尝试重命名新项目时,它抱怨 AppTemplate.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/AppTemplate.xcscheme 不可用.这很奇怪,因为我认为我删除了对原始项目的所有引用.显然不是.我的 [hack] 解决方案是将原始 AppTemplate.xcscheme 文件从原始项目复制到所需位置的 Project1 (Project1.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/).然后项目重命名正常进行.我知道这不是您的确切问题,但这是在 xcode 上对项目重命名的致命错误的少数参考之一.

I had a similar issue when I was trying to rename a project for the second time. The error was "fatal: bad source ...". The original project was called AppTemplate. The new project was called "Project1" (say). Project1 was created by doing a project rename (from the right bar) and subsequent steps (move main directory, change plist refs, rename scheme). When i tried to rename the new project, it complained that AppTemplate.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/AppTemplate.xcscheme wasn't available. This is odd since i thought i eradicated all reference to the original project. Apparently not. My [hack] solution was to copy the original AppTemplate.xcscheme file from the original project into Project1 at the required location (Project1.xcodeproj/xcuserdata/.xcuserdatad/xcschemes/). The project rename then proceeded as normal. I know this was not your exact issue, but this is one of the few references to fatal errors on project rename on xcode.

这篇关于更改 XCode 项目名称会导致致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆