<?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>Chewy Apps &#187; XCode</title>
	<atom:link href="http://www.chewyapps.com/tag/xcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chewyapps.com</link>
	<description>Hi, I&#039;m Henning, and I&#039;m an iPhone developer.</description>
	<lastBuildDate>Sat, 28 Jan 2012 19:00:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fixing Broken Pipes</title>
		<link>http://www.chewyapps.com/2009/09/03/fixing-broken-pipes/</link>
		<comments>http://www.chewyapps.com/2009/09/03/fixing-broken-pipes/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 15:31:12 +0000</pubDate>
		<dc:creator>henning</dc:creator>
				<category><![CDATA[Development Tips]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[provisioning profile]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://www.chewyapps.com/?p=236</guid>
		<description><![CDATA[There&#8217;s nothing like the simulator for putting your app together quickly. It&#8217;s better than debugging on the device for one main reason: it&#8217;s fast! Starting up the app is fast. Debugging the app is fast. Everything is fast. But sometimes you just need to slow down. By using the device. Of course, I was testing [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.chewyapps.com/wp-content/uploads/2009/09/pipewrench.png" alt="pipewrench" title="pipewrench" width="150" height="150" align="right" />There&#8217;s nothing like the simulator for putting your app together quickly. It&#8217;s better than debugging on the device for one main reason: it&#8217;s fast! Starting up the app is fast. Debugging the app is fast. Everything is fast.</p>
<p>But sometimes you just need to <strong>slow down</strong>. By using the device. Of course, I was testing on the device today and made a critical error.</p>
<p>I couldn&#8217;t figure out what was wrong. I was getting error messages in the debugger console like this:</p>
<blockquote><p>putpkt: write failed: Broken pipe</p></blockquote>
<p>Or this:</p>
<blockquote><p>mem 0&#215;1000 0x3fffffff cache<br />
mem 0&#215;40000000 0xffffffff none<br />
mem 0&#215;00000000 0x0fff none</p></blockquote>
<p>Or even like this:</p>
<blockquote><p>Sent:  [1251990710.449:32] +<br />
Sent:  [1251990710.449:32] Hc-1<br />
Recvd: [1251990710.454:32] OK<br />
Sent:  [1251990710.455:32] qC<br />
Recvd: [1251990710.460:32] QC0<br />
Sent:  [1251990710.460:32] qStepPacketSupported<br />
Recvd: [1251990710.463:32] OK<br />
Sent:  [1251990710.478:49] QEnvironment:SHELL=/bin/bash<br />
Recvd: [1251990710.481:49] OK<br />
Sent:  [1251990710.481:49] QEnvironment:TMPDIR=/var/folders/UF/UFCJNauIGPu+F7L7bsqhZU+++TI/-Tmp-/<br />
Recvd: [1251990710.485:49] OK<br />
Sent:  [1251990710.485:49] QEnvironment:Apple_PubSub_Socket_Render=/tmp/launch-o19tpZ/Render<br />
Recvd: [1251990710.488:49] OK<br />
etc&#8230;..
</p></blockquote>
<p>It was quite frustrating.</p>
<p>So I looked around on the forums, and there were several questions about these errors, many of which went unanswered. (Forums can only get you so far sometimes.) But eventually I found the answer: <strong>you can&#8217;t debug your program if you&#8217;re using an ad hoc profile</strong>.</p>
<p>So I used the appropriate profile, and now I debug to my heart&#8217;s content. iPhone development seems to be straining with this kinds of gotchas. I just hope I remember this solution next time I find this problem. Writing it down will help, I hope! <img src='http://www.chewyapps.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.chewyapps.com/2009/09/03/fixing-broken-pipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

