I want to add a library to my Swift project. I found 3 different places to add.
I want to know the correct way to do this and the purpose of each one.
General tab
select the target -> general
- Embed binaries
- Linked frameworks and libraries
Build phase
select the target -> build phase
- Embed frameworks
- link binary with libraries
New copy file phase
select the target -> click on + button -> select "New copy file phase"
- choose the destination as a framework
- select the framework
Questions
- When do I need to "Embed binaries" and "Linked frameworks and libraries"? and when do I need to do the build phase one?
- Do I need to do multiple of these things to add a framework?
- What is the difference between them?