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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).