iPhone App Minus App Store? [英] iPhone App Minus App Store?

查看:116
本文介绍了iPhone App Minus App Store?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在Mac上创建一个应用程序,有没有办法可以让它在不通过应用程序商店的情况下在iPhone上运行?

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?

它没有'无论iPhone是否必须越狱,只要我仍然可以运行使用官方SDK创建的应用程序。由于我不打算进入的原因,我不能让这个程序通过应用商店。

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.

推荐答案

官方开发者计划



对于标准iPhone,您需要支付99美元/年才能成为开发者计划的成员。然后,您可以使用adhoc系统将应用程序安装到最多100台设备上。开发人员程序具有详细信息,但它涉及将每个设备的UUID添加到应用程序包中。可以使用 Ad Hoc Helper 轻松检索UUID a>可从App Store获得。有关此方法的更多详细信息,请参阅Craig Hockenberry的 iPhone上的Beta测试2.0 文章

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

对于越狱的iPhone,您可以使用以下方法已经在iPhone OS 3.0上使用 AccelerometerGraph 示例应用程序进行了个人测试。

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

首先,您需要创建自签名证书并修补iPhone SDK允许使用此证书:

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


  1. 启动Keychain Access.app。如果未选择任何项目,请从Keychain菜单中选择Certificate Assistant,然后选择Create a Certificate。

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

名称:iPhone开发者

证书类型:代码签名< br>
让我覆盖默认值:是

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

点击继续

有效期:3650天

点击继续

删空电子邮件地址字段。

Blank out the Email address field.

单击继续直到完成。

您应该看到此根证书不受信任。这是预期的。

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

设置iPhone SDK以允许使用自签名证书:

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

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

如果您打开Xcode,请重新启动它以使此更改生效。

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



通过WiFi手动部署



以下步骤需要 openssh uikittools 首先安装。将 jasoniphone.local 替换为目标设备的主机名。安装SSH后,请务必在 mobile root 用户上设置自己的密码。

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.

要在手机上手动编译和安装应用程序作为系统应用程序(绕过Apple的安装系统):

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


  1. 项目,设置活动SDK,设备和设置活动构建配置,发布。

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

正常编译项目(使用Build,而不是Build& Go)。

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

build / Release-iphoneos 目录中,您将拥有一个应用程序包。使用您首选的方法将其传输到设备上的/ Applications。

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 /


  • 让SpringBoard知道已安装新应用程序:

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

    为了让您在开发过程中更轻松,您可以设置SSH密钥身份验证并将这些额外的步骤添加为项目中的自定义构建步骤。

    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.

    请注意,如果您希望以后删除该应用程序,则无法通过标准SpringBoard接口删除该应用程序将需要使用SSH并更新SpringBoard:

    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 App Minus App Store?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆