title: iOS application doesn't see public protocol from framework
body: <p>I created Static Framework and added it to an iOS app.
  In Framework I created new public protocol:</p>
  
  <pre><code>public protocol ProtocolName
  {
      func methodName1(arg1: Int)
  }
  </code></pre>
  
  <p>I rebuilt framework, but I can't use this protocol in my app. </p>
  
  <pre><code>import FrameworkName
  
  class ClassName: ProtocolName
  {
      func methodName1(arg1: Int)
  }
  </code></pre>
  
  <p>(Error in class definition: Use of undeclared type 'ProtocolName')</p>
  
  <p>The app sees other protocols, other classes and views. It also sees changes in my framework (I added some test print and rebuild framework to check if the app uses the newly built version and it works).</p>
  
  <p>File with the protocol is in Target Membership for the framework.
  I tried to remove the whole framework and link it again, close and reopen XCode, clean both project few times, but nothing works.</p>
  
  <p>I tried also to add next protocol - also isn't recognized in the app (but other, older protocols are).</p>
  
  <p>I checked framework definition in the app (right click on a module and Jump to Definition) - there are no mentions of the new protocol.</p>
  
  <p>I guess something is wrong with the generation of the framework metadata (classes and method definitions), but I can't find a way to fix it.</p>
  
  <p>Any help or ideas would be appreciated.</p>