Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mysticwater

macrumors newbie
Original poster
Feb 26, 2011
2
0
Hi,

I was just wondering if anyone has encountered the same problem and if someone can help me out...

I finished coding a c++ application using xcode. I have written the plist file and all other necessary files. Now I want to change the build mode to release so that the app can be a standalone app and does not have to be compiled in Xcode every-time for it to run.

I figured that to do this I have to change the build mode from debug to release however, I have searched everywhere for the release mode option. It doesn't show up! I only see the debug mode field everywhere and there are no other options...

Any thoughts or solutions?
 
It should be in the left-most pop-up menu of the main window toolbar.

If it's not there, it can be recreated by going into Project | Edit Project Settings. Then in the Configurations tab, duplicating the current (Debug?) configuration and customising.

There's not that much difference between these two configurations. The release configuration builds fat binary for PPC, x86 and x86_64 architectures, turns on optimisations and inhibits the production of the debug symbols.

There may be a few more differences. You check them out by creating a new project, and comparing the two configurations under the Build tab after Project | Edit Project Settings.

BTW A debug build isn't intrinsically tied to XCode. It could be freely run outside of XCode. It just wouldn't be optimised code.
 

Attachments

  • Screen shot 2011-02-27 at 18.51.12.png
    Screen shot 2011-02-27 at 18.51.12.png
    43.2 KB · Views: 84
In XCode 3.1.2, it can be found in the Project menu, down a ways, under the "Set Active Build Configuration". Or you can pull down the Customize Toolbar sheet and drag the "Active Build Configuration" item onto the toolbar.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.