1

Static framework become part of the executable, and are statically linked to client apps. What happens if I use a dynamic library when building a static framework? I think it's reasonable that the become executables.

As for dynamic framework, libraries are not part of the executable file. What happens if I use a static framework when building a dynamic framework?

1 Answer 1

0

The behaviour will depend on the configuration of the intended host.

If you built an app/framework using a dynamically library say ssl. Then you are assuming the intended host already has this ssl library, and the correct version, installed and available to the app. If it is not the app will not run.

If you use a statically linked library in your app/framework then the app will run regardless of the library being previously installed or not.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your explanation. Finally understood why it breaks if my host didn't use use_framework! because I used .tbd in my pods.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.