Cydia 应用程序启动后立即退出,使用 ldid 签名不起作用
事情是这样的,自从 iPhone OS 3.0 发布以来,我就一直在使用这个应用程序,现在我做了一些更改以利用 iOS4.x,并使用 xcode 3.2.3 针对 4.0 进行编译,我有 4 个越狱设备:
- 2 个 iPod touch 2G iOS 3.0
- 1 iPad iOS 3.2
- 1 iPhone 4G iOS 4.0
当我运行时从 xcode(带有 Apple 配置证书)进行调试,该应用程序在每台设备上都能正常运行。
当我尝试在运行 iOS3.0 的 iPod 中运行 ldid 签名的应用程序时,问题就出现了,这就是我所做的:
我通过 SSH 将我的应用程序复制到设备的 /Applications
文件夹中,然后执行 < code>chmod 755 、 ldid -S mybinary
和 respring,当我在 iOS 3.0 上启动应用程序时,它会立即关闭,就像未签名时一样,但它工作正常运行 3.2 和 4.0 的设备。
我删除了新的代码片段并使用旧的 xcode (3.2.2) 进行编译并执行相同的过程,它在 iOS 3.0 上运行。
我认为这与代码签名有关,因为它适用于苹果的证书以及运行 3.2 和 4.0 的设备,可能是由于越狱,因为我认为它禁用了代码签名检查。
针对 4.0 或 xcode 3.2.3 进行编译是否会干扰 ldid 签名? 您对于让它在 iOs 3.0+ 上运行有何想法?
Here's the deal, I had this app working since iPhone OS 3.0 came out, now I made some changes to take advantage of iOS4.x, and compiled against 4.0 with xcode 3.2.3, I have 4 jailbroken devices:
- 2 iPod touch 2G iOS 3.0
- 1 iPad iOS 3.2
- 1 iPhone 4G iOS 4.0
When I run & debug from xcode (with an Apple provisioning certificate) the app works fine on every device.
The problem comes when I try to run the ldid signed app in the iPods running iOS3.0, here's what I've done:
I copy my app thru SSH into the devices' /Applications
folder and do chmod 755
, ldid -S mybinary
and respring, when I launch the app on iOS 3.0 it closes inmediatly, as it does when it hasn't been signed, but it works fine with the devices running 3.2 and 4.0.
I removed the new pieces of code and compiled with old xcode (3.2.2) and did the same procedure, and it worked on iOS 3.0.
I think it's related to code signing cause it works with apple's certificate and with devices running 3.2 and 4.0, probably due to jailbreakme, since I think it disables codesign checks.
Does compiling against 4.0 or with xcode 3.2.3 interfere with ldid signing?
What are your thoughts on getting this to work on iOs 3.0+?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然 ldid 不喜欢使用 xcode 3.2.3 编译的二进制文件,我按照 这个答案并使其正常工作,非常感谢。
Apparently ldid doesn't like the binaries compiled with xcode 3.2.3, I followed the steps on this answer and got it working, thank you a lot.