Add files to an Xcode project from a script?

后端 未结 7 1428
清酒与你
清酒与你 2020-12-04 07:11

Right now I\'m using a few scripts to generate files that I\'m including as resources in Xcode. The thing is I\'m running the script, then deleting from the project, then ad

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 07:20

    I found myself with a similar situation using Ionic Capacitor. What I was expecting was to include files on the "Copy Bundle Resources" bundle phase. What I found is that Ionic already packs you some inclusions and if you slip your files along this folders you get it included as well.

    Do you see the App folder inclusion? It our entry point.

    To include on it I add a script that do something like this:

    cp -Rf ./includes/yourfolder/ ./ios/App/App/
    

提交回复
热议问题