Rich95
Rich95

Reputation: 343

How to compile in Release Mode on MacOS XCode?

I have developed some Adobe plugins for PC and successfully compiled them in release mode using VSC++. Now I'm attempting to do the same on Mac - compile them for MacOS, using XCode 11.

I have done a lot of research but I still can't get an official answer. I want to make sure I am compiling in release mode as opposed to debug mode for distribution.

This thread says to do so by selecting "Product" Menu => "Build For" => "Profiling" - How to toggle running Xcode project in debug or release mode by using only shortcut keys?.

This thread says (and a few others) to select "Product => Archive" It seems to be for IOS but probably applies to MacOS as well - How do I create a release build in Xcode?

Finally, this thread (and several others) say to Edit the Scheme - https://pinkstone.co.uk/deploying-your-app-from-xcode-to-a-device-with-release-build-configuration/

As you can see there is a lot of conflicting information. I have been following the first thread and selecting "Product" Menu => "Build For" => "Profiling". I distributed the plugin to some testers and it worked on their machines. But I want to be 100% sure, especially for the speed gain in release mode.

Could someone please offer some guidance to this so that we have it clearly answered for all?

Also, is there a way to check if your compiled project is in debug or release mode once compiled?

Thanks in advance,

-Richard

Upvotes: 1

Views: 1120

Answers (0)

Related Questions