Duplicate swift dylibs packaged in IPA

Originator:kramgopal
Number:rdar://33467408 Date Originated:
Status: Resolved:
Product:Xcode Product Version:8.3.3
Classification: Reproducible:ALWAYS
 
Summary:
We have a swift app that also links against Swift frameworks. We have ALWAYS_EMBED_SWIFT_LIBRARIES set to no on all our embedded frameworks and YES on the app target.

In the generated IPA we see two copies of identical swift runtime dylibs.

- One under SwiftSupport/iphoneos
- Another under Payload/Frameworks

We added a manual build step to remove the libraries in SwiftSupport/iphoneos to bring our app size down, and there were no issues in our enterprise dev/builds. However, submission to AppStore fails with an error that a SwiftSupport folder was not found.

We see that after processing there is just 1 copy of the swift dylibs packaged in the app (within Frameworks and not within SwiftSupport). 

Is this a bug in the tooling that publishes duplicate copies to the IPA or is this intentional?

Steps to Reproduce:
Create a swift app linking against an embedded swift framework. Set ALWAYS_EMBED_SWIFT_LIBRARIES to no on the embedded framework and YES on the app target.

Build an IPA

Expected Results:
Only one copy of the swift runtime dylibs should show up in the IPA

Observed Results:
There are two copies of identical swift runtime dylibs in the IPA.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!