<?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: Tracing Unit Tests with the XCode 3 Debugger</title>
	<atom:link href="http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/feed/" rel="self" type="application/rss+xml" />
	<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/</link>
	<description>Colin M. Strickland</description>
	<lastBuildDate>Wed, 09 Jun 2010 09:07:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Elise van Looij</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-9282</link>
		<dc:creator>Elise van Looij</dc:creator>
		<pubDate>Thu, 28 Jan 2010 20:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-9282</guid>
		<description>@Max, your problem seems to stem from non-matching build settings. To match them, double-click on each target to bring up the Target Info and click on the Build tab. You can arrange the windows next to each other and scroll through them, comparing the settings. As far as garbage collection goes, &quot;Supported&quot; is the most flexible option.</description>
		<content:encoded><![CDATA[<p>@Max, your problem seems to stem from non-matching build settings. To match them, double-click on each target to bring up the Target Info and click on the Build tab. You can arrange the windows next to each other and scroll through them, comparing the settings. As far as garbage collection goes, &#8220;Supported&#8221; is the most flexible option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cms</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-8390</link>
		<dc:creator>cms</dc:creator>
		<pubDate>Sun, 15 Nov 2009 13:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-8390</guid>
		<description>@Max - cool ! I made a previous post about that problem too :-) 

http://beatworm.co.uk/blog/computers/smartypants-ides-considered-harmful/

XCode is improving all the time, and it does have some nice features.

I&#039;m afraid I&#039;ve not used Visual Studio ( Visual C++ even) since around, maybe 1996, I really hated it back then! Software sucks.</description>
		<content:encoded><![CDATA[<p>@Max &#8211; cool ! I made a previous post about that problem too <img src='http://beatworm.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p><a href="http://beatworm.co.uk/blog/computers/smartypants-ides-considered-harmful/" rel="nofollow">http://beatworm.co.uk/blog/computers/smartypants-ides-considered-harmful/</a></p>
<p>XCode is improving all the time, and it does have some nice features.</p>
<p>I&#8217;m afraid I&#8217;ve not used Visual Studio ( Visual C++ even) since around, maybe 1996, I really hated it back then! Software sucks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Hillaert</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-8389</link>
		<dc:creator>Max Hillaert</dc:creator>
		<pubDate>Sun, 15 Nov 2009 13:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-8389</guid>
		<description>Found it:   Needed to turn off &#039;Lazy Loading&#039; of symbols in the xcode preferences.   Working in xcode for the past year, really makes me appreciate Visual Studio at my day job! ;)</description>
		<content:encoded><![CDATA[<p>Found it:   Needed to turn off &#8216;Lazy Loading&#8217; of symbols in the xcode preferences.   Working in xcode for the past year, really makes me appreciate Visual Studio at my day job! <img src='http://beatworm.co.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Hillaert</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-8388</link>
		<dc:creator>Max Hillaert</dc:creator>
		<pubDate>Sun, 15 Nov 2009 13:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-8388</guid>
		<description>@cms:  yes I have done that.</description>
		<content:encoded><![CDATA[<p>@cms:  yes I have done that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Hillaert</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-8387</link>
		<dc:creator>Max Hillaert</dc:creator>
		<pubDate>Sun, 15 Nov 2009 13:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-8387</guid>
		<description>I removed UIKit framework from the &#039;other linker flags&#039; setting in my test configuration.   Now the problem is that even though otest will run my tests it will not break at my breakpoint.   Are there other configuration settings I need to specify? How do I go about solving this problem?</description>
		<content:encoded><![CDATA[<p>I removed UIKit framework from the &#8216;other linker flags&#8217; setting in my test configuration.   Now the problem is that even though otest will run my tests it will not break at my breakpoint.   Are there other configuration settings I need to specify? How do I go about solving this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cms</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-8386</link>
		<dc:creator>cms</dc:creator>
		<pubDate>Sun, 15 Nov 2009 13:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-8386</guid>
		<description>@Max

Have you tried explicitly setting the OBJC_DISABLE_GC for the otest executable in it&#039;s inspector ? ( see comments #1 and #2 from @Quinn and @nicolas )</description>
		<content:encoded><![CDATA[<p>@Max</p>
<p>Have you tried explicitly setting the OBJC_DISABLE_GC for the otest executable in it&#8217;s inspector ? ( see comments #1 and #2 from @Quinn and @nicolas )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max Hillaert</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-8385</link>
		<dc:creator>Max Hillaert</dc:creator>
		<pubDate>Sun, 15 Nov 2009 13:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-8385</guid>
		<description>I&#039;m getting this output:

 GC: forcing GC OFF because OBJC_DISABLE_GC is set

Error loading /Users/myname/Projects/MyProject/build/Debug-iphonesimulator/Tests.octest/Tests:  dlopen(/Users/myname/Projects/MyProject/build/Debug-iphonesimulator/Tests.octest/Tests, 265): Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit
  Referenced from: /Users/myname/Projects/MyProject/build/Debug-iphonesimulator/Tests.octest/Tests
  Reason: image not found

The test bundle at Tests.octest could not be loaded because its Objective-C runtime information does not match the runtime information required by the test rig.  This is likely because the test rig is being run with Objective-C garbage collection disabled, but the test bundle requires Objective-C garbage collection.  To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable.
 *** NSTask: Task create for path &#039;/Users/maxhillaert/Projects/MyBookShelf/build/Debug-iphonesimulator/Tests.octest/Tests&#039; failed: 8, &quot;Exec format error&quot;.  Terminating temporary process.
2009-11-15 12:55:55.610 otest[13234:203] Usage: otest [-SenTest Self &#124; All &#124; None &#124; ] 
2009-11-15 12:55:55.612 otest[13234:203] *** -[NSConcreteTask terminationStatus]: task not launched</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting this output:</p>
<p> GC: forcing GC OFF because OBJC_DISABLE_GC is set</p>
<p>Error loading /Users/myname/Projects/MyProject/build/Debug-iphonesimulator/Tests.octest/Tests:  dlopen(/Users/myname/Projects/MyProject/build/Debug-iphonesimulator/Tests.octest/Tests, 265): Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit<br />
  Referenced from: /Users/myname/Projects/MyProject/build/Debug-iphonesimulator/Tests.octest/Tests<br />
  Reason: image not found</p>
<p>The test bundle at Tests.octest could not be loaded because its Objective-C runtime information does not match the runtime information required by the test rig.  This is likely because the test rig is being run with Objective-C garbage collection disabled, but the test bundle requires Objective-C garbage collection.  To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable.<br />
 *** NSTask: Task create for path &#8216;/Users/maxhillaert/Projects/MyBookShelf/build/Debug-iphonesimulator/Tests.octest/Tests&#8217; failed: 8, &#8220;Exec format error&#8221;.  Terminating temporary process.<br />
2009-11-15 12:55:55.610 otest[13234:203] Usage: otest [-SenTest Self | All | None | ]<br />
2009-11-15 12:55:55.612 otest[13234:203] *** -[NSConcreteTask terminationStatus]: task not launched</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UIKIt requires garbage collection? Huh? - iPhone Dev SDK Forum</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-6530</link>
		<dc:creator>UIKIt requires garbage collection? Huh? - iPhone Dev SDK Forum</dc:creator>
		<pubDate>Wed, 15 Jul 2009 00:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-6530</guid>
		<description>[...] the OBJ_DISABLE_GC environment variable to YES in the otest executable info window&quot;.   beatworm.co.uk Blog Archive Tracing Unit Tests with the XCode 3 Debugger     __________________ ~~ DO NOT EAT THE NEWBIES ~~ Intro to objective C and When to retain + [...]</description>
		<content:encoded><![CDATA[<p>[...] the OBJ_DISABLE_GC environment variable to YES in the otest executable info window&quot;.   beatworm.co.uk Blog Archive Tracing Unit Tests with the XCode 3 Debugger     __________________ ~~ DO NOT EAT THE NEWBIES ~~ Intro to objective C and When to retain + [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cms</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-4252</link>
		<dc:creator>cms</dc:creator>
		<pubDate>Fri, 10 Apr 2009 21:48:56 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-4252</guid>
		<description>@Mark - grepping through the shell scripts in /Developer/Tools/ that are normally used to run otest for unit test targets might be illuminating. It looks to me like they use the arch command directly to invoke otest, picking up the architectures to test for from XCode via several environment variables, or falling back to the default system architecture, derived by running &#039;arch&#039; with no arguments. 

I don&#039;t think you can use the &#039;arch&#039; utility in the same way, because you need otest to be he executable so that you can debug it as it runs your classes. But setting the value of ARCHPREFERENCE in the otest environment to your default architecture might suffice.</description>
		<content:encoded><![CDATA[<p>@Mark &#8211; grepping through the shell scripts in /Developer/Tools/ that are normally used to run otest for unit test targets might be illuminating. It looks to me like they use the arch command directly to invoke otest, picking up the architectures to test for from XCode via several environment variables, or falling back to the default system architecture, derived by running &#8216;arch&#8217; with no arguments. </p>
<p>I don&#8217;t think you can use the &#8216;arch&#8217; utility in the same way, because you need otest to be he executable so that you can debug it as it runs your classes. But setting the value of ARCHPREFERENCE in the otest environment to your default architecture might suffice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cms</title>
		<link>http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/comment-page-1/#comment-4251</link>
		<dc:creator>cms</dc:creator>
		<pubDate>Fri, 10 Apr 2009 21:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://beatworm.co.uk/blog/computers/tracing-unit-tests-with-the-xcode-3-debugger/#comment-4251</guid>
		<description>@Mark - I&#039;m not sure. It seems like the test bundle isn&#039;t loading because otest doesn&#039;t have an architecture specified (Unknown). You can set an environment variable ARCHPREFERENCE to specify a preferred binary architecture for your system - perhaps setting this in the environment section of the arguments tab for otest to an appropriate value for the architecture you&#039;re trying to debug ? Valid values are documented in the man page for the &#039;arch&#039; command.</description>
		<content:encoded><![CDATA[<p>@Mark &#8211; I&#8217;m not sure. It seems like the test bundle isn&#8217;t loading because otest doesn&#8217;t have an architecture specified (Unknown). You can set an environment variable ARCHPREFERENCE to specify a preferred binary architecture for your system &#8211; perhaps setting this in the environment section of the arguments tab for otest to an appropriate value for the architecture you&#8217;re trying to debug ? Valid values are documented in the man page for the &#8216;arch&#8217; command.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
