<?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>OOPS</title>
	<atom:link href="http://www.weston-fl.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.weston-fl.com/blog</link>
	<description>Oops Tech Blog</description>
	<lastBuildDate>Thu, 26 Apr 2012 18:07:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Xcode 4.3 error message: NSAutoreleasePool is unavailable in main.m</title>
		<link>http://www.weston-fl.com/blog/?p=3155</link>
		<comments>http://www.weston-fl.com/blog/?p=3155#comments</comments>
		<pubDate>Thu, 26 Apr 2012 17:53:47 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[HTML, XHTML]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-c]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[iOS 5]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.weston-fl.com/blog/?p=3155</guid>
		<description><![CDATA[Question: I am trying to create and run a PhoneGap HTML 5 application for iOS 5 but I am getting error message of &#8216;NSAutoreleasePool is unavailable: not available in automatic reference counting mode&#8217; while building main.m. SDK: Xcode 4.3 Machine: iMAC with Lion. Answer: You enabled ARC in build settings but your code is not [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question:</strong> I am trying to create and run a <strong>PhoneGap HTML 5 </strong>application<strong> for iOS 5</strong> but I am getting error message of &#8216;<strong>NSAutoreleasePool is unavailable</strong>: not available in automatic reference counting mode&#8217; while building main.m. SDK: Xcode 4.3 Machine: iMAC with Lion.<br />
<span id="more-3155"></span><br />
<strong>Answer:</strong>
<p> You enabled ARC in build settings but your code is not ready to use  <strong>Automatic Reference Counting</strong>. If you use ARC you can&#8217;t get to autorelease pools directly. You must use @autoreleasepool blocks instead:</p>
<div class="codecolorer-container text mac-classic commentcode" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">// Old:<br />
int main(int argc, char *argv[]) {<br />
&nbsp; &nbsp; NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];<br />
&nbsp; &nbsp; int retVal = UIApplicationMain(argc, argv, nil, @&quot;AppDelegate&quot;);<br />
&nbsp; &nbsp; [pool release];<br />
&nbsp; &nbsp; return retVal;<br />
}<br />
<br />
// With ARC replace it with such a code:<br />
int main (int argc, char * argv[]) {<br />
&nbsp; &nbsp; int retVal;<br />
&nbsp; &nbsp; @autoreleasepool {<br />
&nbsp; &nbsp; &nbsp; &nbsp;retVal = UIApplicationMain(argc, argv, nil, @&quot;AppDelegate&quot;);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; return retVal;<br />
}</div></td></tr></tbody></table></div>
<p>In your code you can use the followings to be ready to handle both cases:</p>
<div class="codecolorer-container text mac-classic commentcode" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">// For example:<br />
#if __has_feature(objc_arc)<br />
&nbsp; &nbsp; &nbsp;self.window = [[UIWindow alloc] initWithFrame:screenBounds];<br />
#else<br />
&nbsp; &nbsp; &nbsp;self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease];<br />
#endif</div></td></tr></tbody></table></div>
<p>If you don&#8217;t want to use ARC, switch it off:<br />
1. Find the Build Settings of your project<br />
2. Search for &#8216;CLANG_ENABLE_OBJC_ARC&#8217;<br />
3. Set it to NO.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weston-fl.com/blog/?feed=rss2&#038;p=3155</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP 2820/2840 Print and Scan on Mac OS X Lion</title>
		<link>http://www.weston-fl.com/blog/?p=3147</link>
		<comments>http://www.weston-fl.com/blog/?p=3147#comments</comments>
		<pubDate>Wed, 25 Apr 2012 23:42:00 +0000</pubDate>
		<dc:creator>Mike D.</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iMac]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[HP 2820]]></category>
		<category><![CDATA[HP 2840]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.weston-fl.com/blog/?p=3147</guid>
		<description><![CDATA[Question: I upgraded my iMac from Snow Leopard to Lion. My HP Color Laserjet 2840 prints but I can&#8217;t scan from the device any longer. The HP Director is grayed out. I found your post about HP 2820 scanning with Snow Leopard. Do you have an update? Answer: Previous post on how to force Mac [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question:</strong> I upgraded my iMac from Snow Leopard to Lion. My HP Color Laserjet 2840 prints but I can&#8217;t scan from the device any longer. The HP Director is grayed out. I found your post about HP 2820 scanning with Snow Leopard. Do you have an update?<br />
<span id="more-3147"></span><br />
<strong>Answer:</strong> Previous post on how to force Mac OX X Snow Leopard to print and scan with HP 2820/2840 network printer is here: <a href="http://www.weston-fl.com/blog/?p=2718" target="_blank" title="Scan and print with HP 2820/2840 with Mac">Scan and print with HP 2820/2840 on OS X (Snow Leopard)</a></p>
<p>In that post all the links and steps are valid for Lion. Be sure to follow these steps:</p>
<p>1. Get Apple printer drivers for Lion. If you don&#8217;t find it download from <a href="http://support.apple.com/kb/DL907" target="_blank" title="Download printer drivers from Apple">apple.com</a>.</p>
<p>2. Find HP&#8217;s latest drivers. Check out this link for download: <a href="http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&#038;cc=us&#038;prodTypeId=18972&#038;prodSeriesId=445194&#038;prodNameId=445197&#038;swEnvOID=219&#038;swLang=8&#038;mode=2&#038;taskId=135&#038;swItem=ly-58934-1" target="_self">LJMFP28x0OSX10.5Update-v8.2.dmg</a>.</p>
<p>3. Switch on your printer. Check out network connections. Install <strong>HP&#8217;s </strong>package and restart your machine.</p>
<p>4. Uninstall the HP 2820/2840 driver from your machine you have just installed. Find System Preferences -> Print &#038; Scan -> Use &#8211; to remove driver from the list. Install the<strong> Apple&#8217;s printer package</strong>.</p>
<p>5. Use System Preferences or HP Setup Assistant to discover and/or configure your network printer. You may need to manually add your network printer. Quit from the Assistant. Open HP Director and check out configuration.</p>
<p>If you don&#8217;t find the HP Setup Assistant, use the following command in the Terminal Window:</p>
<div class="codecolorer-container text mac-classic commentcode" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /Applications/HP\ LaserJet\ Software/HP\ Setup\ Assistant.app/Contents/MacOS/HP\ Setup\ Assistant</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.weston-fl.com/blog/?feed=rss2&#038;p=3147</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcode 4.2 with iOS 5 to test location services in simulator</title>
		<link>http://www.weston-fl.com/blog/?p=3120</link>
		<comments>http://www.weston-fl.com/blog/?p=3120#comments</comments>
		<pubDate>Thu, 03 Nov 2011 02:33:35 +0000</pubDate>
		<dc:creator>Misa</dc:creator>
				<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-c]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[iOS 5]]></category>
		<category><![CDATA[Location services]]></category>
		<category><![CDATA[xcode]]></category>
		<category><![CDATA[Xcode 4]]></category>
		<category><![CDATA[Xcode 4.2]]></category>

		<guid isPermaLink="false">http://www.weston-fl.com/blog/?p=3120</guid>
		<description><![CDATA[Question: I&#8217;m an iPhone programmer and have a problem. I should test and debug my iPhone/iPad application with location services for different GPS positions and routes. Do you have a static library or module that produces GPS coordinates in the preset range? Answer: You do not need GPS location simulator any longer. Since Xcode 4 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question:</strong> I&#8217;m an iPhone programmer and have a problem. I should test and debug my iPhone/iPad application with location services for different GPS positions and routes. Do you have a static library or module that produces GPS coordinates in the preset range?<br />
<span id="more-3120"></span><br />
<strong>Answer:</strong> You do not need GPS location simulator any longer. Since Xcode 4 and iOS 5 you can select from preset locations or add routes to your project while you&#8217;re running your simulated app. Visit Apple&#8217;s web site for details <a href="http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Building/Building.html" target="_blank" title="Xcode 4 locations services tester">from here</a>.</p>
<p>In Xcode 4.2, to preset a default location for your project, choose <strong>Product -> Edit Scheme</strong> &#8211; or from the scheme selector in the toolbar find <strong>Your project name > Edit Scheme&#8230;</strong> &#8211; and select the <strong>Run</strong> action. Click the <strong>Options</strong> tab. Allow Location Simulation and choose one city from the the drop-down list.</p>
<p>While testing your app in the iOS Simulator, you can select <strong>Product</strong> -><strong> Debug</strong> -> <strong>Simulate Location</strong> from the menu bar and choose any point from the preset locations:</p>
<div id="xcode4" class="wp-caption aligncenter" style="width: 490px"><img title="How to set iOS 5 location data in Xcode 4" src="http://www.weston-fl.com/blog/images/xcode_simulator_location_services.jpg" alt="iPhone 5 (iOS 5) Simulator settings in Xcode 4" width="480" height="520" /><p class="wp-caption-text">'iPhone 5.0' (aka iOS 5) location simulating in Xcode 4.2</p></div>
<p><strong>Your options:</strong></p>
<p>1. Preset a single Location in your Scheme.</p>
<p>2. Choose a Location from the Program -> Debug -> Simulate Location menu (see above), or</p>
<p>3. Choose a Location from the Debug Bar (see below). <strong>if you are not running iOS 5.0 or later, these options can&#8217;t be used</strong>. Switch to iPhone 5.0 Simulator to allow selection:</p>
<div id="xcode4" class="wp-caption aligncenter" style="width: 490px"><img title="Choose a Location from the Debug Bar in Xcode 4" src="http://www.weston-fl.com/blog/images/xcode_simulator_location_services3.jpg" alt="Choose a Location from the Debug Bar of Xcode 4" width="480" height="230" /><p class="wp-caption-text">Choose a Location from the Debug Bar</p></div>
<p>4. Edit a GPX file and add it to your project to establish single or multiple <strong>custom waypoints</strong>. GPX (<strong>GP</strong>S e<strong>X</strong>change Format) is an xml data format for exchanging GPS data between programs. You can add one or more GPX file to your project. These files look like: </p>
<div class="codecolorer-container text mac-classic commentcode" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">For: Cupertino.GPX:<br />
&lt;?xml version=&quot;1.0&quot;?&gt;<br />
&lt;gpx version=&quot;1.1&quot; creator=&quot;Xcode&quot;&gt; <br />
&nbsp; &nbsp; &lt;wpt lat=&quot;37.331705&quot; lon=&quot;-122.030237&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Cupertino, USA&lt;/name&gt;<br />
&nbsp; &nbsp; &lt;/wpt&gt;<br />
&lt;/gpx&gt;<br />
<br />
For: Munich.GPX:<br />
&lt;?xml version=&quot;1.0&quot;?&gt;<br />
&lt;gpx version=&quot;1.1&quot; creator=&quot;Xcode&quot;&gt; <br />
&nbsp; &nbsp; &lt;wpt lat=&quot;48.122101&quot; lon=&quot;10.695933&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Munich, Germany&lt;/name&gt;<br />
&nbsp; &nbsp; &lt;/wpt&gt;<br />
&lt;/gpx&gt;</div></td></tr></tbody></table></div>
<p>You can edit and add it to your project like any other file(s) or resources:</p>
<div id="xcode4" class="wp-caption aligncenter" style="width: 490px"><img title="How to add your GPX file to your project" src="http://www.weston-fl.com/blog/images/xcode_simulator_location_services2.jpg" alt="Adding GPX file to a project" width="480" height="340" /><p class="wp-caption-text">Add your GPX file to your project</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.weston-fl.com/blog/?feed=rss2&#038;p=3120</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trace EXC_BAD_ACCESS exception in iPhone app with Xcode 4</title>
		<link>http://www.weston-fl.com/blog/?p=3089</link>
		<comments>http://www.weston-fl.com/blog/?p=3089#comments</comments>
		<pubDate>Thu, 01 Sep 2011 19:10:53 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-c]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[xcode]]></category>
		<category><![CDATA[Xcode 4]]></category>

		<guid isPermaLink="false">http://www.weston-fl.com/blog/?p=3089</guid>
		<description><![CDATA[Question: Recently I upgraded my universal iPhone project to Xcode 4 and ran immediately into an EXC_BAD_ACCESS exception in my application when running on an iPad. My code runs without errors on iPhone. I don&#8217;t know where it has come from and how to find the source code line in error. My app quits without [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question:</strong> Recently I upgraded my universal iPhone project to Xcode 4 and ran immediately into an <strong>EXC_BAD_ACCESS</strong> exception in my application when running on an iPad. My code runs without errors on iPhone. I don&#8217;t know where it has come from and how to find the source code line in error. My app quits without saying anything and the debugger jumps to the main.m module. Console messages do not help either.<br />
<span id="more-3089"></span></p>
<p><strong>Answer:</strong> EXC_BAD_ACCESS exceptions usually happen when your code wants to use objects that have already been released. When the error is caught, the call stack is usually has gone on vacation. This is the probable reason of the silent exit and the jump to the <strong>main.m</strong> as the last resort of your debugger.</p>
<p>There is a well known <strong>NSZombieEnabled</strong> environment variable that, when it&#8217;s enabled, leaves a dummy object behind for every deallocated object. It lets us trace released objects while chasing an EXC_BAD_ACCESS exception. When NSZombieEnabled is set to YES, the class of all deallocated objects is dynamically changed to _NSZombie. The memory region will never free, so NSZombieEnabled should not be left in place otherwise you will spend hours trying to find memory leaks. <strong>Do not forget to set its value to NO when you are ready</strong>.</p>
<p>Where and how to set NSZombieEnabled to YES in Xcode 4?</p>
<p>1. Go to your project in Xcode 4<br />
2. Environment variables can be set up in the Scheme editor (find Product -> Edit scheme&#8230; in menu bar):</p>
<div id="xcode4" class="wp-caption aligncenter" style="width: 490px"><img title="How to set NSZombieEnabled environment variable to YES in Xcode 4" src="http://www.weston-fl.com/blog/images/EXC_BAD_ACCESS_Xcode4.jpg" alt="Debugging EXC_BAD_ACCESS exception with Xcode 4" width="480" height="344" /><p class="wp-caption-text">Set NSZombieEnabled to YES in Xcode 4</p></div>
<p>3. Name the variable as <strong>NSZombieEnabled</strong> and set its value to <strong>YES</strong>.<br />
4. Run your app in Debug mode. You likely get a <em>&#8230; message sent<br />
to deallocated instance&#8230;</em> message and the debugger stops at the line in error. This information leads to the problem.<br />
5. When ready, disable NSZombieEnabled by changing YES to NO.</p>
<p>PS: I checked your code. You should apply <strong>retain</strong> property in your subclasses:</p>
<div class="codecolorer-container text mac-classic commentcode" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">@interface myNavigationBar : UINavigationBar &lt;UINavigationBarDelegate&gt; {<br />
&nbsp; &nbsp; UIImage *imageBackground;<br />
}<br />
@property (nonatomic, retain) UIImage *imageBackground;<br />
...<br />
<br />
@implementation myNavigationBar<br />
@synthesize imageBackground;<br />
...</div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.weston-fl.com/blog/?feed=rss2&#038;p=3089</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgraded Xcode 4 constantly crashes when opening XIB file</title>
		<link>http://www.weston-fl.com/blog/?p=3074</link>
		<comments>http://www.weston-fl.com/blog/?p=3074#comments</comments>
		<pubDate>Wed, 22 Jun 2011 16:05:47 +0000</pubDate>
		<dc:creator>Mike D.</dc:creator>
				<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-c]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[xcode]]></category>
		<category><![CDATA[Xcode 4]]></category>

		<guid isPermaLink="false">http://www.weston-fl.com/blog/?p=3074</guid>
		<description><![CDATA[Question: I have some &#8220;old&#8221; iPhone projects. Since I upgraded from Xcode 3.2 to Xcode 4 it constantly crashes when I open an XIB file. The same project builds without errors in Xcode 3. The error log message is: &#8220;Encountered multiple assertions. First assertion was: ASSERTION FAILURE&#8230;&#8221; and a long list of stack info. Answer: [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question:</strong> I have some &#8220;old&#8221; iPhone projects. Since I upgraded from Xcode 3.2 to Xcode 4 it constantly crashes when I open an XIB file. The same project builds without errors in Xcode 3. The error log message is: &#8220;Encountered multiple assertions. First assertion was: ASSERTION FAILURE&#8230;&#8221; and a long list of stack info.<br />
<span id="more-3074"></span><br />
<strong>Answer:</strong> Your <em>project</em>.xcodeproj package is probably corrupted. Try out some of or all of these steps:</p>
<p>1. Open your <strong>project.pbxproj</strong> file with TextEdit. It&#8217;s in the <em>project</em>.xcodeproj package. See #3 for instructions below. Search for null strings like this:</p>
<div class="codecolorer-container text mac-classic commentcode" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/* (null) in Resources */ = {isa = PBXBuildFile; };</div></td></tr></tbody></table></div>
<p>Remove it.</p>
<p>2. Search for <strong>explicitFileType</strong> = file.xib; in the project.pbxproj file. If found replace it with <strong>lastKnownFileType</strong> to have a valid settings like this:</p>
<div class="codecolorer-container text mac-classic commentcode" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">65A1D75E12CEB12A005BE04D /* SettingsAddressViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SettingsAddressViewController.xib; sourceTree = &quot;&lt;group&gt;&quot;; };</div></td></tr></tbody></table></div>
<p>3. Remove inherited settings from your <em>project</em>.xcodeproj package:</p>
<p>- Close Xcode 4</p>
<p>- Open Finder and navigate to your project folder. </p>
<p>- In the context menu of <em>project</em>.xcodeproj file select <em>Show Package Contents</em>. How? Context menu => right click on the file. </p>
<p>- A new Finder window will pop up. From the package delete the project.xcworkspace file. Don&#8217;t worry. It&#8217;s another package.</p>
<p>- Go into the xcuserdata folder and delete your own .xcuserdatad folder.</p>
<p>- Close Finder and open Xcode. Clean and rebuild your app.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weston-fl.com/blog/?feed=rss2&#038;p=3074</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xcode 4 build gcc-4.2 error, execvp: No such file or directory error</title>
		<link>http://www.weston-fl.com/blog/?p=3062</link>
		<comments>http://www.weston-fl.com/blog/?p=3062#comments</comments>
		<pubDate>Wed, 22 Jun 2011 02:02:07 +0000</pubDate>
		<dc:creator>Mike D.</dc:creator>
				<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Objective-c]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[xcode]]></category>
		<category><![CDATA[Xcode 4]]></category>

		<guid isPermaLink="false">http://www.weston-fl.com/blog/?p=3062</guid>
		<description><![CDATA[Question: After downgrading from Xcode 4.2 beta to Xcode SDK 4.02 I am facing new error messages: - &#8220;gcc-4.2: error trying to exec &#8216;/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1&#8242;: execvp: No such file or directory&#8221;, and &#8211; &#8220;Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 255&#8243;. What&#8217;s is this for and what to do now? Answer: Check out your build configuration. The [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Question:</strong> After downgrading from Xcode 4.2 beta to Xcode SDK 4.02 I am facing new error messages: </p>
<p>- &#8220;gcc-4.2: error trying to exec &#8216;/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1&#8242;: execvp: No such file or directory&#8221;, and</p>
<p> &#8211; &#8220;Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 255&#8243;. </p>
<p>What&#8217;s is this for and what to do now?<br />
<span id="more-3062"></span><br />
<strong>Answer:</strong> Check out your build configuration. The Architectures probably have an inherited $(ARCHS_&#8230;) value which can fire a build error:</p>
<p>1. Navigate to <em>Build Settings</em> in Xcode and check out values in the <em>Architectures</em> group.</p>
<p>2. Remove &#8220;VALID ARCH&#8221; entry from <em>Architectures</em> field to reset settings. Use $(ARCHS_STANDARD_32_BIT) , or armv6, armv7 values as you wish. $(ARCHS_STANDARD_32_BIT) should show armv6 armv7.</p>
<p>3. Repeat these steps at your dependent projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.weston-fl.com/blog/?feed=rss2&#038;p=3062</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

