Search code examples
xcodeframeworksstatic-librariesdynamic-library

Link Binary with libraries VS Embed Frameworks


What's the difference in the build phases between putting a framework in "Link binary with libraries" or in "Embed frameworks"?


Solution

  • Link binary with libraries Link frameworks and libraries with your project’s object files to produce a binary file. You can link a target’s source files against libraries in the target’s active SDK or against external libraries.

    Embed Frameworks You can create an embedded framework to share code between your app extension and its containing app.

    -

    Timeline (Look at this sentence) - "If your containing app target links to an embedded framework, it must include the arm64 architecture or it will be rejected by the App Store."