projectGenerator icon indicating copy to clipboard operation
projectGenerator copied to clipboard

macOS default to Release instead of Debug

Open dimitre opened this issue 1 year ago • 3 comments

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

dimitre avatar Apr 30 '23 22:04 dimitre

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.

2bbb avatar May 01 '23 00:05 2bbb

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.

dimitre avatar May 01 '23 16:05 dimitre

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.

danomatika avatar Nov 16 '23 22:11 danomatika