什么是Xcode中的嵌入式二进制文件? [英] What are Embedded Binaries in Xcode?

查看:235
本文介绍了什么是Xcode中的嵌入式二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Swift项目中使用 Alamofire ,他们的部分手动安装说明是添加我的应用程序目标的常规选项卡中嵌入式二进制文件下的Alamofire。

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.

什么是嵌入式二进制文件

推荐答案

嵌入式二进制文件是二进制文件,在您构建项目时,这些二进制文件会复制到您的应用程序包中。当您的应用程序依赖第三方框架时,请使用嵌入式二进制文件,这样人们就可以使用您的应用程序而无需在计算机上安装这些框架。嵌入式二进制文件使用户不必手动安装第三方框架。您的应用程序使用您嵌入的框架。

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.

在您的Alamofire示例中,您的应用程序依赖Alamofire。如果您没有嵌入Alamofire框架,那么除非他们手动安装Alamofire,否则任何人都无法使用您的应用程序。通过将Alamofire嵌入您的应用程序,每个人都可以运行您的应用程序。

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.

这篇关于什么是Xcode中的嵌入式二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆