SDL & XCode
Im facing a problem with my XCode and SDL development environment.
I create a new project "Foo" in /Projects. This creates a Foo directory for the project files. Now I add my sources and the images for the game.
The directory now looks like this ..
/Foo
- main.cpp
- splash.bmp
When I perform a build. It creates the executable in the Debug folder. Now the directory looks like
/Foo
- main.cpp
- splash.bmp
/Debug
- Foo
The problem is when I try to run the app from within XCode, It cant locate the images. I need to do this to enter the XCode debugger.
But, If I manually copy the image to the Debug directory, things work. The directory then looks like this.
/Foo
- main.cpp
- splash.bmp
/Debug
- Foo
- splash.bmp (Manually Copied)
I'm just looking around if theres a better way to do this. i.e. If XCode can handle it for me ..
I create a new project "Foo" in /Projects. This creates a Foo directory for the project files. Now I add my sources and the images for the game.
The directory now looks like this ..
/Foo
- main.cpp
- splash.bmp
When I perform a build. It creates the executable in the Debug folder. Now the directory looks like
/Foo
- main.cpp
- splash.bmp
/Debug
- Foo
The problem is when I try to run the app from within XCode, It cant locate the images. I need to do this to enter the XCode debugger.
But, If I manually copy the image to the Debug directory, things work. The directory then looks like this.
/Foo
- main.cpp
- splash.bmp
/Debug
- Foo
- splash.bmp (Manually Copied)
I'm just looking around if theres a better way to do this. i.e. If XCode can handle it for me ..
Please do not be redundant by posting the same thing as you did in another thread. We already saw it. Thank you.
