<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>Comments on: Using Git Versioning inside your XCode Project</title>
	<atom:link href="/2011/03/23/using-git-versioning-inside-your-xcode-project/feed/" rel="self" type="application/rss+xml" />
	<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/</link>
	<description>iPhone Programming Tutorials</description>
	<lastBuildDate>Mon, 18 Aug 2014 06:06:00 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.2</generator>
	<item>
		<title>By: orthorim</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-9434</link>
		<dc:creator><![CDATA[orthorim]]></dc:creator>
		<pubDate>Wed, 23 May 2012 01:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-9434</guid>
		<description><![CDATA[It&#039;s unbelievable Xcode doesn&#039;t have any sort of auto versioning. Sigh.

I just don&#039;t bother anymore. I change it manually for versions that ship, which is fair enough. And for the zillions of test versions, TestFlightApp actually creates #NN versions for you so it&#039;s no issue.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s unbelievable Xcode doesn&#8217;t have any sort of auto versioning. Sigh.</p>
<p>I just don&#8217;t bother anymore. I change it manually for versions that ship, which is fair enough. And for the zillions of test versions, TestFlightApp actually creates #NN versions for you so it&#8217;s no issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-9309</link>
		<dc:creator><![CDATA[Kevin]]></dc:creator>
		<pubDate>Wed, 21 Mar 2012 23:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-9309</guid>
		<description><![CDATA[I used this script instead. It fetches the last tag you used:

git=git
touch ./WorldWithoutEnd/Resources/Info.plist
version=`$git describe --match &quot;*&quot; --dirty`
version=`echo $version &#124; sed &#039;s/[a-zA-Z]*//&#039;`
versionNum=`$git describe --match &quot;*&quot;`
versionNum=`echo $versionNum &#124; sed &#039;s/-[0-9]*-[a-zA-Z0-9]*//&#039;`
echo &quot;#define GIT_VERSION $version&quot; &gt; InfoPlist.h
echo &quot;#define APP_VERSION $versionNum&quot; &gt;&gt; InfoPlist.h]]></description>
		<content:encoded><![CDATA[<p>I used this script instead. It fetches the last tag you used:</p>
<p>git=git<br />
touch ./WorldWithoutEnd/Resources/Info.plist<br />
version=`$git describe &#8211;match &#8220;*&#8221; &#8211;dirty`<br />
version=`echo $version | sed &#8216;s/[a-zA-Z]*//&#8217;`<br />
versionNum=`$git describe &#8211;match &#8220;*&#8221;`<br />
versionNum=`echo $versionNum | sed &#8216;s/-[0-9]*-[a-zA-Z0-9]*//&#8217;`<br />
echo &#8220;#define GIT_VERSION $version&#8221; &gt; InfoPlist.h<br />
echo &#8220;#define APP_VERSION $versionNum&#8221; &gt;&gt; InfoPlist.h</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valerii Hiora</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-6391</link>
		<dc:creator><![CDATA[Valerii Hiora]]></dc:creator>
		<pubDate>Thu, 05 May 2011 09:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-6391</guid>
		<description><![CDATA[James, thanks for sharing.

There is one short note  regarding InfoPlist keys - CFBundleVersion should be GIT_VERSION and CFBundleShortVersionString should be APP_VERSION as the first is supposed to be used by developers and the second one will be shown to users everywhere and git revisions can be confusing :-)]]></description>
		<content:encoded><![CDATA[<p>James, thanks for sharing.</p>
<p>There is one short note  regarding InfoPlist keys &#8211; CFBundleVersion should be GIT_VERSION and CFBundleShortVersionString should be APP_VERSION as the first is supposed to be used by developers and the second one will be shown to users everywhere and git revisions can be confusing <img src="/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raunak Poddar</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-6293</link>
		<dc:creator><![CDATA[Raunak Poddar]]></dc:creator>
		<pubDate>Thu, 28 Apr 2011 06:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-6293</guid>
		<description><![CDATA[O... It&#039;s working now. The distribution configuration was created after the XCode setup for Git. I just deleted the previous GenGitVersion script and repeated the steps given under XCode setup in this page. Worked like a charm.
Thanks.]]></description>
		<content:encoded><![CDATA[<p>O&#8230; It&#8217;s working now. The distribution configuration was created after the XCode setup for Git. I just deleted the previous GenGitVersion script and repeated the steps given under XCode setup in this page. Worked like a charm.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raunak Poddar</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-6292</link>
		<dc:creator><![CDATA[Raunak Poddar]]></dc:creator>
		<pubDate>Thu, 28 Apr 2011 06:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-6292</guid>
		<description><![CDATA[Hi James, 

The feature doesn&#039;t work on the Distribution version of an iPhone app. When logging CFBundleVersion it prints GIT_VERSION instead of 0.0.5 (or whatever). Works good on the debug and release versions though.]]></description>
		<content:encoded><![CDATA[<p>Hi James, </p>
<p>The feature doesn&#8217;t work on the Distribution version of an iPhone app. When logging CFBundleVersion it prints GIT_VERSION instead of 0.0.5 (or whatever). Works good on the debug and release versions though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blind Genius</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-6094</link>
		<dc:creator><![CDATA[Blind Genius]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 13:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-6094</guid>
		<description><![CDATA[Add the script as a Pre-Action on the build phase of the scheme for your target, then it will be run before the compilation ]]></description>
		<content:encoded><![CDATA[<p>Add the script as a Pre-Action on the build phase of the scheme for your target, then it will be run before the compilation </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blind Genius</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-6093</link>
		<dc:creator><![CDATA[Blind Genius]]></dc:creator>
		<pubDate>Sun, 17 Apr 2011 12:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-6093</guid>
		<description><![CDATA[Thanks this helped me out a lot.

With regards to XCode 4 not having run scripts, it does but now they are located under  Schemes.

To get this script to run correctly you must add this script as a pre-build script and dont forget to add #!/bin/sh in  the shell text field as it is not added by default as it was in xcode 3.x.

Thanks again]]></description>
		<content:encoded><![CDATA[<p>Thanks this helped me out a lot.</p>
<p>With regards to XCode 4 not having run scripts, it does but now they are located under  Schemes.</p>
<p>To get this script to run correctly you must add this script as a pre-build script and dont forget to add #!/bin/sh in  the shell text field as it is not added by default as it was in xcode 3.x.</p>
<p>Thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raunak Poddar</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-6053</link>
		<dc:creator><![CDATA[Raunak Poddar]]></dc:creator>
		<pubDate>Thu, 14 Apr 2011 06:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-6053</guid>
		<description><![CDATA[Thanks a lot James. ]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot James. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Van Metre</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-5869</link>
		<dc:creator><![CDATA[James Van Metre]]></dc:creator>
		<pubDate>Wed, 30 Mar 2011 23:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-5869</guid>
		<description><![CDATA[This was written for Xcode 3, however after searching for shell script target, and Xcode 4, I was able to find out where it is located in Xcode 4.  You have to add an &quot;Aggregate Target&quot; first, and then you can click on that and Click on the tab &quot;Build Phases&quot;, and on the bottom right you can &quot;Add Build Phase&quot; , which will let you &quot;Add a Run Script&quot;.  Everything else is pretty much the same.]]></description>
		<content:encoded><![CDATA[<p>This was written for Xcode 3, however after searching for shell script target, and Xcode 4, I was able to find out where it is located in Xcode 4.  You have to add an &#8220;Aggregate Target&#8221; first, and then you can click on that and Click on the tab &#8220;Build Phases&#8221;, and on the bottom right you can &#8220;Add Build Phase&#8221; , which will let you &#8220;Add a Run Script&#8221;.  Everything else is pretty much the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric-Paul Lecluse</title>
		<link>http://icodeblog.com/2011/03/23/using-git-versioning-inside-your-xcode-project/#comment-5812</link>
		<dc:creator><![CDATA[Eric-Paul Lecluse]]></dc:creator>
		<pubDate>Sat, 26 Mar 2011 18:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://icodeblog.com/?p=3015#comment-5812</guid>
		<description><![CDATA[Was this written for Xcode 3 or 4? I&#039;m on 4 now and I can&#039;t find the &quot;Shell Script Target&quot;. Neither in the iOS nor the Mac OS X category. An alternative is to add a script as a build phase, but those scripts are executed *after* the Info.plist is preprocessed, so it doesn&#039;t update the git-described version correctly.

Any advice? Cheers, Eric-Paul.]]></description>
		<content:encoded><![CDATA[<p>Was this written for Xcode 3 or 4? I&#8217;m on 4 now and I can&#8217;t find the &#8220;Shell Script Target&#8221;. Neither in the iOS nor the Mac OS X category. An alternative is to add a script as a build phase, but those scripts are executed *after* the Info.plist is preprocessed, so it doesn&#8217;t update the git-described version correctly.</p>
<p>Any advice? Cheers, Eric-Paul.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
