Xcode building and resources folders

后端 未结 4 628
离开以前
离开以前 2020-12-31 13:53

I have several resources in my iPhone app and when they get compiled they all get added to the root of the resources folder in the app regardless of the Xcode grouping struc

4条回答
  •  旧时难觅i
    2020-12-31 14:06

    if you want to maintain a directory structure, it is best to do so in the documents directory. On your apps initial launch, copy over the files from the bundle to the documents directory in the hierarchy you prefer.

    EDIT: after clarification, it seems that you probably just need to add some header search paths to your project. Open the targets info pane, go to the build section, and add your structures root folder to the header search paths list. Check recursive and you should be better

提交回复
热议问题