xcode 如何在启动时启动 iOS 应用程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3110839/
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 19:29:04  来源:igfitidea点击:

How do I launch an iOS app upon startup?

iphonexcodeipadios4jailbreak

提问by Thomas

I am working on a project where the iPad will be used for a specific purpose, and only run one app. When the device starts up, I want my app to run, and I want to override the home button so that it does not quit the app (like the iPhone/ iPod demos in the store).

我正在从事一个项目,其中 iPad 将用于特定目的,并且只运行一个应用程序。当设备启动时,我希望我的应用程序运行,并且我想覆盖主页按钮,以便它不会退出应用程序(如商店中的 iPhone/iPod 演示)。

I have seen bits and pieces of this functionality, but am unsure how to implement it. I realize that it would have to be on a jailbroken device, and the client is fine with that.

我已经看到了这个功能的点点滴滴,但我不确定如何实现它。我意识到它必须在越狱的设备上,并且客户端可以接受。

Any ideas?

有任何想法吗?

Thanks!
Thomas

谢谢!
托马斯

Edit 1: I found this site, which explains some iOS daemons. I'm still researching, so I'll just keep posting what I find.

编辑 1:我找到了这个站点,它解释了一些 iOS 守护进程。我还在研究中,所以我会继续发布我的发现。

Edit 2: I found Saurik's IRC channel and asked around in there. One of the participants told me that it is possible, but probably not as simple as I thought. I am still doing some digging around in the iPhone 3G filesystem now just to get the feel of what certain things do.

编辑 2:我找到了 Saurik 的 IRC 频道并在那里四处询问。一位参与者告诉我这是可能的,但可能不像我想象的那么简单。我现在仍然在 iPhone 3G 文件系统中做一些挖掘,只是为了了解某些事情的作用。

The project has been scrapped, but I'm still looking for help on this though....just cuz I'm interested lol.

该项目已被废弃,但我仍在寻求这方面的帮助....只是因为我很感兴趣,哈哈。

回答by Thomas

Here'smy progress on the issue. Question's still not completely answered, but I'm making some headway :-)

这是我在这个问题上的进展。问题仍未完全回答,但我正在取得一些进展:-)

I've been researching Jailbreakand the iOS filesystem as well. That has helped my understanding of the issue some.

我也一直在研究越狱和 iOS 文件系统。这对我对这个问题的理解有所帮助。

回答by Peter Fortuin

Without jailbreaking this would not be possible.

如果没有越狱,这是不可能的。

回答by Mike

There has to be something in /etc somewhere that runs through all the things that start up, just like on Linux. It so happens that my current ipod touch has a WALD screen after me manually deleting a few mp3 files. Some anti mp3 mocking code policing it, and not liking me touching the mp3 file structures... otherwise I'd look for you right now.

/etc 中必须有一些东西贯穿所有启动的东西,就像在 Linux 上一样。碰巧的是,在我手动删除了几个 mp3 文件后,我当前的 ipod touch 有一个 WALD 屏幕。一些反 mp3 模拟代码对其进行监管,并且不喜欢我接触 mp3 文件结构……否则我现在就去找你。

Do you know how to ssh into your ipod/iphone?

您知道如何通过 ssh 连接到您的 ipod/iphone 吗?

回答by ygbr

Well, I believe Apple itself uses this on the iPads running at the Apple Stores (those showing animations about the products where you can ask to talk with a blue shirt).

好吧,我相信 Apple 本身在 Apple Stores 上运行的 iPad 上使用了它(那些展示关于产品的动画,你可以要求穿着蓝色衬衫说话)。

I would look for something on the official IPCU (iPhone Configuration Utility) to check if there is an option for auto-loading apps on boot time.

我会在官方 IPCU(iPhone 配置实用程序)上寻找一些东西,以检查是否有在启动时自动加载应用程序的选项。

If not, try to get friends with someone working on an Apple Store and get some hints on how they run their app on those iPads.

如果没有,请尝试与在 Apple Store 工作的人交朋友,并获得有关他们如何在这些 iPad 上运行应用程序的一些提示。

回答by bahar_p

you can add the "voip" key in the information plist. This is backed up by Apple: enter image description here

您可以在信息 plist 中添加“voip”键。这是由Apple支持的: 在此处输入图片说明

You can also see this sample project: https://github.com/lithium3141/BootLaunch

你也可以看到这个示例项目:https: //github.com/lithium3141/BootLaunch

PB.

铅。