projectGenerator
projectGenerator copied to clipboard
macOS default to Release instead of Debug
Usually it gets alphabetically, so Debug comes before Release
And "per user" configuration uses a folder with the user (macOS user) on it.
we can make it work using a function in the likes of string ofFilePath::getUserHomeDir()
but only returning the username instead of the full path.
maybe using fs::path operations.
the file containing this configuration lives in a file like this
AeroFractal.xcodeproj/project.xcworkspace/xcuserdata/z.xcuserdatad/UserInterfaceState.xcuserstate
and "z" is my username
In the first place, does it have to be default to "Release"? I think default is settled to "Debug" is better on Xcode GUI. because debug mode is better to develop.
and, I think what xcodebuild command uses "Release" as default makes sense.
Ah ok I thought Release could be a good default and Debug by choice, but maybe it is my personal preference. I've got used to use Release on OF because some slowness on ofxAssimpModelLoader Debug version.
Default to Debug is the general convention for Xcode. Building for "Release" is generally what you do when archiving a project for Export, the App Store, etc. Also, if you build for Release by default, most of the debugger will not work for you.