This repository has been archived by the owner on Jun 20, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The .ipa of a Swift application must contain a "SwiftSupport" directory
with all the runtime libraries required by Swift (even though they are
already included in the application bundle's "Frameworks" directory).
This step is NOT done by Xcode. The "Organizer" does that when someone
exports the application for distribution to iTunes Connect.
By inspecting the .ipa produced by the Organizer, we see that the SHA1
of all Swift runtime libraries in the "SwiftSupport" directory
are different from the ones inside the app bundle's "Frameworks"
directory. They seem to come from Xcode's toolchain directory instead.
This commit tries to match the behavior of the Organizer by doing the
following (after the PackageApplication step):
which runtime libraries we need (if any)
a temporary directory with the required directory structure.