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

发布于 2024-08-02 05:28:51 字数 310 浏览 4 评论 0原文

我正在尝试在我的越狱 iPhone 上开发 iPhone 应用程序,但我似乎无法完成该过程,因为每当我部署应用程序、将所有文件权限设置为 777 并重新启动时,当我尝试执行以下操作时,应用程序会立即关闭启动它。此外,它没有在 iphone 模拟器中显示的 auto-gloss xcode,那又是什么呢?

我已经通过钥匙串访问生成了证书,并添加了 REQUIREPROVISIONING 和 ALLOWPROVISIONING 的两个密钥(两个值均为 no),然后在 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?

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.

What gives?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尘曦 2024-08-09 05:28:51

我遇到了同样的问题,ldid 根本不适合我。这是我的解决方案:

  1. 在 Mac 上打开钥匙串访问
  2. 在菜单中,转到“钥匙串访问 -> 证书助手 -> 创建证书”
  3. 将其命名为“Cydia Developer”或其他名称,输入“自签名根”并检查“让我覆盖默认值”。
  4. 您需要在向导中设置的唯一选项是将证书类型更改为“代码签名”。单击继续或输入您所需的信息以完成其余操作。
  5. 创建完成后,在钥匙串访问的证书列表中找到它,然后右键单击 ->获取信息,在“信任”下将“使用此证书时”更改为“始终信任”。
  6. 在 XCode 中编写 iPhone 应用程序。将“项目->项目设置->构建->代码签名标识->任何 iPhone 设备”更改为“不进行代码签名”。
  7. 使用设置为“iPhone 设备”而不是“模拟器”的 Active SDK 来编译程序。忽略有关配置或签名的错误。
  8. 在“可执行文件”下,将新编译的应用程序拖到易于从终端访问的位置。
  9. 在终端中,运行 'codesign -fs "Cydia Developer" /path/appname.app/appname'
  10. 以某种方式将您的应用程序连接到手机(ssh、cydia、隐形传送等)和 viola!工作应用程序。

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

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

  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.

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

乖不如嘢 2024-08-09 05:28:51

您签署了您的应用程序吗?我不确定 Xcode 应用程序是否需要这样做,但要运行越狱工具链编译的应用程序,您必须在应用程序可执行文件(例如 MyApp.app/MyApp)上运行 ldid -S (以 root 身份)。此主题可能会有所帮助:主题

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). This Thread may help: Thread

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文