How to have Xcode always copy files (even if they have not been detected as modified) when building?

后端 未结 3 1641
别跟我提以往
别跟我提以往 2021-01-18 06:06

I am developing an application which uses .js files stored in the Resources/javascript folder of my application bundle. In my Xcode 2.5 project I have created a fold

相关标签:
3条回答
  • 2021-01-18 06:08

    There's an excellent walkthrough here of a build phase script which automates the 'touch' and saves the manual step of specifying each file you want included.

    0 讨论(0)
  • 2021-01-18 06:23

    Add a new Copy Files Build Task to your target.

    Right Click (Control Click) on the target, Add -> New Build Phase -> New Copy Files Build Phase.

    In the Dialog select the destination that you want the files to be copied.

    This will create the phase under the target. Drag the files you wish to copy to the phase.

    0 讨论(0)
  • 2021-01-18 06:32

    You could right- or control-click the file (in the project file list) and click "Touch" before building (manual) or add a script build phase to the target that calls "touch myfile.js" and place it before your Copy Files build phase (automatic).

    0 讨论(0)
提交回复
热议问题