在没有开发人员程序iOS 5.1的设备上安装iOS应用程序

问题描述:

我正在尝试将iOS应用安装到运行iOS 5.1的设备上。
它目前还没有越狱,但如果这就是我要做的事情。

I'm trying to install my iOS app on to my device running iOS 5.1. It's not currently jailbreaked but if that's what it takes I'll do that.

当我运行iOS 5.0.1时,我遵循了这个主题:如何将iPhone应用程序从Xcode部署到真正的iPhone设备?并创建自签名证书,这就像一个魅力。

When i was running iOS 5.0.1 I followed this thread: How can I deploy an iPhone application from Xcode to a real iPhone device? and created a self-signed certificate, that worked like a charm.

我更新到Xcode 4.3.2和iOS 5.1后无法使其工作

I'm not able to get it working after updating to Xcode 4.3.2 and iOS 5.1

我也尝试过这个帖子,但没有成功:在没有苹果开发者计划或越狱的设备上测试iOS应用程序

I'v also tried following this thread but with no success: Test iOS app on device without apple developer program or jailbreak

那么如何安装我的应用程序Xcode 4.3.2到运行iOS 5.1的iPhone 4,没有成为开发者计划的成员?

编辑:
我现在能够将应用程序放到iPhone上。但是,当我尝试启动它们时,它们会崩溃,甚至启动图像都不会出现。我已经越狱了设备,安装了Appsync,编辑了SDKSettings.plist并将构建属性更改为Do not code Sign。

I am now able to get the applications on to the iPhone. But when i try to start them they crash, not even the launch image comes up. I've Jailbroken the device, installed Appsync, edited the SDKSettings.plist and changed the build properties to "Don't code Sign".

这是控制台给出的内容当我尝试启动应用程序时,我没有在Xcode中获得任何崩溃日志:

This is what the console gives me when i try to start the app, i'm not getting any crash log in Xcode:

May  8 18:25:35 unknown SpringBoard[54] <Warning>: Unable to obtain a task name port right for pid 1017: (os/kern) failure
May  8 18:25:35 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.KerschApps.Test[0x2fa8]) Exited: Killed: 9
May  8 18:25:35 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.KerschApps.Test[0x2fa8]) Throttling respawn: Will start in 2147483647 seconds
May  8 18:25:35 unknown SpringBoard[54] <Warning>: Application 'Test' exited abnormally with signal 9: Killed: 9
May  8 18:25:36 unknown kernel[0] <Debug>: AMFI: hook..execve() killing pid 1017: no code signature

为什么我的所有应用程序在模拟器中运行正常时会在iPhone中崩溃吗?

谢谢/添加

我遇到了与你完全相同的问题,使用Xcode 4.3.2在iOS 5.1上运行应用程序,我只是设法让它在这里使用这种方法几乎完美地运行:

I've had exactly the same problem as you, getting apps running on iOS 5.1 with Xcode 4.3.2 and I've just managed to get it working almost perfectly using this method here:

使用Xcode 4.3.2构建适用于iOS 5.1的应用程序

它基于这个来自iPhone Dev wiki ,但我不得不包括一些改动 - - gta开关导致构建错误,并且指令不完全明确。完整的教程在博客文章中,但步骤基本上是:

It's based on this one from iPhone Dev wiki, but I had to include some alterations - the -gta switch results in a build error, and the instructions aren't exactly explicit. The complete tutorial is in that blog post, but the steps basically are:


  1. 创建名为'iPhone Developer'的自签名证书

  2. 重新打开Xcode项目构建设置中的代码签名身份 - 使用自签名证书'iPhone Developer'

  3. 更改info.plist事件如上所述

  4. 下载ldid,生成可执行文件

  5. 创建python脚本,将其粘贴在/ usr / bin中,相应地更改python脚本引用

  6. 更改iPhoneCodeSign.xcspec以使用ldid3.py

  7. 通过触摸ssh在设备上创建tdmtanf文件

  8. 不要在'其他代码签名标志'中放置-gta标志

  1. Create self-signed certificate with name 'iPhone Developer'
  2. Turn 'Code Signing Identities' in Xcode project Build Settings back on - to use your self-signed certificate 'iPhone Developer'
  3. Change info.plist occurrences as stated
  4. Download ldid, make executable
  5. Create python script, stick it in /usr/bin, change python script references accordingly
  6. Change iPhoneCodeSign.xcspec to use ldid3.py
  7. Create tdmtanf file on device with touch over ssh
  8. Don't put -gta flags in 'Other Code Signing Flags'

我碰巧使用Unity进行调试,因此缺少使用-gta进行Xcode调试没有打扰我 - 显然,Objective C开发人员将需要这个功能,所以希望有人可以扩展它,如果他们让它工作。我目前正在我的iPhone上使用我的应用程序开发版本的5.1,并且手指交叉你可以得到相同的结果。

I happen to use Unity for debugging so the lack of Xcode debugging with -gta didn't bother me - obviously Objective C developers will need this functionality, so hopefully someone can expand on this if they get it working. I'm currently playing with a dev build of my app on my iPhone on 5.1, and fingers cross you can get the same result.