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

查看:29
本文介绍了iPhone App 减去 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 美元才能成为开发者计划的成员.然后,您可以使用临时系统将您的应用程序安装到最多 100 台设备上.开发人员计划有详细信息,但它涉及将每个设备的 UUID 添加到您的应用程序包中.使用 Ad Hoc Helper 可从 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,您可以使用以下我亲自测试过的方法,使用 AccelerometerGraph iPhone OS 3.0 上的示例应用.

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.没有选择任何项目,从钥匙串菜单中选择证书助手,然后创建证书.

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

名称:iPhone 开发者
证书类型:代码签名
让我覆盖默认值:是

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 手动部署

以下步骤需要先安装opensshuikittools.将 jasoniphone.local 替换为目标设备的主机名.安装 SSH 后,请务必为 mobileroot 用户设置自己的密码.

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):

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

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