如何为 Cydia 和越狱的 iPhone 开发应用程序
我开始为 iPhone 开发应用程序。 我想开发一个特定的应用程序,但苹果肯定会拒绝它,所以我想为 Cydia 开发它,因为我认为它很有用。
我试图弄清楚如何使用 Theos 和 XCode 来创建我的应用程序,但我什么都不懂。如果你们中的一些人能帮助我解决这个问题,我将非常高兴。
我已经安装了 Theos 和 Conor Burgess 的标头转储脚本,但我只是不知道如何开始做任何事情。我应该如何使用 XCode 和 Interface Builder 与 Theos 来创建我的应用程序?我有一台Mac,所以我不需要任何工具链在Windows上进行开发。我的 iPhone 也已越狱,并且我已经能够在 iPhone 上尝试我在 XCode 上开发的一些应用程序。
我应该遵循哪些步骤?我的意思是,如果你们中的一些人习惯于为 cydia 开发应用程序,你们会做什么?您使用 Theos 创建一个新模板,然后在 XCode 中打开您的 .mm 文件并创建 .xib 文件?然后当你完成后,你用XCode编译它吗?我应该使用 ldid 吗?有针对 n00bs 开发人员的指南吗?
我已经看到了 Theos 创建的模板,我想我需要应用程序模板,因为我需要一些用户界面,但也许我也需要调整...关于它的信息不多,我只是迷失了...
提前非常感谢大家! 此致!
I am starting to develop apps for iPhone.
There is 1 specific app that I'd like to develop, but Apple will for sure reject it, so I want to do it for Cydia, cause I think it is just useful.
I'm trying to figure out how to use Theos and XCode to create my app, but I can't understand anything. I would be very glad if some of you could help me with this.
I have already installed Theos, and the header-dump scripts from Conor Burgess, but I just don't know how to start doint anything. How should I use XCode and Interface Builder with Theos to create my app? I have a mac, so I don't need any toolchain to develop on Windows. I also have my iPhone jailbroken, and I have been able to try on the iPhone some apps I had developed on XCode.
Which steps should I follow? I mean, if some of you is used to develop apps for cydia, what do you do? You create a new template with Theos, and then open your .mm file in XCode and create the .xib file?? Then when you are done, you compile it with XCode? Should I use ldid? Is there any guide for n00bs developers?
I have seen the templates Theos creates, and I think I need the Application one, cause I need some user interface, but maybe I'll need tweak too... There is not much info about it, I am just lost...
Thank you all very much in advance!
Best regards!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Theos 应用程序模板将帮助您创建越狱应用程序,但如果不进行一些广泛的自省,您将无法使用 Interface Builder。 Theos 有一个模块可以让你将 xibs 编译为 nibs,但是 Interface Builder 很糟糕,无论如何都不应该用于任何用途。
此外,Theos 将处理编译,甚至使用 ldid 进行签名。您只需运行
make
来构建项目,然后运行 make package
将其打包到 .deb 中。您可以使用make install
将其安装到您的设备上。在代码中创建接口并不像看起来那么困难。
如果您需要进一步帮助,请查看 irc.saurik.com 上的 IRC 频道#theos。我常去那里,事实上,我是《Theos》的作者。
The Theos application template will help you create a jailbreak application, but you won't be able to use Interface Builder for it without some extensive introspection. There is a module for Theos that allows you to compile xibs to nibs, but Interface Builder is awful and should not really be used for anything anyway.
In addition, Theos is what will handle compilation, and even signing using
ldid
. You simply runmake
to build your project, and thenmake package
to package it in a .deb. You can install it to your device withmake install
.Creating interfaces in code is not as difficult as it might seem.
If you need further assistance, check out the IRC channel #theos at irc.saurik.com. I hang out there, and, in fact, I'm the author of Theos.