2

I've build an ipa package from my iOS app project. After open the .ipa file with zip. I find that here's so many swift support dynamic libraries.

enter image description here

I want to know what do libswiftFoundation.dylib and libswiftcore.dylib do?

AntiMoron
  • 1,286
  • 1
  • 11
  • 29
  • `libswiftcore` contains all the Swift functions and data structures. All the others are Swift versions of Obj-C standard libraries, e.g. `NSFoundation`, `UIKit`, `CoreGraphics` etc. – Sulthan Aug 11 '16 at 16:29
  • @Sulthan So swift re-implement those standard libraries instead of wrap them with a bunch of swift interfaces. Am I right? – AntiMoron Aug 12 '16 at 01:40

2 Answers2

1

libSwiftCore contains Swift standard library functions and structures. The size probably caused by embedded bitcode.

All the other files are the Swift wrappers for Objective-C libraries, e.g. NSFoundation, UIKit etc. I am surprised by the size of the Foundation wrapper but that's probably the most complex library there.

After switching to Xcode 7, app size grew from 9 MB to 60 MB, is there a fix? could be connected here.

Community
  • 1
  • 1
Sulthan
  • 128,090
  • 22
  • 218
  • 270
0

They are Swift standard libraries. Basically, that comes with swift like arrays, dictionaries etc.