0

I have moved some of my code from my main application to a Swift Package. But I noticed a slow down.

I have set the Build Configuration to Release in the scheme configuration, but it does not seem to be used when building the package.

So the same code in the main application will run much faster than in the package because it's optimised.

What could I be doing wrong? What configuration should I check?

I am using the Xcode 14.0.1 and I put a very small example project in github

Brice
  • 75
  • 2
  • 7
  • What exactly do you want to achieve? Run the app (including your package) in the release mode from Xcode? – lazarevzubov Dec 18 '22 at 09:14
  • Yes. Some of the swift code is very slow when not optimised, So I created a specific Scheme that turns on Release, so I can build and install on my test device the optimised version for testing and get decent speed. – Brice Dec 18 '22 at 11:05

0 Answers0