Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift libraries included twice in IPA

Tags:

xcode

swift

ipa

I discovered that all the Swift libraries (libswiftCore.dylib, libswiftCoreGraphics.dylib,...) exist twice in the IPA. After decompressing the IPA, there is one version of theses libraries inside the folder SwiftSupport and the same files again inside Payload/Frameworks.

As far as I found out, the SwiftSupport folder is always generted by Xcode when a Swift-project is built. But where do the Swift libraries in Payload/Frameworks come from and how can I get rid of them?

like image 714
Apfelsaft Avatar asked Nov 10 '14 08:11

Apfelsaft


1 Answers

I think that if your code already uses Swift, you have no set the Flag "Embedded Content contains Swift code" in Build Options to NO, otherwise Xcode will add the libraries because it thinks that you use some frameworks that have swift code

like image 152
Ramon Canales Avatar answered Sep 28 '22 03:09

Ramon Canales