修改XCODE 3.X 項目名

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 and continue working on it under the new name. The reason I need this is that 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 new concepts. Thus I wanted to have each in the state it was at the end of the chapter, than compare and analyze the differences, to better understand what’s new and improved.

Since no option, we go with manual work.

  1. Copy/rename the folder into new name
  2. Get inside the new folder and rename the .pch and .xcodeproj  files
  3. Delete the build folder
  4. Open .xcodeproj file in text editor, like TextMate or TextWrangler. That’s actually a folder, which contains 4 files (you can also right-click and do Show package contents , which will reveal the files)
  5. Open project.pbxproj in text editor and replace all instances of the old name with the new name
  6. 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/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值