Subdirectories within an iOS application

前端 未结 2 1788
轮回少年
轮回少年 2020-12-04 10:00

Is there a way to have directories within an .app?

At the moment if I add a file into Xcode, regardless of what Group hierarchy it is in, t

2条回答
  •  再見小時候
    2020-12-04 10:47

    If you just want to copy existing files into your application bundle's Resources folder (which on iPhone is just the inside of the .app bundle), do the following:

    • Drag the folder you want copied into the Files and Folders listing of your xcode project.
    • From the sheet that pops up asking you if you want to add the files to a target, change the radio button to "Create folder references for any added folders'.

    The folder you dragged in and all of its contents will be copied verbatim during building.

提交回复
热议问题