Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS default to Release instead of Debug #364

Open
dimitre opened this issue Apr 30, 2023 · 3 comments
Open

macOS default to Release instead of Debug #364

dimitre opened this issue Apr 30, 2023 · 3 comments

Comments

@dimitre
Copy link
Member

dimitre commented Apr 30, 2023

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

@2bbb
Copy link
Contributor

2bbb commented May 1, 2023

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.

@dimitre
Copy link
Member Author

dimitre commented May 1, 2023

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.

@danomatika
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants