Xcode 中的 build 和 archive 有什么区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23240651/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is difference between build and archive in Xcode
提问by zhongyu
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.
我想构建一个框架,当我使用命令行使用 build 和 archive 编译项目时,结果是它们的大小不同。“构建”比存档大得多。
why?
为什么?
The command I use:
我使用的命令:
xcodebuild -target xx -configuration Release clean build UFW_ACTION=archive
xcodebuild -target xx -configuration Release clean build UFW_ACTION=archive
xcodebuild -scheme xx -configuration Release clean archive
xcodebuild -scheme xx -configuration Release clean archive
回答by Usman Awan
Build:The compilation for your source code to execute the project
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.
Build:编译源代码以执行项目
存档:顾名思义,它是整个包(包含 .app 和其他相关文件)。从存档中,您可以创建类似于 .apk 文件 (android) 的 .IPA 文件,您可以使用它来分发您的应用程序。
回答by trojanfoe
The archive (.ipa
) file is a zip file, which will account for the difference in size.
存档 ( .ipa
) 文件是一个 zip 文件,它将解释大小的差异。