How to create dylib on iPhone

Discussion in 'iOS Programming' started by shweta13, Sep 18, 2008.

  1. shweta13 macrumors member

    Joined:
    Aug 7, 2008
    #1
    HI all,

    I am developing an iPhone application. I need to put some of the code in a dylib and link it to my application project.
    How do I create dylib using xcode and how do I link it to my application?

    Thanks for ur help in advance :)
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    iPhone apps cannot link to any additional libraries or frameworks unless those are compiled into the main executable.
     
  3. shweta13 thread starter macrumors member

    Joined:
    Aug 7, 2008
    #3

    Ok...so basically I cannot make any third party dylib files and include in my iphone app...but I can use already existing dylibs in my appln..right?
    Is it tht the app store doesn't approve the third party dylibs?
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    You can use anything in the public frameworks. You cannot use any private frameworks. I'm not 100% sure what the status is with non-framework library code in dylibs already on the system.

    The relevant section of the SDK agreement is 3.3.2. I suggest you read and ensure you understand it. I can't post it here due to the NDA (and the fact that my stupid work PC won't let me copy the text out of the PDF). I would suggest that it indicates any app that tries to use install frameworks or library code will be rejected.
     
  5. shweta13 thread starter macrumors member

    Joined:
    Aug 7, 2008
    #5
    ok...got it...thanks a lot for ur help..:)
     

Share This Page