Xcode 中的 build 和 archive 有什么区别 [英] What is difference between build and archive in Xcode

查看:37
本文介绍了Xcode 中的 build 和 archive 有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想构建一个框架,当我使用命令行构建和归档编译项目时,结果是它们的大小不同.build"比存档大得多.

I want to build a framework, when I compiled the project using build and archive using command line,the result is different about their sizes. "build " is much larger than archive.

为什么?

我使用的命令:

xcodebuild -target xx -configuration 发布干净构建 UFW_ACTION=archive

xcodebuild -scheme xx -configuration 发布干净的存档

推荐答案

构建:编译源代码以执行项目

存档:顾名思义,它是整个包(包含 .app 和其他相关文件).您可以从存档中创建类似于 .apk 文件 (android) 的 .IPA 文件,您可以使用该文件分发您的应用程序.

Archive: As its name says, it is the overall package (that contains .app and other related files). From archive you can create .IPA file similar to .apk file (android) with that you can distribute your application.

这篇关于Xcode 中的 build 和 archive 有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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