六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 38|回复: 0

修改XCODE 3.X 項目名

[复制链接]

升级  0.33%

59

主题

59

主题

59

主题

举人

Rank: 3Rank: 3

积分
201
 楼主| 发表于 2013-1-15 02:54:24 | 显示全部楼层 |阅读模式
<div class="post single">How to rename project in Xcode 3.x

I thought this would be a simple thing to do, but apparently not.There’s no option to copy the state of the project as it is andcontinue working on it under the new name. The reason I need this isthat I’m going through AAron Hillegass’s Cocoa Programming for Mac OS X, 3rd ed.and some of the projects span several chapters, each introducing newconcepts. Thus I wanted to have each in the state it was at the end ofthe chapter, than compare and analyze the differences, to betterunderstand what’s new and improved.
Since no option, we go with manual work.

  • Copy/rename the folder into new name
  • Get inside the new folder and rename the .pch and .xcodeproj files
  • Delete the build folder
  • Open .xcodeproj file in text editor, like TextMate orTextWrangler. That’s actually a folder, which contains 4 files (you canalso right-click and do Show package contents, which will reveal the files)
  • Open project.pbxproj in text editor and replace all instances of the old name with the new name
  • Load the project file in XCode, do Build/Clean all targets
Now it should be ready for new build, under new name.
 
 
VIA http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表