Sorry for the confuse. I realy want to disallow customization for certain items on the toolbar,not the all toolbar.
For XCode, i think you use the default setting. Please in XCode Preferences->General->Layout, choose All-in-One. so, open one porject. you can find the Page item disallow customization .