<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Doug Diego &#187; xcode</title>
	<atom:link href="http://dougdiego.com/tag/xcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougdiego.com</link>
	<description></description>
	<lastBuildDate>Tue, 17 Jan 2012 21:57:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To Rename an iPhone XCode Project</title>
		<link>http://dougdiego.com/2008/10/09/how-to-rename-an-iphone-xcode-project/</link>
		<comments>http://dougdiego.com/2008/10/09/how-to-rename-an-iphone-xcode-project/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 04:18:35 +0000</pubDate>
		<dc:creator>doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://dougdiego.com/?p=52</guid>
		<description><![CDATA[I recent created a new iPhone XCode project based off of one of the samples provided by Apple. Beause of this the XCode project was called AppleSample.xcodeproj and it built an app called AppleSample.app. I wanted to rename the project and give it my own name. It&#8217;s not as easy as it sounds. Here are [...]]]></description>
			<content:encoded><![CDATA[<p>I recent created a new iPhone XCode project based off of one of the samples provided by Apple.  Beause of this the XCode project was called AppleSample.xcodeproj and it built an app called AppleSample.app.  I wanted to rename the project and give it my own name.  It&#8217;s not as easy as it sounds.  Here are some instructions which are based off some instructions I found here (<a href="http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/">http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/</a>)</p>
<ul>
<li>Copy/rename the folder into new name</li>
<li>Get inside the new folder and rename the .pch and .xcodeproj files.  Example rename AppleSample.xcodeproj to MyCoolApp.xcodeproj &#8212; and &#8212; rename AppleSamplePrefix.pch to MyCoolApp_Prefix.pch</li>
<li>Delete the build folder. (Using the finder)</li>
<li>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)</li>
<li>Open project.pbxproj in text editor and replace all instances of the old name with the new name.  Be careful not to do a find an replace.  Since the default name was AppleSample, there were several references to: AppleSampleAppDelegate.h and AppleSampleAppDelegate.m.  You do not want to replace these unless you also rename that file.</li>
<li>Open .pbxuser  where  is your user name.  Then repeat the previous step by renaming.  I&#8217;m not sure if this is necessary.  You may even be able to delete this file?  But changing this file worked for me.</li>
<li>Load the project file in XCode, do Build/Clean all targets</li>
</ul>
<p>After following these steps, I was able to open the project and build it to the simulator and the device.</p>
<p>I had one additional problem that I came across later that required a fix.  When I finially built the application for &#8220;deployment&#8221; to the App Store, I had problems signing the code.  I complained that it couldn&#8217;t find the Certificate for &#8220;Scott Anguish&#8221;.  I looked in the build settings and couldn&#8217;t find reference to this name.  So again I opened project.pbxproj inside of MyCoolApp.xcodeproj and found 2 instances of this line:</p>
<p>CODE_SIGN_IDENTITY = &#8220;Scott Anguish&#8221;;</p>
<p>I replaced both of them with the correct code signing identity and it worked!</p>
<p>UPDATE: Check out this bash script which does it for you automatically:<br />
<a href="http://mohrt.blogspot.com/2009/01/renaming-xcode-project-from-command.html">renameXcodeProject.sh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dougdiego.com/2008/10/09/how-to-rename-an-iphone-xcode-project/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

