SpyMachine
SpyMachine

Reputation: 470

Compile objective c into dylib

I have an Objective-C source file that I would like to compile as a dylib. I can't figure out how to do this anywhere. I don't care how to do it if it's Xcode or gcc, I just want it to compile.

Thanks!

Upvotes: 2

Views: 3483

Answers (3)

kokoabim
kokoabim

Reputation: 326

As @Fire30 touched on, iOSOpenDev extends Xcode to allow dylib compiling for the iOS platform. In fact, iOSOpenDev provides an Xcode template for this exact type of project.

Download it at http://iOSOpenDev.com.

Reference its wiki at https://github.com/kokoabim/iOSOpenDev/wiki/_pages.

Upvotes: 1

Fire30
Fire30

Reputation: 166

I would reccomend downloading IOSOpenDev. It sets everything up for jailbroken development.

Upvotes: 1

Nate
Nate

Reputation: 31045

You can do this with Xcode. Xcode is just set up by default to prevent you from doing it. You can modify some XML files after installing (Xcode), and then it will let you configure your project as a dynamic library, instead of a normal iOS app (or static library).

See this link for instructions

and also this other answer for some more information on this issue, including the full instructions contained on the link above (in case the link someday dies).

Upvotes: 3

Related Questions