title: error: unable to load standard library for target 'arm64-apple-ios10.0-simulator'?
body: <p>I updated my Xcode but not able to build. It's failing with: </p>
  
  <blockquote>
    <p><code>&lt;unknown&gt;:0: error: unable to load standard library for target 'arm64-apple-ios10.0-simulator'</code></p>
  </blockquote>
  
  <p>Merge Script:</p>
  
  <pre><code> # 1
  # Set bash script to exit immediately if any commands fail.
  set -e
  
  # 2
  # Setup some constants for use later on.
  FRAMEWORK_NAME="SDK"
  OUTPUT_PATH="${SRCROOT}"
  
  # 3
  # If remnants from a previous build exist, delete them.
  if [ -d "${SRCROOT}/build" ]; then
  rm -rf "${SRCROOT}/build"
  fi
  
  # 4
  # Build the framework for device and for simulator (using
  # all needed architectures).
  xcodebuild -target "${FRAMEWORK_NAME}" -configuration Release -arch 
  arm64 -arch armv7 -arch armv7s only_active_arch=no defines_module=yes - 
  sdk "iphoneos"
  xcodebuild -target "${FRAMEWORK_NAME}" -configuration Release -arch 
  x86_64 -arch i386 only_active_arch=no defines_module=yes -sdk 
  "iphonesimulator"
  </code></pre>