<?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>Random thoughts of an overloaded mind &#187; XCode</title>
	<atom:link href="http://blog.amarkulo.com/tag/xcode/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.amarkulo.com</link>
	<description>Yet another technical blog about iOS, Windows, Linux, Arduino and everything else</description>
	<lastBuildDate>Tue, 13 Dec 2011 16:56:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to fix invalid product ID in In-App Purchases</title>
		<link>http://blog.amarkulo.com/how-to-fix-invalid-product-id-in-in-app-purchases</link>
		<comments>http://blog.amarkulo.com/how-to-fix-invalid-product-id-in-in-app-purchases#comments</comments>
		<pubDate>Wed, 10 Aug 2011 08:26:27 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[in-app]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[purchases]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[store]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=441</guid>
		<description><![CDATA[Yesterday after application that I&#8217;m programming for a client being rejected once again from Apple because of &#8220;inappropriate use of In-App Purchases&#8221; I had to delete old one and create a new one in iTunes Connect. Of course after that &#8230; <a href="http://blog.amarkulo.com/how-to-fix-invalid-product-id-in-in-app-purchases">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday after application that I&#8217;m programming for a client being rejected once again from Apple because of &#8220;inappropriate use of In-App Purchases&#8221; I had to delete old one and create a new one in iTunes Connect. Of course after that the error that I was getting while trying to test application is <strong>Invalid product id </strong>and Apple didn&#8217;t wanted to let us know anything like reason why it&#8217;s invalid so any kind of debugging is sufficient.</p>
<p>To solve this problem there is a simple solution.</p>
<p><strong>Delete application from testing device and then let the XCode install it again. </strong></p>
<p>Because of something known only to Apple, XCode is treating installed application as application installed from App Store and it won&#8217;t allow it to register with StoreKit framework properly and that&#8217;s the reason why Invalid product id is occurring.</p>
<p>I have just lost a whole day waiting In-App Purchase to become valid instead of just deleting app from iPhone and installing it again. I have tested to create new In-App Purchase in iTunes connect and it was directly recognized by StoreKit and it worked directly out of the box.</p>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/how-to-fix-invalid-product-id-in-in-app-purchases/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ad Hoc distribution of iOS apps over web &#8211; revised</title>
		<link>http://blog.amarkulo.com/ad-hoc-distribution-over-web-revised</link>
		<comments>http://blog.amarkulo.com/ad-hoc-distribution-over-web-revised#comments</comments>
		<pubDate>Wed, 02 Feb 2011 08:51:37 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[adhoc]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[builder]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[Mac tips]]></category>
		<category><![CDATA[organizer]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=430</guid>
		<description><![CDATA[Here is small update of my first post on Ad Hoc distribution of iOS applications over the web which you can find on this link. I have discovered that it can be even easier to distribute apps to beta testers &#8230; <a href="http://blog.amarkulo.com/ad-hoc-distribution-over-web-revised">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is small update of my first post on Ad Hoc distribution of iOS applications over the web which you can find on this <a title="Ad Hoc distribution of applications via web" href="http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web ">link</a>.</p>
<p>I have discovered that it can be even easier to distribute apps to beta testers then the procedure which I have described in my first post.</p>
<p>Simplified procedure:</p>
<ol>
<li>Open XCode (version 3.2.x) and go to organizer</li>
<li>Refresh profiles so that XCode can download Development Profile which is now automatically created within XCode if you don&#8217;t have it</li>
<li>You don&#8217;t need distribution or AdHoc profile any more, standard development profile works as well</li>
<li>You don&#8217;t need entitlements any more</li>
<li>Edit release configuration to be sure that it&#8217;s signed with developer profile</li>
<li>Set app destination platform to device, not simulator</li>
<li>Build and archive</li>
<li>Open XCode organizer and continue with the rest of the steps described in my first post which includes saving .ipa file to the disk and creating web dir with Beta Builder</li>
</ol>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/ad-hoc-distribution-over-web-revised/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Automatic sync of CodeBox library between several macs</title>
		<link>http://blog.amarkulo.com/automatic-sync-of-codebox-library-between-several-macs</link>
		<comments>http://blog.amarkulo.com/automatic-sync-of-codebox-library-between-several-macs#comments</comments>
		<pubDate>Fri, 07 Jan 2011 20:20:32 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[codebox]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[Mac tips]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=406</guid>
		<description><![CDATA[So yesterday Apple has released 10.6.6 update with App store for Macs. One of my first purchases was CodeBox from Vadim Shpakovski. This application is really must have for all developers, but I have few things that I need for &#8230; <a href="http://blog.amarkulo.com/automatic-sync-of-codebox-library-between-several-macs">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So yesterday Apple has released 10.6.6 update with App store for Macs. One of my first purchases was <a title="CodeBox" href="http://www.codeboxapp.com/">CodeBox</a> from <a title="Vadim Shpakovski @ Twitter" href="http://twitter.com/#!/vadimshpakovski">Vadim Shpakovski</a>.</p>
<p>This application is really must have for all developers, but I have few things that I need for it to be perfect for my use.</p>
<p>It lacks sync between more than one Mac and I&#8217;m working on 4 different Macs, so I would like to have same code snippets everywhere without importing of every snippet separately, and you cannot export whole lib, only one code snippet at a time.</p>
<p>So I started looking into it to see if I can sync it in some way without too much hassle and work and I have founded way to do it.</p>
<p>I&#8217;m big fan of <a title="Dropbox" href="http://db.tt/8o7C5Zb">Dropbox</a> so why not use it here.</p>
<p>Here are steps required to have CodeBox synced over more than one Macs:</p>
<ul>
<li>Create one folder in your Dropbox folder, I have name it CodeBox <img src='http://blog.amarkulo.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>Now quit CodeBox on one Mac (the one with more snippets)</li>
<li>Start Terminal and execute following commands
<ol>
<li><strong>cd &#8220;Library/Application Support&#8221;</strong></li>
<li><strong>cp com.shpakovski.mac.codebox/* ~/Dropbox/CodeBox</strong><span style="text-decoration: line-through;"> (here you will replace amar with your username)</span></li>
<li>now we will delete folder and create symlink</li>
<li><strong>rm -rf com.shpakovski.mac.codebox</strong></li>
<li><strong>ln -s ~/Dropbox/CodeBox com.shpakovski.mac.codebox</strong></li>
<li>that&#8217;s it!!</li>
</ol>
</li>
</ul>
<p>So now you need to repeat steps above on another mac on which you want to sync CodeBox library to.</p>
<p>If you don&#8217;t have <a title="Dropbox" href="http://db.tt/8o7C5Zb">Dropbox</a> account create it <a title="Dropbox" href="http://db.tt/8o7C5Zb">here</a>. It&#8217;s free and you will receive 2GB of disk space.</p>
<p><strong>Note 1:</strong> This is only temporary solution, I&#8217;m sure that Vadim will implement sync option in future updates.</p>
<p><strong>Note 2: Remember</strong>, you need to quit CodeBox on other Macs to be able to sync properly, because CodeBox is reading Library files on startup and it won&#8217;t know that you had changed something on mac nr2 so it will save current changes over those which are the latest ones.</p>
<p><strong>Note 3: </strong>This solution works for <a title="Snippets app" href="http://www.snippetsapp.com/">Snippets</a> application as well, the only thing that differs is application folder in Application Support.</p>
<p><strong>Note 4</strong>: I have corrected command for creating of a symbolic link and edited rest of the commands. I don&#8217;t know how did I get L there. Thank you Dalton for pointing that out.</p>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/automatic-sync-of-codebox-library-between-several-macs/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Display CGRect frame values in NSLog</title>
		<link>http://blog.amarkulo.com/display-cgrect-frame-values-in-nslog-iphonedev</link>
		<comments>http://blog.amarkulo.com/display-cgrect-frame-values-in-nslog-iphonedev#comments</comments>
		<pubDate>Tue, 23 Nov 2010 15:31:24 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[cgrect]]></category>
		<category><![CDATA[frame]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[nslog]]></category>
		<category><![CDATA[values]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=398</guid>
		<description><![CDATA[Here is simple tip to display frame values of any UIView with NSLog NSLog(@&#8221;My view frame: %@&#8221;, NSStringFromCGRect(myView.frame)); After this run your app and in Debugger Console you will se output where values are written in x, y, width, height &#8230; <a href="http://blog.amarkulo.com/display-cgrect-frame-values-in-nslog-iphonedev">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is simple tip to display frame values of any UIView with NSLog</p>
<blockquote><p>NSLog(@&#8221;My view frame: %@&#8221;, NSStringFromCGRect(myView.frame));</p></blockquote>
<p>After this run your app and in Debugger Console you will se output where values are written in x, y, width, height format.</p>
<blockquote><p>My view frame: {{0, 0}, {320,421}}</p></blockquote>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/display-cgrect-frame-values-in-nslog-iphonedev/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create rounded UIViews with shadow</title>
		<link>http://blog.amarkulo.com/create-rounded-uiviews-with-shadow</link>
		<comments>http://blog.amarkulo.com/create-rounded-uiviews-with-shadow#comments</comments>
		<pubDate>Sun, 03 Oct 2010 18:15:46 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Tips and tricks]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[delegate]]></category>
		<category><![CDATA[round]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[SubView]]></category>
		<category><![CDATA[UIView]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[window]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=381</guid>
		<description><![CDATA[So here is small tip how to create rounded UIViews with shadow. Create simple Window-based Application with name TestApp. Click on File-&#62;New file and select Objective-C class with UIView subclass and name it MyView Now open MyView.m and edit initWithFrame &#8230; <a href="http://blog.amarkulo.com/create-rounded-uiviews-with-shadow">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So here is small tip how to create rounded UIViews with shadow.</p>
<ul>
<li>Create simple Window-based Application with name TestApp.</li>
<li>Click on File-&gt;New file and select Objective-C class with UIView subclass and name it MyView</li>
<li>Now open MyView.m and edit initWithFrame part with this code</li>
</ul>
<p><code>- (id)initWithFrame:(CGRect)frame {<br />
if ((self = [super initWithFrame:frame])) {<br />
// Initialization code<br />
[self setBackgroundColor:[UIColor blackColor]];<br />
[self setAlpha:1];<br />
[[self layer] setCornerRadius:8];<br />
[[self layer] setMasksToBounds:NO];<br />
[[self layer] setShadowColor:[UIColor blackColor].CGColor];<br />
[[self layer] setShadowOpacity:1.0f];<br />
[[self layer] setShadowRadius:6.0f];<br />
[[self layer] setShadowOffset:CGSizeMake(0, 3)];<br />
}<br />
return self;<br />
}</code></p>
<ul>
<li>Now add #import &lt;QuartzCore/QuartzCore.h&gt; line to your MyView.m</li>
<li>Open TestAppAppDelegate.m and add #import &#8220;MyView.h&#8221; file</li>
<li>Now in application didFinishLaunching add folowing code</li>
</ul>
<p><code> MyView *roundedView = [[[MyView alloc] initWithFrame:CGRectMake(100, 100, 100, 150)] autorelease];<br />
[window addSubview:roundedView];</code></p>
<ul>
<li>Save and run and you should have rounded black view on the main window, now add other subviews or modify by your will</li>
</ul>
<p>Here is <a class="downloadlink" href="http://blog.amarkulo.com/wp-content/plugins/download-monitor/download.php?id=7" title=" downloaded 446 times" >TestApp.zip (446)</a> ready for download.</p>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/create-rounded-uiviews-with-shadow/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ad Hoc profiles and application distribution via web</title>
		<link>http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web</link>
		<comments>http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web#comments</comments>
		<pubDate>Thu, 16 Sep 2010 21:22:16 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ad]]></category>
		<category><![CDATA[adhoc]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[builder]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[hoc]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[profile]]></category>
		<category><![CDATA[provisioning]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=365</guid>
		<description><![CDATA[Note: Check this post for new details how to setup ad hoc profiles over web for beta testing. So after several hours of try and fail I have succeeded finally with distribution of Ad Hoc signed applications for beta testing &#8230; <a href="http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Note: Check <a title="Ad Hoc distribution revised" href="http://blog.amarkulo.com/ad-hoc-distribution-over-web-revised">this post</a> for new details how to setup ad hoc profiles over web for beta testing.</p>
<p>So after several hours of try and fail I have succeeded finally with distribution of Ad Hoc signed applications for beta testing via web. What does this mean? It means that now I have a way to distribute application without asking user to copy provisioning profile and application file to iTunes and then sync iPhone with it. Now, only thing that they need to do is to click on the link in e-mail, which will open website on device and there they can click to install application and profile on the iPhone.</p>
<p>Now I&#8217;m going to describe whole procedure for this and I will include some screenshots from iPhone and mac during the process.</p>
<ul>
<li>Start with XCode closed.</li>
<li>The first step is to create distribution certificate for signing Ad Hoc provisioning profiles.</li>
<li>Open Keychain Access from finder or from Applications -&gt; Utilities</li>
<li>Now in Keychain Access open Certificate Assistant &#8211; &gt; Request a certificate from a certificate authority</li>
</ul>
<p style="text-align: center;">
<div id="attachment_366" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/Request-certificate.png"><img class="size-medium wp-image-366 " title="Request certificate from certificate authority" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/Request-certificate-300x110.png" alt="Request certificate from certificate authority" width="300" height="110" /></a><p class="wp-caption-text">Request certificate from certificate authority</p></div>
<ul>
<li>Fill e-mail address and Common Name and save it to disk</li>
</ul>
<div id="attachment_368" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/Certificate-assistant.png"><img class="size-medium wp-image-368" title="Certificate assistant" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/Certificate-assistant-300x212.png" alt="" width="300" height="212" /></a><p class="wp-caption-text">Certificate assistant</p></div>
<ul>
<li>Log in to <a title="iOS Provisioning Portal" href="https://developer.apple.com/ios/manage/certificates/team/distribute.action">iOS Provisioning Portal</a> and upload certificate request on portal</li>
<li>Refresh site after minute or two and then download certificate</li>
</ul>
<div id="attachment_369" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/create-distribution-certificate.png"><img class="size-medium wp-image-369" title="Create distribution certificate" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/create-distribution-certificate-300x217.png" alt="" width="300" height="217" /></a><p class="wp-caption-text">Create distribution certificate</p></div>
<ul>
<li>When you download it double click on it to import it to Keychain Access</li>
<li>Now you are ready for the next step. Open <a title="iOS Provisioning Portal - Provisioning profiles" href="https://developer.apple.com/ios/manage/provisioningprofiles/viewDistributionProfiles.action">iOS Provisioning Portal &#8211; Provisioning profiles</a> and create new profile</li>
<li>Select Ad Hoc for distribution method, write profile name, select App ID for targeted application and select on which devices you are going to distribute application for test. Now click on Submit button.</li>
</ul>
<div id="attachment_371" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/create-ad-hoc-provisioning-profile.png"><img class="size-medium wp-image-371" title="Create iOS Ad Hoc distribution profile" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/create-ad-hoc-provisioning-profile-300x224.png" alt="" width="300" height="224" /></a><p class="wp-caption-text">Create iOS Ad Hoc distribution profile</p></div>
<ul>
<li>Again refresh site after couple of a seconds and download provisioning profile.</li>
<li>Now double click on the provisioning profile to install it in XCode. XCode organiser will open and show provisioning profile in the list of profiles</li>
<li>It&#8217;s time to prepare application for distribution.</li>
<li>Open project and open project info.</li>
<li>Select configurations tab, chose Release configuration, click on duplicate button and name it Ad Hoc or whatever you like</li>
</ul>
<div id="attachment_372" class="wp-caption aligncenter" style="width: 282px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/Duplicate-configuration.png"><img class="size-medium wp-image-372" title="Duplicate release configuration" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/Duplicate-configuration-272x300.png" alt="" width="272" height="300" /></a><p class="wp-caption-text">Duplicate release configuration</p></div>
<ul>
<li>Go back on Build tab and select Ad Hoc configuration</li>
<li>Find Code Signing, double click on Entitlements value field and write Entitlements.plist there</li>
<li>Now under Code Signing Identity check if right Provisioning profile is selected (the one that you have created and imported on the beginning)</li>
</ul>
<div id="attachment_373" class="wp-caption aligncenter" style="width: 282px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/Code-signing.png"><img class="size-medium wp-image-373" title="Code signing" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/Code-signing-272x300.png" alt="" width="272" height="300" /></a><p class="wp-caption-text">Code signing</p></div>
<ul>
<li>Close project info</li>
<li>Now under the Group &amp; Files click on the Project name and add new file</li>
<li>In file menu chose Code Signing and select Entitlements as file type, name it as Entitlements.plist and save under the root</li>
<li>Open Entitlements.plist and under the root add one boolean value with name get-task-allow and leave it as unchecked (false)</li>
</ul>
<div id="attachment_374" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/Entitlements_plist.png"><img class="size-medium wp-image-374" title="Create entitlements.plist file under root" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/Entitlements_plist-300x66.png" alt="" width="300" height="66" /></a><p class="wp-caption-text">Create entitlements.plist file under root</p></div>
<ul>
<li>Chose Ad Hoc configuration and Device instead simulator</li>
<li>Open Build menu and select Build and Archive</li>
<li>When the project build is done XCode Organizer will open automatically and show Project name with one archived build under it</li>
<li>Click on that build and select share application</li>
<li>Confirm identity as iPhone Distribution and profile that you have created last and select save to disk to save .ipa file</li>
<li>Now in order to continue you need to downloade <a title="iOS Beta Builder" href="http://www.hanchorllc.com/2010/08/24/introducing-ios-beta-builder/">iOS Beta Builder</a> by Hunter</li>
<li>Open iOS Beta builder and select the .ipa file that you have saved in the previous step or drag and drop it on Beta Builder</li>
<li>Beta Builder will fill out all fields for you except web address of the server where you will have files uploaded</li>
<li>When you write URL click on Generate Deployment Files and choose destination directory</li>
<li>Now when files are saved you can upload all files to some web server and give the link to the beta testers</li>
<li>All they need to do now is to click on the link on iPhone and then in Safari to click on Install link to install application and provisioning profile</li>
</ul>
<div id="attachment_376" class="wp-caption aligncenter" style="width: 210px"><a href="http://blog.amarkulo.com/new/wp-content/uploads/2010/09/Download-application.png"><img class="size-medium wp-image-376" title="Download application" src="http://blog.amarkulo.com/wp-content/uploads/2010/09/Download-application-200x300.png" alt="" width="200" height="300" /></a><p class="wp-caption-text">Download application</p></div>
<p>I hope that I have helped a bit with Ad Hoc profiles and distribution of applications for your beta testers.</p>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Debugging EXEC_BAD_ACCESS on iPhone</title>
		<link>http://blog.amarkulo.com/debugging-exec_bad_access-on-iphone</link>
		<comments>http://blog.amarkulo.com/debugging-exec_bad_access-on-iphone#comments</comments>
		<pubDate>Thu, 15 Jul 2010 08:50:57 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[bad]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[codza]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[exec_bad_access]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=359</guid>
		<description><![CDATA[Last night I had a problem with application crashing without obvious reason, I didn&#8217;t change much in code (I thought so). So a bit googling and I found solution written by codza how to debug this and find the source &#8230; <a href="http://blog.amarkulo.com/debugging-exec_bad_access-on-iphone">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last night I had a problem with application crashing without obvious reason, I didn&#8217;t change much in code (I thought so). So a bit googling and I found solution written by <a title="Codza" href="http://www.codza.com/">codza</a> how to debug this and find the source of the error.</p>
<p>Here is <a title="codza - how to debug EXEC_BAD_ACCESS" href="http://www.codza.com/how-to-debug-exc_bad_access-on-iphone">link</a> to his blog post.</p>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/debugging-exec_bad_access-on-iphone/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UIImageView is moving view to 0,0</title>
		<link>http://blog.amarkulo.com/uiimageview-is-moving-view-to-00</link>
		<comments>http://blog.amarkulo.com/uiimageview-is-moving-view-to-00#comments</comments>
		<pubDate>Fri, 02 Jul 2010 12:14:02 +0000</pubDate>
		<dc:creator>amar</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[addSubview]]></category>
		<category><![CDATA[didFinishLaunching]]></category>
		<category><![CDATA[didFinisLaunchingWithOptions]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[SubView]]></category>
		<category><![CDATA[UIApplication]]></category>
		<category><![CDATA[UIImage]]></category>
		<category><![CDATA[UIImageView]]></category>
		<category><![CDATA[UIView]]></category>
		<category><![CDATA[XCode]]></category>

		<guid isPermaLink="false">http://blog.amarkulo.com/?p=355</guid>
		<description><![CDATA[Today I had weird problem while creating one iPhone application. I have created one UIView and added one UIImageView to it and loaded it with Default.png image, but when starting the program whole view is moved up for 20px, it&#8217;s &#8230; <a href="http://blog.amarkulo.com/uiimageview-is-moving-view-to-00">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I had weird problem while creating one iPhone application.</p>
<p>I have created one UIView and added one UIImageView to it and loaded it with Default.png image, but when starting the program whole view is moved up for 20px, it&#8217;s y reference is starting from 0 instead from 20, so here is how to fix it easily.</p>
<p>In application didFinishLaunching delegate add following code before [window makeKeyAndVisible]; and after [window addSubview:yourView];</p>
<blockquote><p>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {</p>
<p>[window addSubview:yourView];<br />
<strong>[yourView</strong><strong> setFrame:CGRectMake(0, 20, 320, 460)];</strong> // so you are creating frame which x starts on 0, y starts on 20px and with dimensions 320px x 460px<br />
[window makeKeyAndVisible];</p>
<p>return YES;<br />
}</p></blockquote>
<hr>
<p><div class="entry-utility">If you don't already have a <a href="http://db.tt/aqrG0tY">Dropbox</a> account then you can create it by clicking on my <a href="http://db.tt/aqrG0tY">affiliate link</a>. You will receive 2GB free account + 250 MB extra and I will receive 250 MB as well. Win-Win :-)</div></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.amarkulo.com/uiimageview-is-moving-view-to-00/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

