title: Having trouble installing OpenSSL Cocoapod
body: <p>I'm trying to install the OpenSSL Cocoapod in Xcode 9.4 and I get the following:</p>
  
  <blockquote>
    <p>[!] /bin/bash -c  set -e VERSION="1.0.2h" SDKVERSION=<code>xcrun --sdk
    iphoneos --show-sdk-version 2&gt; /dev/null</code>
    MIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0"</p>
    
    <p>BASEPATH="${PWD}" CURRENTPATH="/tmp/openssl" ARCHS="i386 x86_64 armv7
    armv7s arm64" DEVELOPER=<code>xcode-select -print-path</code></p>
    
    <p>mkdir -p "${CURRENTPATH}" mkdir -p "${CURRENTPATH}/bin"</p>
    
    <p>cp "file.tgz" "${CURRENTPATH}/file.tgz" cd "${CURRENTPATH}" tar -xzf
    file.tgz cd "openssl-${VERSION}"</p>
    
    <p>for ARCH in ${ARCHS} do   CONFIGURE_FOR="iphoneos-cross"</p>
    
    <p>if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ;   then
        PLATFORM="iPhoneSimulator"
        if [ "${ARCH}" == "x86_64" ] ;
        then
          CONFIGURE_FOR="darwin64-x86_64-cc"
        fi   else
        sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c"
        PLATFORM="iPhoneOS"   fi</p>
    
    <p>export
    CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer"<br>
    export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk"</p>
    
    <p>echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION}
    ${ARCH}"   echo "Please stand by..."</p>
    
    <p>export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH}
    ${MIN_SDK_VERSION_FLAG}"   mkdir -p
    "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk"<br>
    LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log"</p>
    
    <p>LIPO_LIBSSL="${LIPO_LIBSSL}
    ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a" 
    LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO}
    ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a"</p>
    
    <p>./Configure ${CONFIGURE_FOR}
    --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&amp;1   sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile"</p>
    
    <p>make >> "${LOG}" 2>&amp;1   make all install_sw >> "${LOG}" 2>&amp;1   make
    clean >> "${LOG}" 2>&amp;1 done</p>
    
    <p>echo "Build library..." rm -rf "${BASEPATH}/lib/" mkdir -p
    "${BASEPATH}/lib/" lipo -create ${LIPO_LIBSSL}    -output
    "${BASEPATH}/lib/libssl.a" lipo -create ${LIPO_LIBCRYPTO} -output
    "${BASEPATH}/lib/libcrypto.a"</p>
    
    <p>echo "Copying headers..." rm -rf "${BASEPATH}/opensslIncludes/" mkdir
    -p "${BASEPATH}/opensslIncludes/" cp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl"
    "${BASEPATH}/opensslIncludes/"</p>
    
    <p>cd "${BASEPATH}" echo "Building done."</p>
    
    <p>echo "Cleaning up..." rm -rf "${CURRENTPATH}" echo "Done."</p>
    
    <p>cp: file.tgz: No such file or directory</p>
  </blockquote>
  
  <p>This is the command I'm using in the podfile:</p>
  
  <pre><code>pod 'OpenSSL', '~&gt; 1.0'
  </code></pre>
  
  <p>I've tried installing the Xcode Command Line Tools but this did not fix the problem.</p>
  
  <p>Anyone have any idea what the problem is?</p>