In order to make sure the folder gets copied, you need to add the folder to your Xcode project and then create a Copy step in your Build Phases. By default, there is a Copy Phase for items that are identified as Resources by the system (.strings files, .xib files, etc.) However, for additional files, you'll need to create a Copy Phase specifically.
To do this:
- In Xcode, select your project and Target and choose the
Build Phases
tab - Click on the
Add Build Phase
button and chooseAdd Copy Files
- Select the
Destination
location for the copy (this is the "top" of the hierarchy, you can also specify sub-directories using theSubpath
field) - Now drag the folders or files from the Project Navigator into the new Copy Phase
When you build your executable, the files will be copied as you direct them.
If your SDL files are being modified outside of Xcode, you may want to import the folder as a Folder Reference instead of as individual files. This can be a little tricky, but it causes Xcode to copy the current contents of the folder, as opposed to just the items that you've added to the Project. Otherwise, just import the SDL files directly into the Xcode project and manage them individually.