title: Trying to use a delegate method written in Objective-C in Swift is throwing "Cannot find protocol Declaration"
body: <p>I have an existing Sample Objective-C app that uses Salesforce's SDK. I am trying to convert it to use Swift one-class at a time. Salesforce SDK has a class called 'SFRestRequest.h' that has 'SFRestDelegate' delegate. </p>
  
  <p>In Objective C, I have a class called 'RootViewController.h' that is a subclass of UITableViewController. It implements  SFRestDelegate. It works fine.</p>
  
  <pre><code>//RootViewController.h
  #import &lt;UIKit/UIKit.h&gt;
  #import "SFRestAPI.h"
  
  @interface RootViewController : UITableViewController &lt;SFRestDelegate&gt; {
  
      NSMutableArray *dataRows;
      IBOutlet UITableView *tableView;    
  
  }
  </code></pre>
  
  <p>I am trying to create a RootVC.swift file to replace RootViewController Objective-c class. </p>
  
  <p>I have a bridging header file that imports all those headers that are imported in objective-c</p>
  
  <pre><code>//SwiftForce-Bridging-Header.h 
  #import "SFRestAPI.h"
  #import "SFRestRequest.h"
  </code></pre>
  
  <p>My RooVC.Swift file looks like:</p>
  
  <pre><code>import UIKit
  
  class RootVC: UITableViewController,SFRestDelegate {
   ..
  ..
  }
  </code></pre>
  
  <p>Now, if I command+click on the SFRestDelegate, it correctly goes to protocol implementation.
  However, if I try to build, I get.. "<strong>Cannot find Protocol declaration SFRestDelegate Error</strong>!</p>
  
  <pre><code>SWIFT_CLASS("_TtC10SwiftForce6RootVC")
  @interface RootVC : UITableViewController &lt;SFRestDelegate&gt;
  @property (nonatomic) NSArray * dataRows;
  - (instancetype)initWithStyle:(UITableViewStyle)style OBJC_DESIGNATED_INITIALIZER;
  - (void)viewDidLoad;
  - (void)didReceiveMemoryWarning;
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
  @end
  </code></pre>
  
  <p><strong>Appreciate any help. You can test it by downloading the app from:</strong>
  <a href="https://github.com/rajaraodv/SwiftForce" rel="nofollow">https://github.com/rajaraodv/SwiftForce</a></p>