How do you create a Shell Script target in Xcode 4

2019-04-20 12:09发布

问题:

I was wondering if anyone knew with XCode 4.1 how to create a shell script. The option for that doesn't exist, but it might be called something else in the latest version. Ta

回答1:

  1. Select your project in the navigator
  2. Click "Add Target" - Choose "Aggregate" for an empty Target
  3. Add Build Phase -> Add Run Script
  4. Click Build Phases and edit the Run Script Phase