XCode build phases: run script in background (without blocking build)

后端 未结 3 496
渐次进展
渐次进展 2021-02-09 08:52

I\'d like to be able to run a script in the background (i.e. without blocking the build process) when I build and run an iOS application in the simulator. I\'ve tried osas

3条回答
  •  你的背包
    2021-02-09 09:02

    Incase you are still interested.

    These are the steps you need to follow: 1. Change the .sh extension of your script to .command 2. Rather than invoking /path/to/script.sh you now start using "open /path/to/script.command"

    Thats pretty much it.

    This will start a new terminal window and run the script you want in it.

提交回复
热议问题