title: How can I get image download link from firebase
body: <p>I am trying to get download link of an image named <code>a.jpg</code> which is in a folder named<code>images</code> in firebase storage I am trying this:</p>
  
  <pre><code>    let store = FIRStorage.storage()
      let storeRef = store.reference()
      let reference = storeRef.child("images").child("a.jpg")
      reference.downloadURL { url, error in
          if let error = error {
              print(error)
          }
          else {
              print(url!)
          }
      }
  </code></pre>
  
  <p>In debugging <code>url</code>gives this:</p>
  
  <blockquote>
    <p>expression produced error: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x20).
    The process has been returned to the state before expression evaluation.</p>
  </blockquote>