xcode 如何为 Cydia 和越狱的 iPhone 开发应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6788207/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:32:33  来源:igfitidea点击:

How to develop an app for Cydia and jailbroken iPhones

iphonexcodejailbreakcydia

提问by RayJaKen

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.

我开始为 iPhone 开发应用程序。我想开发 1 个特定的应用程序,但 Apple 肯定会拒绝它,所以我想为 Cydia 开发,因为我认为它很有用。

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.

我想弄清楚如何使用 Theos 和 XCode 来创建我的应用程序,但我什么也不懂。如果你们中的一些人能帮助我,我会很高兴。

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.

我已经安装了 Theos 和 Conor Burgess 的 header-dump 脚本,但我不知道如何开始做任何事情。我应该如何将 XCode 和 Interface Builder 与 Theos 结合使用来创建我的应用程序?我有一台 mac,所以我不需要任何工具链在 Windows 上进行开发。我的 iPhone 也越狱了,我可以在 iPhone 上试用我在 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?

我应该遵循哪些步骤?我的意思是,如果你们中的一些人习惯于为 cydia 开发应用程序,你们会怎么做?您使用 Theos 创建一个新模板,然后在 XCode 中打开您的 .mm 文件并创建 .xib 文件?然后当你完成后,你用XCode编译它?我应该使用 ldid 吗?是否有针对 n00bs 开发人员的指南?

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

我看过 Theos 创建的模板,我想我需要应用程序,因为我需要一些用户界面,但也许我也需要调整......关于它的信息不多,我只是迷路了......

Thank you all very much in advance! Best regards!

非常感谢大家提前!此致!

回答by Dustin Howett

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.

Theos 应用程序模板将帮助您创建一个越狱应用程序,但如果没有一些广泛的内省,您将无法使用 Interface Builder。Theos 有一个模块允许您将 xibs 编译为 nibs,但是 Interface Builder 很糟糕,无论如何都不应该真正用于任何事情。

In addition, Theos is what will handle compilation, and even signing using ldid. You simply run maketo build your project, and then make packageto package it in a .deb. You can install it to your device with make install.

此外,Theos 将处理编译,甚至使用ldid. 您只需运行make以构建您的项目,然后make package将其打包到 .deb 中。您可以使用 将其安装到您的设备上make 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.

如果您需要进一步的帮助,请查看 irc.saurik.com 上的 IRC 频道 #theos。我在那里闲逛,事实上,我是 Theos 的作者。