<p>If I create an application on my Mac, is there any way I can get it to run on an iPhone without going through the app store?</p>

<p>It doesn't matter if the iPhone has to be jailbroken, as long as I can still run an application created using the official SDK. For reasons I won't get into, I can't have this program going through the app store.</p>

[{'answer_id': 37476, 'author': 'Robert Höglund', 'author_id': 143, 'author_profile': 'https://Stackoverflow.com/users/143', 'pm_score': 4, 'selected': False, 'text': '<p>Yes, once you have joined the iPhone Developer Program, and paid Apple $99, you can provision your applications on up to 100 iOS devices.</p>\n'}, {'answer_id': 37522, 'author': 'Jason Weathered', 'author_id': 3736, 'author_profile': 'https://Stackoverflow.com/users/3736', 'pm_score': 9, 'selected': True, 'text': '<h1>Official Developer Program</h1>\n\n<p>For a standard iPhone you\'ll need to pay the US$99/yr to be a member of the developer program. You can then use the adhoc system to install your application onto up to 100 devices. The developer program has the details but it involves adding UUIDs for each of the devices to your application package. UUIDs can be easiest retrieved using <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=285691333&amp;mt=8" rel="noreferrer">Ad Hoc Helper</a> available from the App Store. For further details on this method, see Craig Hockenberry\'s <a href="http://furbo.org/2008/08/06/beta-testing-on-iphone-20/" rel="noreferrer">Beta testing on iPhone 2.0</a> article</p>\n\n<h1>Jailbroken iPhone</h1>\n\n<p>For jailbroken iPhones, you can use the following method which I have personally tested using the <a href="http://developer.apple.com/iphone/library/samplecode/AccelerometerGraph/index.html" rel="noreferrer">AccelerometerGraph</a> sample app on iPhone OS 3.0.</p>\n\n<h2>Create Self-Signed Certificate</h2>\n\n<p>First you\'ll need to create a self signed certificate and patch your iPhone SDK to allow the use of this certificate:</p>\n\n<ol>\n<li><p>Launch Keychain Access.app. With no items selected, from the Keychain menu select Certificate Assistant, then Create a Certificate.</p>\n\n<p>Name: iPhone Developer<br>\nCertificate Type: Code Signing<br>\nLet me override defaults: Yes  </p></li>\n<li><p>Click Continue</p>\n\n<p>Validity: 3650 days</p></li>\n<li><p>Click Continue</p></li>\n<li><p>Blank out the Email address field.</p></li>\n<li><p>Click Continue until complete.</p>\n\n<p>You should see "This root certificate is not trusted". This is expected.</p></li>\n<li><p>Set the iPhone SDK to allow the self-signed certificate to be used:</p>\n\n<blockquote>\n  <p>sudo /usr/bin/sed -i .bak \'s/XCiPhoneOSCodeSignContext/XCCodeSignContext/\' /Developer/Platforms/iPhoneOS.platform/Info.plist</p>\n</blockquote>\n\n<p>If you have Xcode open, restart it for this change to take effect.</p></li>\n</ol>\n\n<h2>Manual Deployment over WiFi</h2>\n\n<p>The following steps require <code>openssh</code>, and <code>uikittools</code> to be installed first. Replace <code>jasoniphone.local</code> with the hostname of the target device.  Be sure to set your own password on both the <code>mobile</code> and <code>root</code> users after installing SSH.</p>\n\n<p>To manually compile and install your application on the phone as a system app (bypassing Apple\'s installation system):</p>\n\n<ol>\n<li><p>Project, Set Active SDK, Device and Set Active Build Configuration, Release.</p></li>\n<li><p>Compile your project normally (using Build, not Build &amp; Go).</p></li>\n<li><p>In the <code>build/Release-iphoneos</code> directory you will have an app bundle. Use your preferred method to transfer this to /Applications on the device.</p>\n\n<blockquote>\n  <p><code>scp -r AccelerometerGraph.app root@jasoniphone:/Applications/</code></p>\n</blockquote></li>\n<li><p>Let SpringBoard know the new application has been installed:</p>\n\n<blockquote>\n  <p><code>ssh mobile@jasoniphone.local uicache</code></p>\n</blockquote>\n\n<p>This only has to be done when you add or remove applications. Updated applications just need to be relaunched.</p></li>\n</ol>\n\n<p>To make life easier for yourself during development, you can setup SSH key authentication and add these extra steps as a custom build step in your project.</p>\n\n<p>Note that if you wish to remove the application later you cannot do so via the standard SpringBoard interface and you\'ll need to use SSH and update the SpringBoard:</p>\n\n<pre><code>ssh root@jasoniphone.local rm -r /Applications/AccelerometerGraph.app &amp;&amp;\nssh mobile@jasoniphone.local uicache\n</code></pre>\n'}, {'answer_id': 305227, 'author': 'August', 'author_id': 30966, 'author_profile': 'https://Stackoverflow.com/users/30966', 'pm_score': 2, 'selected': False, 'text': "<p>It's worth noting that if you go the jailbroken route, it's possible (likely?) that an iPhone OS update would kill your ability to run these apps. I'd go the official route and pay the $99 to get authorized. In addition to not having to worry about your apps being clobbered, you also get the opportunity (should you choose) to release your apps on the store.</p>\n"}, {'answer_id': 2009704, 'author': 'Rev316', 'author_id': 67075, 'author_profile': 'https://Stackoverflow.com/users/67075', 'pm_score': 1, 'selected': False, 'text': '<p>*Changes/Notes to make this work for <strong>Xcode 3.2.1</strong> and <strong>iPhone SDK 3.1.2</strong></p>\n\n<p>Manual Deployment over WiFi</p>\n\n<p>2) Be sure to restart Xcode after modifying the Info.plist</p>\n\n<p>3) The "uicache" command is not found, using killall -HUP SpringBoard worked fine for me.</p>\n\n<p>Other then that, I can confirm this works fine.</p>\n\n<p>Mac users, using PwnageTool 3.1.4 worked great for Jailbreaking (DL via torrent).</p>\n'}, {'answer_id': 2671953, 'author': 'Mattias Wadman', 'author_id': 56686, 'author_profile': 'https://Stackoverflow.com/users/56686', 'pm_score': 1, 'selected': False, 'text': '<p>If you patch <code>/Developer/Platforms/iPhoneOS.platform/Info.plist</code> and then try to debug a application running on the device using a real development provisionen profile from Apple it will probably not work. Symptoms are weird error messages from <code>com.apple.debugserver</code> and that you can use any bundle identifier without getting a error when building in Xcode. The solution is to restore <code>Info.plist</code>.</p>\n'}, {'answer_id': 2671990, 'author': 'ohho', 'author_id': 88597, 'author_profile': 'https://Stackoverflow.com/users/88597', 'pm_score': 4, 'selected': False, 'text': '<ul>\n<li>Build your app</li>\n<li>Upload to a crack site</li>\n<li>(If you app is good enough) the crack version will be posted minutes later and ready for everyone to download ;-)</li>\n</ul>\n'}, {'answer_id': 4423913, 'author': 'Richard J. Ross III', 'author_id': 427309, 'author_profile': 'https://Stackoverflow.com/users/427309', 'pm_score': 3, 'selected': False, 'text': '<p>With the help of <a href="http://www.iphonedevx.com/?p=59" rel="nofollow">this post</a>, I have made a script that will install via the app Installous for rapid deployment:</p>\n\n<pre><code># compress application.\n/bin/mkdir -p $CONFIGURATION_BUILD_DIR/Payload\n/bin/cp -R $CONFIGURATION_BUILD_DIR/MyApp.app $CONFIGURATION_BUILD_DIR/Payload\n/bin/cp iTunesCrap/logo_itunes.png $CONFIGURATION_BUILD_DIR/iTunesArtwork\n/bin/cp iTunesCrap/iTunesMetadata.plist $CONFIGURATION_BUILD_DIR/iTunesMetadata.plist\n\ncd $CONFIGURATION_BUILD_DIR\n\n# zip up the HelloWorld directory\n\n/usr/bin/zip -r MyApp.ipa Payload iTunesArtwork iTunesMetadata.plist\n</code></pre>\n\n<p>What Is missing in the post referenced above, is the iTunesMetadata. Without this, Installous will not install apps correctly. Here is an example of an iTunesMetadata:</p>\n\n<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;\n&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;\n&lt;plist version="1.0"&gt;\n&lt;dict&gt;\n    &lt;key&gt;appleId&lt;/key&gt;\n    &lt;string&gt;&lt;/string&gt;\n    &lt;key&gt;artistId&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n    &lt;key&gt;artistName&lt;/key&gt;\n    &lt;string&gt;MYCOMPANY&lt;/string&gt;\n    &lt;key&gt;buy-only&lt;/key&gt;\n    &lt;true/&gt;\n    &lt;key&gt;buyParams&lt;/key&gt;\n    &lt;string&gt;&lt;/string&gt;\n    &lt;key&gt;copyright&lt;/key&gt;\n    &lt;string&gt;&lt;/string&gt;\n    &lt;key&gt;drmVersionNumber&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n    &lt;key&gt;fileExtension&lt;/key&gt;\n    &lt;string&gt;.app&lt;/string&gt;\n    &lt;key&gt;genre&lt;/key&gt;\n    &lt;string&gt;&lt;/string&gt;\n    &lt;key&gt;genreId&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n    &lt;key&gt;itemId&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n    &lt;key&gt;itemName&lt;/key&gt;\n    &lt;string&gt;MYAPP&lt;/string&gt;\n    &lt;key&gt;kind&lt;/key&gt;\n    &lt;string&gt;software&lt;/string&gt;\n    &lt;key&gt;playlistArtistName&lt;/key&gt;\n    &lt;string&gt;MYCOMPANY&lt;/string&gt;\n    &lt;key&gt;playlistName&lt;/key&gt;\n    &lt;string&gt;MYAPP&lt;/string&gt;\n    &lt;key&gt;price&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n    &lt;key&gt;priceDisplay&lt;/key&gt;\n    &lt;string&gt;nil&lt;/string&gt;\n    &lt;key&gt;rating&lt;/key&gt;\n    &lt;dict&gt;\n        &lt;key&gt;content&lt;/key&gt;\n        &lt;string&gt;&lt;/string&gt;\n        &lt;key&gt;label&lt;/key&gt;\n        &lt;string&gt;4+&lt;/string&gt;\n        &lt;key&gt;rank&lt;/key&gt;\n        &lt;integer&gt;100&lt;/integer&gt;\n        &lt;key&gt;system&lt;/key&gt;\n        &lt;string&gt;itunes-games&lt;/string&gt;\n    &lt;/dict&gt;\n    &lt;key&gt;releaseDate&lt;/key&gt;\n    &lt;string&gt;Sunday, December 12, 2010&lt;/string&gt;\n    &lt;key&gt;s&lt;/key&gt;\n    &lt;integer&gt;143441&lt;/integer&gt;\n    &lt;key&gt;softwareIcon57x57URL&lt;/key&gt;\n    &lt;string&gt;&lt;/string&gt;\n    &lt;key&gt;softwareIconNeedsShine&lt;/key&gt;\n    &lt;false/&gt;\n    &lt;key&gt;softwareSupportedDeviceIds&lt;/key&gt;\n    &lt;array&gt;\n        &lt;integer&gt;1&lt;/integer&gt;\n    &lt;/array&gt;\n    &lt;key&gt;softwareVersionBundleId&lt;/key&gt;\n    &lt;string&gt;com.mycompany.myapp&lt;/string&gt;\n    &lt;key&gt;softwareVersionExternalIdentifier&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n    &lt;key&gt;softwareVersionExternalIdentifiers&lt;/key&gt;\n    &lt;array&gt;\n        &lt;integer&gt;1466803&lt;/integer&gt;\n        &lt;integer&gt;1529132&lt;/integer&gt;\n        &lt;integer&gt;1602608&lt;/integer&gt;\n        &lt;integer&gt;1651681&lt;/integer&gt;\n        &lt;integer&gt;1750461&lt;/integer&gt;\n        &lt;integer&gt;1930253&lt;/integer&gt;\n        &lt;integer&gt;1961532&lt;/integer&gt;\n        &lt;integer&gt;1973932&lt;/integer&gt;\n        &lt;integer&gt;2026202&lt;/integer&gt;\n        &lt;integer&gt;2526384&lt;/integer&gt;\n        &lt;integer&gt;2641622&lt;/integer&gt;\n        &lt;integer&gt;2703653&lt;/integer&gt;\n    &lt;/array&gt;\n    &lt;key&gt;vendorId&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n    &lt;key&gt;versionRestrictions&lt;/key&gt;\n    &lt;integer&gt;0&lt;/integer&gt;\n&lt;/dict&gt;\n&lt;/plist&gt;\n</code></pre>\n\n<p>Obviously, replace all instances of MyApp with the name of your app and MyCompany with the name of your company.</p>\n\n<p>Basically, this will install on any jailbroken device with Installous installed. After it is set up, this results in very fast deployment, as it can be installed from anywhere, just upload it to your companies website, and download the file directly to the device, and copy / move it to <code>~/Documents/Installous/Downloads</code>.</p>\n'}, {'answer_id': 6786506, 'author': 'David Airapetyan', 'author_id': 497403, 'author_profile': 'https://Stackoverflow.com/users/497403', 'pm_score': 2, 'selected': False, 'text': '<p>After copying the the app to the iPhone in the way described by @Jason Weathered, make sure to "chmod +x" of the app, otherwise it won\'t run.</p>\n'}, {'answer_id': 32204476, 'author': 'qqbenq', 'author_id': 1552016, 'author_profile': 'https://Stackoverflow.com/users/1552016', 'pm_score': 3, 'selected': False, 'text': '<p>With the upcoming Xcode 7 it\'s now possible to install apps on your devices without an apple developer license, so now it is possible to <em>skip</em> the app store and you don\'t have to jailbreak your device.</p>\n<blockquote>\n<p><strong>Now everyone can get their app on their Apple device.</strong></p>\n<p>Xcode 7 and\nSwift now make it easier for everyone to build apps and run them\ndirectly on their Apple devices. Simply sign in with your Apple ID,\nand turn your idea into an app that you can touch on your iPad,\niPhone, or Apple Watch. Download Xcode 7 beta and try it yourself\ntoday. Program membership is not required.</p>\n</blockquote>\n<p>Quoted from: <a href="https://developer.apple.com/xcode/" rel="noreferrer">https://developer.apple.com/xcode/</a></p>\n<p><strong>Update:</strong></p>\n<p>XCode 7 is now released:</p>\n<blockquote>\n<p><strong>Free On-Device Development</strong>\nNow everyone can run and test their own app\non a device—for free. You can run and debug your own creations on a\nMac, iPhone, iPad, iPod touch, or Apple Watch without any fees, and no\nprograms to join. All you need to do is enter your free Apple ID into\nXcode. You can even use the same Apple ID you already use for the App\nStore or iTunes. Once you’ve perfected your app the Apple Developer\nProgram can help you get it on the App Store.</p>\n<p>See <a href="https://developer.apple.com/library/prerelease/ios/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html#//apple_ref/doc/uid/TP40012582-CH27" rel="noreferrer">Launching Your App on Devices</a> for detailed information about\ninstalling and running on devices.</p>\n</blockquote>\n'}]
['https://Stackoverflow.com/questions/37464', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/752/']