title: Running 1 of 1 custom shell scripts freeze
body: <p>I'm building a framework, while trying to compile the framework for production with custom shell script code, it freeze's on this step.</p>
  
  <p>This is the custom shell script code:</p>
  
  <pre><code># define output folder environment variable
  UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
  
  # Step 1. Build Device and Simulator versions
  xcodebuild -target SomeSDK ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos  BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"
  xcodebuild -target SomeSDK -configuration ${CONFIGURATION} -sdk iphonesimulator -arch i386 BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"
  
  # make sure the output directory exists
  mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"
  
  # Step 2. Create universal binary file using lipo
  lipo -create -output "${UNIVERSAL_OUTPUTFOLDER}/lib${PROJECT_NAME}.a" "${BUILD_DIR}/${CONFIGURATION}-iphoneos/lib${PROJECT_NAME}.a" "${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/lib${PROJECT_NAME}.a"
  
  # Last touch. copy the header files. Just for convenience
  cp -R "${BUILD_DIR}/${CONFIGURATION}-iphoneos/include" "${UNIVERSAL_OUTPUTFOLDER}/"
  </code></pre>
  
  <p>This is an image where it freezes:</p>
  
  <p><img src="https://i.stack.imgur.com/7wsKe.png" alt="custom shell script"></p>
  
  <p>How can I fix that? why this is happening?</p>