<?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: Unit Testing and linking Static Libraries with XCode</title>
	<atom:link href="http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/</link>
	<description>iPhone Development from the Ends of the Earth</description>
	<lastBuildDate>Sun, 05 Sep 2010 02:16:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ken</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-1375</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 08 Feb 2010 05:42:06 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-1375</guid>
		<description>Hi George,

Sadly I was just too quick to gloss over the steps you wrote, thinking that I knew what I was doing more or less. :-(

After re-reading the above CAREFULLY, I realized that I had just added the UnitTest++ code directly to the target instead of making a separate .a file and linking to it.

XCode was trying to compile it all together directly.

My first test is compiling and failing now, as it should.

Thanks again for the article!</description>
		<content:encoded><![CDATA[<p>Hi George,</p>
<p>Sadly I was just too quick to gloss over the steps you wrote, thinking that I knew what I was doing more or less. <img src='http://acornheroes.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>After re-reading the above CAREFULLY, I realized that I had just added the UnitTest++ code directly to the target instead of making a separate .a file and linking to it.</p>
<p>XCode was trying to compile it all together directly.</p>
<p>My first test is compiling and failing now, as it should.</p>
<p>Thanks again for the article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-1374</link>
		<dc:creator>George</dc:creator>
		<pubDate>Mon, 08 Feb 2010 02:59:14 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-1374</guid>
		<description>Hi Ken,

The problem here is that you need the files to be compiled using both Objective-C and C++.  By default a .m is compiled as just Obj-C, and .cpp as C++.  .mm files allow both Obj-C and C++ code.

In this case, the iPhone Sdk files make use of Objective-C, so any C++ files that include them will need to be renamed .mm

I haven&#039;t looked at this code recently, but if you include UIKit.h in your pre-compiled header, you&#039;ll need to make your .cpp files into .mm (or find a way to not use the pre-compiled headers with those files).  As an alternative, does UIKit.h need to be included in every single file?  Could you instead just include it in those .m files that make use of it?</description>
		<content:encoded><![CDATA[<p>Hi Ken,</p>
<p>The problem here is that you need the files to be compiled using both Objective-C and C++.  By default a .m is compiled as just Obj-C, and .cpp as C++.  .mm files allow both Obj-C and C++ code.</p>
<p>In this case, the iPhone Sdk files make use of Objective-C, so any C++ files that include them will need to be renamed .mm</p>
<p>I haven&#8217;t looked at this code recently, but if you include UIKit.h in your pre-compiled header, you&#8217;ll need to make your .cpp files into .mm (or find a way to not use the pre-compiled headers with those files).  As an alternative, does UIKit.h need to be included in every single file?  Could you instead just include it in those .m files that make use of it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-1373</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Mon, 08 Feb 2010 02:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-1373</guid>
		<description>Hi George,

Thanks for this article, but I am running into a problem.  I was getting 997 compile errors, and then I renamed the main .cpp to .mm.  Those errors went away and I was left with about 10 link errors.  I realized I had not marked the files in UnitTest++ as belonging to the new UnitTests target I added.

After adding that in, I am back to the 997 errors.  It appears to be related again to the fact that the UnitTest++ files are .cpp files.

Does anyone know what is wrong with this?  I tried commenting out the contents of the prefix file (precompiled header), and removing the file from the project, but the results were the same.

It has something to do with including the UIKit framework in a precompiled header, but I cannot figure out where the issue is.</description>
		<content:encoded><![CDATA[<p>Hi George,</p>
<p>Thanks for this article, but I am running into a problem.  I was getting 997 compile errors, and then I renamed the main .cpp to .mm.  Those errors went away and I was left with about 10 link errors.  I realized I had not marked the files in UnitTest++ as belonging to the new UnitTests target I added.</p>
<p>After adding that in, I am back to the 997 errors.  It appears to be related again to the fact that the UnitTest++ files are .cpp files.</p>
<p>Does anyone know what is wrong with this?  I tried commenting out the contents of the prefix file (precompiled header), and removing the file from the project, but the results were the same.</p>
<p>It has something to do with including the UIKit framework in a precompiled header, but I cannot figure out where the issue is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-1155</link>
		<dc:creator>George</dc:creator>
		<pubDate>Sat, 19 Dec 2009 20:11:47 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-1155</guid>
		<description>Hi Harry,

I haven&#039;t yet had a chance to try this code under 3.2.1 - I&#039;ve only just recently upgraded.  I don&#039;t think a difference in XCode versions is the problem here.

I&#039;ll try to help you with the trouble you&#039;re having, could you help me by supplying a little more detail?  For example:

- Does the sample project (link near the top of the article) work for you?
- There are a few stages through the article where it says you can try things to check they are working.  At what stage does it stop working?
- I&#039;m not sure off hand what a 2788 error is, can you supply the text that goes with that error?
- Also, a &#039;Code sign error&#039; sounds like a badly setup provisioning file.  Are you building to a device or the simulator?</description>
		<content:encoded><![CDATA[<p>Hi Harry,</p>
<p>I haven&#8217;t yet had a chance to try this code under 3.2.1 &#8211; I&#8217;ve only just recently upgraded.  I don&#8217;t think a difference in XCode versions is the problem here.</p>
<p>I&#8217;ll try to help you with the trouble you&#8217;re having, could you help me by supplying a little more detail?  For example:</p>
<p>- Does the sample project (link near the top of the article) work for you?<br />
- There are a few stages through the article where it says you can try things to check they are working.  At what stage does it stop working?<br />
- I&#8217;m not sure off hand what a 2788 error is, can you supply the text that goes with that error?<br />
- Also, a &#8216;Code sign error&#8217; sounds like a badly setup provisioning file.  Are you building to a device or the simulator?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-1151</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Sat, 19 Dec 2009 13:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-1151</guid>
		<description>This article is a good start but it is not thorough. I was unsuccessful following the above steps to integrate UnitTest++ into XCode 3.2.1. Is it possible to add screen shots to each step. I am getting 2788 errors. The link to CoolGame xcode project builds with one error &quot;Code sign error&quot;.

Any help in getting a empty UnitTest++ project working with Xcode 3.2.1 is greatly appreciated,

Thanks,
Harry</description>
		<content:encoded><![CDATA[<p>This article is a good start but it is not thorough. I was unsuccessful following the above steps to integrate UnitTest++ into XCode 3.2.1. Is it possible to add screen shots to each step. I am getting 2788 errors. The link to CoolGame xcode project builds with one error &#8220;Code sign error&#8221;.</p>
<p>Any help in getting a empty UnitTest++ project working with Xcode 3.2.1 is greatly appreciated,</p>
<p>Thanks,<br />
Harry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bookmarks for July 29th through August 14th &#124; 기본이 바로 선 나라</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-225</link>
		<dc:creator>Bookmarks for July 29th through August 14th &#124; 기본이 바로 선 나라</dc:creator>
		<pubDate>Sat, 15 Aug 2009 15:04:11 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-225</guid>
		<description>[...] Unit Testing and linking Static Libraries with XCode &#8211; Acorn Heroes &#8211; [...]</description>
		<content:encoded><![CDATA[<p>[...] Unit Testing and linking Static Libraries with XCode &#8211; Acorn Heroes &#8211; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-07-29 &#124; 기본이 바로 선 나라</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-175</link>
		<dc:creator>links for 2009-07-29 &#124; 기본이 바로 선 나라</dc:creator>
		<pubDate>Sat, 08 Aug 2009 10:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-175</guid>
		<description>[...] Unit Testing and linking Static Libraries with XCode &#8211; Acorn Heroes (tags: iphone objective-c Xcode unittesting) [...]</description>
		<content:encoded><![CDATA[<p>[...] Unit Testing and linking Static Libraries with XCode &#8211; Acorn Heroes (tags: iphone objective-c Xcode unittesting) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-83</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Mon, 29 Jun 2009 03:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-83</guid>
		<description>Excellent article :) I went through a similar process - it seems most people don&#039;t talk about unit testing on the iPhone itself (other than running from the main app).

And like Noel, I would love to have a solution to this. Perhaps Applescripting XCode is the answer here?</description>
		<content:encoded><![CDATA[<p>Excellent article <img src='http://acornheroes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I went through a similar process &#8211; it seems most people don&#8217;t talk about unit testing on the iPhone itself (other than running from the main app).</p>
<p>And like Noel, I would love to have a solution to this. Perhaps Applescripting XCode is the answer here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unit testing on the iPhone and the Simulator &#124; Julian Rex</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-82</link>
		<dc:creator>Unit testing on the iPhone and the Simulator &#124; Julian Rex</dc:creator>
		<pubDate>Mon, 29 Jun 2009 03:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-82</guid>
		<description>[...] the RSS feed for updates on this topic.Powered by WP Greet BoxA recent post over on Acorn Heroes, &#8220;Unit Testing and linking Static Libraries with XCode&#8221;, has got me thinking: I went through a similar process a few months ago, when I was integrating [...]</description>
		<content:encoded><![CDATA[<p>[...] the RSS feed for updates on this topic.Powered by WP Greet BoxA recent post over on Acorn Heroes, &#8220;Unit Testing and linking Static Libraries with XCode&#8221;, has got me thinking: I went through a similar process a few months ago, when I was integrating [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noel</title>
		<link>http://acornheroes.com/2009/06/unit-testing-and-linking-static-libraries-with-xcode/#comment-74</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Thu, 25 Jun 2009 07:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://acornheroes.com/?p=152#comment-74</guid>
		<description>Nice article, George! It&#039;s a perfect step-by-step description for running unit tests on iPhone projects.

Things that I want to do but I&#039;m not currently doing include:
- Running unit tests on the iPhone as well (right now they&#039;re #ifdef&#039;d out)
- Use UnitTest++ for Objective C code as well

If someone is doing that, I&#039;d love to hear about it :-)</description>
		<content:encoded><![CDATA[<p>Nice article, George! It&#8217;s a perfect step-by-step description for running unit tests on iPhone projects.</p>
<p>Things that I want to do but I&#8217;m not currently doing include:<br />
- Running unit tests on the iPhone as well (right now they&#8217;re #ifdef&#8217;d out)<br />
- Use UnitTest++ for Objective C code as well</p>
<p>If someone is doing that, I&#8217;d love to hear about it <img src='http://acornheroes.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
