Todor K.
Todor K.

Reputation: 651

How do I stop unneeded Swift standard libraries from being shipped with my project?

I started an Xcode project (iOS app) as a mixed Objective-C and Swift project, but now I've decided that all I need is Objective-C. How do I convert it back to a regular Objective-C project?

I've removed all swift code and the bridging header, but the status bar still shows "Copying Swift standard libraries" when launching the app. I don't want extra stuff in my app that I don't need. Thanks in advance.

Upvotes: 9

Views: 2348

Answers (2)

Borys Verebskyi
Borys Verebskyi

Reputation: 4278

For me, disabling "Embedded Content Contains Swift Code" (which was renamed to "Always Embed Swift Standard Libraries") did not make any difference.

After hitting my head against the wall several times, I found the source of an issue. Disabling "Always Embed Swift Standard Libraries" is still needed, but apart from it I need to disable "Find Implicit Dependencies" option in the Build panel of my Scheme.

Upvotes: 2

Vatsal
Vatsal

Reputation: 18191

Here's how to do it:

  • Go to Xcode's project navigator.
  • Click on your project.
  • Click on Build Settings.
  • Go to Bridge Options
  • Set Embedded Content Contains Swift Code to No.

Upvotes: 7

Related Questions