What are Embedded Binaries in Xcode?

Doug Richardson picture Doug Richardson · May 11, 2015 · Viewed 37k times · Source

I'm using Alamofire in a Swift project, and part of their manual installation instructions are to add Alamofire under Embedded Binaries in the General tab for my application target.

enter image description here

What are Embedded Binaries?

Answer

Mark Szymczyk picture Mark Szymczyk · May 11, 2015

Embedded binaries are binary files that are copied to your application bundle when you build the project. Use embedded binaries when your application relies on third-party frameworks so people can use your application without needing those frameworks installed on their machine. Embedded binaries keep users from having to manually install third-party frameworks. Your application uses the framework you embedded.

In your Alamofire example your application relies on Alamofire. If you didn't embed the Alamofire framework, nobody would be able to use your application unless they installed Alamofire manually. By embedding Alamofire with your application everyone can run your application.