iPhone App Minus App Store?

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?

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.


Official Developer Program

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 Ad Hoc Helper available from the App Store. For further details on this method, see Craig Hockenberry's Beta testing on iPhone 2.0 article

Jailbroken iPhone

For jailbroken iPhones, you can use the following method which I have personally tested using the AccelerometerGraph sample app on iPhone OS 3.0.

Create Self-Signed Certificate

First you'll need to create a self signed certificate and patch your iPhone SDK to allow the use of this certificate:

  • Launch Keychain Access.app. With no items selected, from the Keychain menu select Certificate Assistant, then Create a Certificate.

    Name: iPhone Developer
    Certificate Type: Code Signing
    Let me override defaults: Yes

  • Click Continue

    Validity: 3650 days

  • Click Continue

  • Blank out the Email address field.

  • Click Continue until complete.

    You should see "This root certificate is not trusted". This is expected.

  • Set the iPhone SDK to allow the self-signed certificate to be used:

    sudo /usr/bin/sed -i .bak 's/XCiPhoneOSCodeSignContext/XCCodeSignContext/' /Developer/Platforms/iPhoneOS.platform/Info.plist

    If you have Xcode open, restart it for this change to take effect.

  • Manual Deployment over WiFi

    The following steps require openssh , and uikittools to be installed first. Replace jasoniphone.local with the hostname of the target device. Be sure to set your own password on both the mobile and root users after installing SSH.

    To manually compile and install your application on the phone as a system app (bypassing Apple's installation system):

  • Project, Set Active SDK, Device and Set Active Build Configuration, Release.

  • Compile your project normally (using Build, not Build & Go).

  • In the build/Release-iphoneos directory you will have an app bundle. Use your preferred method to transfer this to /Applications on the device.

    scp -r AccelerometerGraph.app root@jasoniphone:/Applications/

  • Let SpringBoard know the new application has been installed:

    ssh mobile@jasoniphone.local uicache

    This only has to be done when you add or remove applications. Updated applications just need to be relaunched.

  • 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.

    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:

    ssh root@jasoniphone.local rm -r /Applications/AccelerometerGraph.app &&
    ssh mobile@jasoniphone.local uicache
    

    是的,一旦你加入了iPhone开发者计划,并支付99美元的Apple,你就可以在最多100个iOS设备上配置你的应用程序。


  • Build your app
  • Upload to a crack site
  • (If you app is good enough) the crack version will be posted minutes later and ready for everyone to download ;-)
  • 链接地址: http://www.djcxy.com/p/26374.html

    上一篇: 如何检查iOS或MacOS上的活动Internet连接?

    下一篇: iPhone App Minus App Store?