Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: I got error when build a new project with xcode template  (Read 8748 times)

0 Members and 1 Guest are viewing this topic.

prchakal

  • Full Member
  • ***
  • Posts: 142
    • View Profile
I got error when build a new project with xcode template
« Reply #15 on: August 18, 2011, 08:04:47 pm »
Another thing that i forgot.

When i put my game resources in "Resources" folder, all images doesnt are copied with the same path structure. Example (you can see it on my project on github):

[project-path]/data/images/background.jpg

When i compile, it copy all images to target dir with the structure:

[xcode-project-build-path]/[compiled-objects]
[xcode-project-build-path]/background.jpg

It doesnt put the image files on the same structure.

Im using the class "ResourcePath" to get the resource path, but i think that the best solution is creating another SH command that will copy my "data" directory to target directory.

What you think?

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
I got error when build a new project with xcode template
« Reply #16 on: August 19, 2011, 01:26:26 am »
You create the project as an Application bundle, right ?

You can use build phase to copy resources to you .app resource folder if it really doesn't work.
SFML / OS X developer

prchakal

  • Full Member
  • ***
  • Posts: 142
    • View Profile
I got error when build a new project with xcode template
« Reply #17 on: August 19, 2011, 01:41:25 am »
Ok, it was what i imagine. Thanks.

 

anything