如何将我的 .app 文件从 xcode 的 builds 文件夹复制/运行到我的 iphone 上的 /Applications 文件夹? (越狱)
所以我开发了一个应用程序。现在我手动将 .app 文件放入我的 iPhone(根目录)的 /Applications 文件夹中。比我做的:
听起来该应用程序不是 签署了。从 Cydia 下载 ldid 并 然后像这样使用它:ldid -S /Applications/AccelerometerGraph.app/AccelerometerGraph
还要确保二进制文件已标记 作为可执行文件:chmod +x /Applications/AccelerometerGraph.app/AccelerometerGraph
(via)
比我使用 UICache 使应用程序可见。如果我运行它,它会显示黑屏 1/4 秒,然后关闭...(我不是 iphone 开发计划的成员)。
我有什么错吗?
有更好的办法吗?
非常感谢! :)
so I've developed an app. Now I manually placed the .app file into the /Applications folder of my iphone (root). Than I did:
It sounds like the application isn't
signed. Download ldid from Cydia and
then use it like so: ldid -S
/Applications/AccelerometerGraph.app/AccelerometerGraphAlso be sure that the binary is marked
as executable: chmod +x
/Applications/AccelerometerGraph.app/AccelerometerGraph
(via)
Than I used UICache to make the app visible. And if I run it it shows a black screen for a 1/4 second and then it closes...(I'm not a member of the iphone dev program).
Did I something wrong?
Is there a better way?
Thank you very much! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚度过了一个完美的周六下午,寻找完全相同问题的解决方案。这是一个代码签名问题。
这是我使用的 Xcode4 和 iOS 4.3 SDK 。我正在构建一个运行 iOS 3.1.2(越狱)的 iphone 3G 的测试设备
注意:ldid 方法对我不起作用,并不断抛出以下错误(关于为什么它不起作用的一些详细信息我尝试通过xcode4使用armv6架构,但ldid仍然给出同样的错误):
codesign_allocate:对象:MyAppName.app/MyAppName 格式错误的对象(未知加载命令 4)
util/ldid.cpp(582): _assert(0:WEXITSTATUS(status) == 0)
这是对我有用的:
第 1 步:创建自签名证书。
via (注意:您不需要成为会员即使链接中接受的答案的标题可能表明这一点,iPhone 开发程序的功能也可以实现此目的)
第 2 步:设置 xCode 以允许使用自签名证书
第 3 步:更改项目中的代码签名身份设置
第 4 步:构建应用程序并部署
希望您的应用程序能够正常启动。我只在 xcode4 上尝试过这个,所以不确定它是否适用于旧版本。
I just spent a perfect Saturday afternoon looking for a solution to the exact same problem. It is a code signing problem.
Here is what I was using Xcode4 and iOS 4.3 SDK . I was building to a test device an iphone 3G running iOS 3.1.2 (jailbroken)
NOTE: ldid method did not work for me and kept on throwing the following error (Some Details on why its not working I tried using armv6 architecture through xcode4 but ldid still gave the same error):
codesign_allocate: object: MyAppName.app/MyAppName malformed object (unknown load command 4)
util/ldid.cpp(582): _assert(0:WEXITSTATUS(status) == 0)
Here is what worked for me:
Step 1. Create a Self Signed Certificate.
via (note: you dont need to be a member of the iphone dev program to make this work even though the title of the accepted answer in the link might suggest that)
Step 2. Set xCode to allow the self-signed certificate to be used
Step 3. Change the Code Signing Identity setting in your project
Step 4. Build the App and Deploy
Hopefully your app will launch fine. I have only tried this with xcode4 so not sure if it will work for older versions.