Reputation: 10208
What is the difference between an IPA file and an .xcarchive?
Which one do I have to create to upload an app using Xcode's Application Loader?
Upvotes: 46
Views: 33149
Reputation: 28838
.xcarchive
, which can be used to create an .ipa
and sent to App Store Connect.TLDR: .xcarchive
is intermediary step for you, and an .ipa
can be used for uploads to the App Store.
.xcarchive
:xc
is a hint that its for Xcode, not users. (e.g. other files for Xcode: .xcodeproj
, .xcworkspace
).ipa
: iOS Packaged AppAfter generating your .xcarchive
and you can find it in Windows > Organizer > Archives
, you can click Distribute app
> App Store Connect
> Export
, which creates this, which you would upload to App Store Connect:
To investigate whats in the .ipa
, you can rename the .ipa
file into a .zip
and extract it. You'll find the following directory structure:
Upvotes: 10
Reputation: 6401
Difference between IPA and .xcarchive:
IPA is a zipped up Payload folder which has YourApp.app bundle. .app contains all your application resources like images, plist files, compressed nibs and the executable, CodeSigning resources,etc.
xcarchive contains your app and dsym files. .DSYM is required to desymbolicate your crash logs. Right click on saved .xcarchive and select show package contents to see what it contains.
Upvotes: 55