iOS - 修改Xcode工程名称
首先,先把原有的项目复制一下,这是重点
这里以我修改的为例:
一、我需要把MHHome改为TTManHua

1
修改名称后点击回车,回弹出来选项窗口

rename
点击rename;
二、关闭项目,在Finder中找到项目,把里边所有旧名称改为新名称

修改前

修改后
三、选中TTManhua.xcodeproj 右键打开 --> 显示包内容 --> 双击打开 project.pbxproj
打开后command+f,输入原来的名称,替换成新的名称

替换bpxproj文件内容
四、更新cocopod,打开Profile,修改target名称为新的名称

profile
执行pod install命令
五、打开工程,点击manager schemes

schemes
弹出新的窗口,修改新的工程名

修改名称
command+b编译一下,完成
作者:偏偏注定小人物
链接:https://www.jianshu.com/p/f61cfd5d10c0
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
网友评论