How to people run release?


#1

Hello, I’m just converting my code to Mac and I noticed there’s isn’t really a scheme for a release build from the Projucer. What do people compile for a public build of there project? And how do you go about stripping the code of symbols.

Are you using Archive?

Thanks for any Mac help here.
Dave H.


#2

In the Xcode exporter in the projucer there are the scheme settings for a debug and a release scheme. You can change the build scheme inside Xcode to produce the release build with all the optimisations


#3

I didn’t see that option. Many thanks.


#4

I created a little script, that calls:

xcodebuild -configuration Release -project Builds/MacOSX/$PLUGIN_NAME.xcodeproj

pkgbuild --identifier $IDENTIFIER.au --version $VERSION \
    --component $DIST_DIR/$PLUGIN_NAME.component \
    --install-location "$PLUGIN_DIR/Components" $DIST_DIR/$PLUGIN_NAME.au.pkg

productbuild --distribution Distribution.xml  \
    --resources . $PLUGIN_NAME-unsigned.pkg

productsign --sign "$SIGNATURE" $PLUGIN_NAME-unsigned.pkg $PLUGIN_NAME-$VERSION.pkg

you have to play around with the folder names to fit your needs…

That was easier than double checking each time, if all targets are switched correctly between Debug and Release