How to create an iPhone mach-o file?

ぐ巨炮叔叔 提交于 2019-12-14 03:31:52

问题


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.



来源:https://stackoverflow.com/questions/7981952/how-to-create-an-iphone-mach-o-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!