title: How to fix "does not conform to protocol" when in it does
body: <p>I'm trying to implement git project <a href="https://github.com/xmartlabs/XLPagerTabStrip" rel="nofollow noreferrer">XLPagerTabStrip</a>.</p>
  
  <p>According to the project, every controller has to: </p>
  
  <blockquote>
    <p>Every view controller provided by PagerTabStripDataSource's viewControllers(for:) method must <strong>conform to  InfoProvider</strong></p>
  </blockquote>
  
  <p>But the following code throws: <code>does not conform to protocol</code></p>
  
  <pre><code>extension UserProfileSubController: IndicatorInfoProvider {
  
      func indicatorInfo(for pagerTabStripController: PagerTabStripViewController) -&gt; IndicatorInfo {
  
          return IndicatorInfo(title: "UserProfileSubController")
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ENx3n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ENx3n.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/y5mxs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y5mxs.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/G9D1M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G9D1M.png" alt="enter image description here"></a></p>
  
  <p>If I want to auto fix the issue it re-implements the same protocol function and then throws invalid redeclaration.</p>
  
  <p><a href="https://i.stack.imgur.com/x4rs2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x4rs2.png" alt="enter image description here"></a></p>
  
  <p>How do you fix <code>does not conform to protocol</code> issue if your controller in fact does conform to it? What am I missing? Help is very appreciated. </p>
  
  <p>PS: I have cleaned the project, the build folder, removed derived data, restarted and performed pod updated as well as reinstall of pod.</p>