title: How to access an AFP or SMB share (e.g. time capsule) in Swift or Obj-C
body: <p>I am currently developing a tvOS/iPhone app. The goal is to browse my local network and find different devices that publish AFP and SMB shares, and read files from them.</p>
  
  <p>So far I have managed to find and list the different devices in my network (like my time capsule) using <code>NSNetServiceBrowser</code>.</p>
  
  <p><strong>My issue is: How can I access and read the information (e.g. directories or files) of the AFP or SMB shares I found?</strong></p>
  
  <p>I have tried <code>NSFileManager</code>, but from what I found, it is not suitable at all for this task… Any idea on how to achieve this, using an iOS framework or third party library?</p>