iOS Xcode修改项目名称
2018-08-29 本文已影响70人
天顾有情人_strive
现在来看看如何修改项目名称,这是在我一个实际的项目修改名称时做的记录:
1、把 ZZCMShadow 改为 ZZCMPhoneLoan(新的名称)

2、双击这个名字改成新的名字,回车会弹出一下窗口

3、1>修改文件夹和显示包的内容,找到这个项目,把所有的能看到的原来名称的地方都改为新的名字,如果你打开了这个项目请关闭它

2>这是修改后的:

4、1>选中ZZCMPhoneLoan.xcodeproj右键打开 --> 显示包内容 --> 双击打开project.pbxproj

4、 2>打开后command+f,输入原来的名称,替换成新的名称

5、此时打开项目文件夹,我用的终端找到项目并找到Podfile文件,vim 修改target后的项目名为最新的项目名 ZZCMPhoneLoan。保存退出后pod install 更新pod 安装的库
6、重新双击.xcworkspace的文件打开项目并且选择manager schemes替换项目名称

到这一般就成功了,编译有错的话可能是配置里面的路径的名称还是以前的没修改过来,你在build Setting里面把路劲里面文字改好就可以了!
以上原文链接:https://www.cnblogs.com/ljmaque/p/rename.html
如有侵权,联系删除!