开发者

Writing a LaunchDaemon for iPhone

[JAILBROKE] I've googled, but i can't find any guides on how to write a LaunchDaemon. This is for the iPhone, so it'll be in Objective-C. I know Objective-C well, i just need some kind of guide to get me started.

I know 开发者_如何转开发how to write the daemon .plist, what i mean is- how to write the binary that the .plist runs, eg: usr/bin/myBinary

Would it be the same as usual? int main (int argc, const char* argv[]) sort of thing?


You can't unless you jailbreak your iPhone.

Once jailbroken, any executable file specified in the plist would be run. You can use whatever methods to write it. Read launchd.plist documentation. There's no contract between the system and the daemon in addition to what's written there. Write it as you wish. Even a script (not a combined binary) should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜