title: Where is the Run Script and Build Phase in Xcode?
body: <p>To get Carthage set up, the <a href="https://github.com/Carthage/Carthage/blob/master/README.md" rel="noreferrer">documentation</a> says that you need to add a Run Script. </p>
  
  <blockquote>
    <p><strong>On your application targets’ “Build Phases” settings tab, click the
    “+” icon and choose “New Run Script Phase”.</strong> Create a Run Script in
    which you specify your shell (ex: bin/sh), add the following contents
    to the script area below the shell:</p>
  
  <pre><code>/usr/local/bin/carthage copy-frameworks
  </code></pre>
    
    <p>and add the paths to the frameworks you want to use under “Input
    Files”, e.g.:</p>
  
  <pre><code>$(SRCROOT)/Carthage/Build/iOS/Box.framework
  $(SRCROOT)/Carthage/Build/iOS/Result.framework
  $(SRCROOT)/Carthage/Build/iOS/ReactiveCocoa.framework
  </code></pre>
    
    <p>This script works around an App Store submission bug triggered by
    universal binaries and ensures that necessary bitcode-related files
    and dSYMs are copied when archiving.</p>
  </blockquote>
  
  <p>However, I can't find the Build Phases tab anymore or Run Script in the Build Settings search. The <a href="https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html" rel="noreferrer">Xcode 8 Release Notes</a> mention </p>
  
  <blockquote>
    <p>Xcode 8 provides completely rewritten AppleScript support. A new
    scripting dictionary provides the ability to automate Xcode workflows.</p>
  </blockquote>
  
  <p>Does that mean there is no more Run Script? I looked at <a href="https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptLangGuide/conceptual/ASLR_fundamentals.html" rel="noreferrer">AppleScript</a> but honestly it looks overwhelmingly complex. Do I need to learn AppleScript just to add the simple one liner that I used to do in Xcode? </p>
  
  <pre><code>/usr/local/bin/carthage copy-frameworks
  </code></pre>