How to create an iPhone mach-o file?

2019-09-22 06:22发布

How can I create a HelloWorld iPhone mach-o file?

I want to test it on my jailbreak iPhone.

Help me please!!!

2条回答
啃猪蹄的小仙女
2楼-- · 2019-09-22 06:34

I found this when I googled around on the web for you.

http://mobiforge.com/developing/story/getting-started-with-iphone-development

It talks about how to create your first "Hello World" application.

查看更多
【Aperson】
3楼-- · 2019-09-22 06:47

Here's the documentation for the Mach-O format from Apple:

http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html

I assume since you're asking this way that you're trying to build one manually without the normal toolchain? I can't give you any specifics on the jailbreak part of it.

The Xcode toolchain will output binaries for iOS, of course. If you build your project inside of Xcode, you can go into:

~/Library/Developer/Xcode/DerivedData/<your project directory>/Build/Products/

You'll find folders for each target. In each one is a "bundle" that is meant to be deployed to the device. Inside that bundle is an executable file with the name of the project. That's the binary.

查看更多
登录 后发表回答