试图在我的越狱iphone上部署我的应用程序,但该应用程序立即关闭! [英] Attempting to deploy my app on my jailbroken iphone, but the app closes immediately!

查看:124
本文介绍了试图在我的越狱iphone上部署我的应用程序,但该应用程序立即关闭!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的越狱iphone上开发iphone应用程序,我似乎无法让这个过程失效,因为每当我部署我的应用程序时,将所有文件权限设置为777,并且重新启动,应用程序立即关闭我试着发动它。此外,它没有iphone模拟器中的自动光泽xcode显示,所以给出了什么?

I'm trying to develop iphone apps on my jailbroken iphone, and I can't seem to get the process down, for whenever I deploy my app, set all file permissions to 777, and respring, the application closes immediately when I try to launch it. Furthermore, it does not have the auto-gloss xcode shows in the iphone simulator, so what gives?

我通过钥匙串访问生成了证书并添加了两个密钥对于REQUIREPROVISIONING和ALLOWPROVISIONING(两个值都没有),然后在xcode中设置相应的证书,但当我尝试在手机上运行时,应用程序仍会立即关闭。

I've generated the cert via keychain access and added the two keys for REQUIREPROVISIONING and ALLOWPROVISIONING (both values no), and then set the appropriate cert in xcode, but the application still closes immediately when I attempt to run it on my phone.

给出了什么?

推荐答案

我遇到了同样的问题,ldid对我来说根本不起作用。这是我的解决方案:

I had the same issue, ldid did not work for me at all. Here's my solution:


  1. 在Mac上打开钥匙串访问

  2. 在菜单中,转到钥匙串访问 - >证书助理 - >创建证书

  3. 将其命名为Cydia Developer或其他,输入自签名root并选中让我覆盖默认值。

  4. 您需要在向导中设置的唯一选项是将证书类型更改为代码签名。单击继续或输入所需信息。

  5. 创建后,在Keychain Access的证书列表中找到它,然后右键单击 - >获取信息,在信任更改使用此证书时 永远信任。

  6. 在XCode中编写一个iPhone应用程序。将项目 - >项目设置 - >构建 - >代码签名识别 - >任何iPhone设备更改为不代码签名。

  7. 使用为iPhone设备而不是模拟器设置的Active SDK编译程序。忽略有关配置或签名的错误。

  8. 在可执行文件下,将新编译的应用程序拖到容易从终端到达的地方。

  9. 在终端中,运行'codesign -fs'Cydia Developer/ path/appname.app/appname'

  10. 以某种方式将你的应用程序接到手机上(ssh,cydia,teleportation,等等) )和中提琴!工作应用。

  1. Open Keychain Access on the Mac
  2. In the menu, go to "Keychain Access -> Certificate Assistant -> Create a Certification"
  3. Name it "Cydia Developer" or whatever, type is "self-signed root" and check "let me override defaults".
  4. The only option you need to set in the wizard is to change Certificate Type to "Code Signing". Click continue or enter your desired info for the rest.
  5. Once it's created, find it in Keychain Access's Certificates list and right click -> Get Info, under Trust change "When Using This Cert" to "Always Trust".
  6. Write an iPhone app in XCode. Change "Project->Project Settings->Build->Code Signing Ident->Any iPhone Device" to "Don't Code Sign".
  7. Compile the program with the Active SDK set for "iPhone Device" instead of "Simulator". Ignore the errors about provisioning or signing.
  8. Under "Executables", drag the newly compiled app to somewhere that is easy to get to from the terminal.
  9. In a terminal, run 'codesign -fs "Cydia Developer" /path/appname.app/appname'
  10. Somehow get your app to the phone (ssh, cydia, teleportation, whatever) and viola! Working app.

要使用Apple开发键进行部署,只需将项目构建代码签名标识设置为Apple开发者密钥的名称名称而不是不要编码标志。

To deploy with an Apple devel key, just set your project build code sign identity to the name of the Apple dev key name instead of "Don't code sign".

这篇关于试图在我的越狱iphone上部署我的应用程序,但该应用程序立即关闭!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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