Xcode - renaming project causes problem

2019-03-15 14:12发布

I'm currently working on an iphone application. I started working on this from a project template that I found on the internet. Now I want to rename this project. I've successfully renamed the actual project file, folder and the executables and some other stuff, but there is one weird problem. If I try running the application on my iphone device, Xcode refuses to run the executable with the new name - it's trying to run the old one with the old name instead, and thus it happens that it says: "No launchable executable present at path." Which is true, since the path is wrong (wrong name). The weird thing is that it works on the iphone simulator - it's using the correct executable path.

Any help would be appreciated.

14条回答
趁早两清
2楼-- · 2019-03-15 14:54

Renaming Xcode projects can be an absolute nightmare. I personally feel that the best way to "Rename" a project is to create a new Xcode project and copy in the necessary files. I know this seems inconvenient, but it's the most straight-forward approach that I know of.

Currently, renaming a project involves doing a couple of find/replaces on the project, and changing things in the project settings.

I would love if Xcode automated this for you. This is one thing where Eclipse really shines as an IDE.

Good luck!

查看更多
Emotional °昔
3楼-- · 2019-03-15 14:55

This tutorial from phonegap on renaming projects seems pretty good. It seems to point out all the areas that need a change. I don't think it matters whether or not you're renaming a phonegap project or a normal project.

phonegap tutorial

查看更多
登录 后发表回答