PDA

View Full Version : Compiling XCode 2.4




satyam90
Mar 13, 2008, 08:04 AM
I am using XCode 2.4.1 with Cocoa and Obj C.
When I am comiling my code, why isn't making "Plugins" directory under "build/MyApp.app/Contents"
What I have to change in build procedure?



Sayer
Mar 13, 2008, 01:04 PM
If you already have files for "Plugins" you can add them to the project and add a new "Copy Files" Build Phase to the target you are building. Add a new build phase using the Build menu in Xcode.

Then drag and drop the plugin files in the project file list on the left side of the window to the "Copy Files" build phase.

To set which folder the files are copied to you select the "Copy Files" build phase in the target list and type Command-I (Get Info). In the "Destination" popup menu you can select which sub-folder the files will be copied to.

See this image for more details.