We have an objc SDK installed through dependency manager cocoa pods which has some Swift code in it. When this SDK is integrated in our objc app, the app is required to enable the "Always Embed Swift Libraries" build setting. As per my understanding this build setting means that swift dylibs are copied inside the app’s Frameworks directory. That is indeed what is happening when I generate Development or Ad Hoc IPA and unzip the ipa file I see these swift dylibs inside Frameworks folder. Generated Development or Ad Hoc IPA is around 89 MB.
But, when a App Store IPA is generated, we have also noticed the addition of a folder called SwiftSupport inside the IPA. The folder adds almost 70 MB to IPA size. The swift dylibs inside Frameworks are still present seperately – they add around 10 MB to IPA. Now the total IPA size becomes around 165 mb. Appstore IPA structure
-
A) Can someone explain what is the purpose of SwiftSupport folder and why it is present only in AppStore IPA?
-
B) How to reduce the size of Appstore IPA ? Is there any settings in Xcode for not allowing SwiftSupport folder to generate?
-
C) Will Apple optimise the size of Appstore IPA containing SwiftSupport folder to reduce its size when available for download
for the users?
As per the review of my question it marked it as duplicate of avoid SwiftSupport folder in .ipa
But this question does not clarifies the purpose of the SwiftSupport folder, why it is generated and how it gets added in Appstore ipa and thus please make my question open again.




