2

How to not automatically embed Swift dynamic libraries in Xcode 8?

I've tried setting ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to "No" (defaults to "No" anyway) yet it still copies Swift dynamic libraries into the app bundle.

I'm creating a helper application to be embedded in the main application and the latter already has Swift libraries which the former can link to.

adib
  • 8,285
  • 6
  • 52
  • 91

1 Answers1

0

Swift may still be copied even for ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES set to NO. You can check if there is some Swift file in your project or any of your dependencies and remove those.

atineoSE
  • 3,597
  • 4
  • 27
  • 31
  • The question is for **not embedding** Swift libraries for a Swift target. – adib Sep 07 '17 at 09:41
  • In that case I think it is embedded even when setting `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` to NO because it is a standalone target and therefore it would need the libraries to be runnable. You may want to try to create the embedded app as a library/framework. Would that help? – atineoSE Sep 07 '17 at 09:47
  • But would creating the app as a library/framework prevent the app from launching as it's not an executable? Note that a framework's bundle's structure is vastly different than an app bundle. – adib Sep 07 '17 at 10:19
  • That I don't know, sorry. – atineoSE Sep 07 '17 at 11:54