简体   繁体   English

试图在越狱的iphone上部署我的应用程序,但该应用程序立即关闭!

[英]Attempting to deploy my app on my jailbroken iphone, but the app closes immediately!

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. 我正在尝试在越狱的iphone上开发iphone应用程序,但似乎无法停止该过程,因为每当我部署应用程序,将所有文件权限设置为777并重新启动时,当我尝试将iphone应用程序关闭时,该应用程序都会立即关闭启动它。 Furthermore, it does not have the auto-gloss xcode shows in the iphone simulator, so what gives? 此外,它在iPhone模拟器中没有自动光泽的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. 我已经通过钥匙串访问生成了证书,并添加了两个用于REQUIREPROVISIONING和ALLOWPROVISIONING的密钥(两个值均为no),然后在xcode中设置了适当的证书,但是当我尝试在手机上运行该应用程序时,该应用程序仍然会立即关闭。

What gives? 是什么赋予了?

I had the same issue, ldid did not work for me at all. 我遇到了同样的问题,ldid根本不适合我。 Here's my solution: 这是我的解决方案:

  1. Open Keychain Access on the Mac 在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". 将其命名为“ Cydia Developer”或其他名称,键入“ self-signed root”并选中“让我覆盖默认值”。
  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. 用XCode编写一个iPhone应用程序。 Change "Project->Project Settings->Build->Code Signing Ident->Any iPhone Device" to "Don't Code Sign". 将“项目->项目设置->构建->代码签名标识符->任何iPhone设备”更改为“不进行代码签名”。
  7. Compile the program with the Active SDK set for "iPhone Device" instead of "Simulator". 使用为“ iPhone设备”而不是“模拟器”设置的Active SDK编译程序。 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' 在终端中,运行“ codesign -fs“ Cydia Developer” /path/appname.app/appname“
  10. Somehow get your app to the phone (ssh, cydia, teleportation, whatever) and viola! 以某种方式将您的应用程序带到电话(ssh,cydia,远距传输等)和中提琴! Working app. 工作的应用程序。

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". 要使用Apple开发密钥进行部署,只需将项目构建代码符号标识设置为Apple开发人员密钥名称的名称,而不是“ Do n't code sign”。

Did you sign your app? 您是否签署了应用程序? I'm not sure if this is needed for Xcode apps, but to run Jailbreak-toolchain compiled apps you have to run ldid -S (as root) on the app executable (ex. MyApp.app/MyApp). 我不确定Xcode应用程序是否需要这样做,但是要运行Jailbreak-toolchain编译的应用程序,您必须在应用程序可执行文件(例如MyApp.app/MyApp)上运行ldid -S(作为根用户)。 This Thread may help: Thread 这个线程可以帮助: 螺纹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM