Swift: does Swift in iOS project use libswiftCore.dylib package in ipa file?

I only add one Swift class to my iOS project and after zip the ipa file I see a 6MB file named libswiftCore.dylib

under the named folder Frameworks

, this will make my ipa file larger, is there any way to exclude this libswiftCore.dylib

file?

+3


source to share


1 answer


Yes, there is currently no way to submit an app that uses swift without an additional dylib.



The reason is that the internals of the swift runtime / std library are not yet complete, so to avoid backward compatibility issues between different versions, a specific version of the dynamic link library must be shipped with every application that uses swift. This should be fixed in the future.

+3


source







All Articles