-->

How to create an iPhone mach-o file?

2019-09-22 05:56发布

问题:

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

I want to test it on my jailbreak iPhone.

Help me please!!!

回答1:

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.



回答2:

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.