Important: Please read the Qt Code of Conduct -

Dynamic linking library on macbook.

  • Hi,
    I am planning to develop an application which runs on Macbook. What I heard is that Apple does not allow linking library dynamically. Does it mean I have to include 3rd party library statically all the time?

  • Lifetime Qt Champion


    No, that's wrong. on macOS it's rather the contrary especially if you want to go through the Mac App Store. IIRC, it should rather be one library per "functionality" e.g. network, file IO, etc.

    The static build was a requirement for iOS application before iOS 10 for which they have relaxed that rule.

  • @SGaist
    Do you mean I have to link 3rd party library dynamically to register on app store for Mac OSX or it does not matter whether linking statically or dynamically?

  • Lifetime Qt Champion

    Like I wrote, AFAIK, dynamic libraries are recommended.

    Note that nothing stops you from linking statically. You'll get a report from the App Store verifiers to tell you whether there's something wrong.

    Note that you also have to take into account the licenses of the libraries you are using and whether static linking has implication like it's the case with Qt.

  • @SGaist
    I see, Thank you.

Log in to reply