1

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

Rich95
  • 199
  • 1
  • 3
  • 18
  • What Adobe product is the plugin for? – Eljay Aug 20 '20 at 02:14
  • related: https://stackoverflow.com/a/5706800/4641116 – Eljay Aug 20 '20 at 02:34
  • It's for After Effects. The link you provided says you must use the archive method to produce a release build. So the other two methods won't produce release builds? – Rich95 Aug 20 '20 at 02:45
  • I don't see where it says to use an archive method. It says to edit the current scheme and for Build Configuration choose "Release". – Eljay Aug 20 '20 at 02:53
  • Also the After Effects webpage has a link to its plug-in documentation: https://www.adobe.io/apis/creativecloud/aftereffects.html – Eljay Aug 20 '20 at 02:54
  • The link you provided regarding release mode is for compiling for IOS, whereas I am compiling for MacOS. Does that matter? – Rich95 Aug 20 '20 at 04:56
  • And I'd still like to understand why there are three different methods of compiling for release mode (as pointed out in my message according to the different threads), and which are correct / incorrect. – Rich95 Aug 20 '20 at 04:58
  • *Product > Archive > Export > Save for Ad Hoc Deployment ...* is creating an **ad hoc deployment** (i.e., is suitable for internal distribution within your company). *Product > Build For > Profiling* is creating a symbolicated build that is suitable for **profiling** purposes. Editing the scheme for the Build Configuration **Release** is for creating a release build. – Eljay Aug 20 '20 at 11:46
  • Hi Eljay - I tried to follow your directions tonight. I went to Project -> Scheme -> Edit Scheme and under Build Configuration, where it says Debug, I tried to change it. But there is no other option. It only has 'Debug' in there. What am I missing? – Rich95 Aug 21 '20 at 01:28

0 Answers0