Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between build and archive in Xcode

Tags:

xcode

ios

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.

why?

The command I use:

xcodebuild -target xx -configuration Release clean build UFW_ACTION=archive

xcodebuild -scheme xx -configuration Release clean archive

like image 568
zhongyu Avatar asked Apr 23 '14 09:04

zhongyu


People also ask

Do I need to build before archive Xcode?

Make sure your build is successfulBefore beginning to archive your build, you need to make sure that the build is successful not only for Debug, for also for Release.

What is archiving in Xcode?

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.

What is archiving in iOS?

You can move messages to the Archive folder to help keep your inbox from getting too cluttered. Unlike messages you move to the Bin, archived messages remain in your Archive folder until you delete them. You can view the Archive folder in the Mailboxes list.


2 Answers

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.

like image 93
Usman Awan Avatar answered Sep 20 '22 23:09

Usman Awan


The archive (.ipa) file is a zip file, which will account for the difference in size.

like image 42
trojanfoe Avatar answered Sep 19 '22 23:09

trojanfoe