title: Swift Import Module file still causing undeclared identifier compiler error
body: <p>I am developing a framework in Swift, and I've run into trouble while trying to use my .swift classes inside of Obj-C files.</p>
  <ul>
  <li>I have confirmed that I am importing the correct module file: &quot;SDK-Swift.h&quot;</li>
  <li>I have <strong>NOT</strong> created my own -Swift.h module. I am using the one provided by the IDE</li>
  <li>There are no naming convention clashes for any of my classes</li>
  <li>The <code>Product Module Name</code> is indeed SDK</li>
  <li>GGNetworking inherits from <code>NSObject</code>, therefore including the necessary <code>@objc</code></li>
  </ul>
  <p>I am still given the compiler error: <code>Use of undeclared identifier 'GGNetworking'</code> even though I have done all of the steps necessary according to Apple's documentation.</p>
  <p>The implementation and project itself couldn't be more simple.</p>
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &quot;SDK-Swift.h&quot;
  
  @interface GGHomie : NSObject
  
  @end
  
  @implementation GGHomie
  
  - (id)init
  {
      self = [super init];
      if (self)
      {
          GGNetworking *network = [[GGNetworking alloc] init]; // &lt;-- Compiler error here
      }
      
      return self;
  }
  
  @end
  </code></pre>
  <p>I know I'm not the only one on SO wrestling Obj-C to Swift code ;) Can anyone weigh in on this?</p>
  <h1>Update</h1>
  <p>SDK-Swift.h</p>
  <pre><code>// Generated by Swift version 1.0 (swift-600.0.51.4)
  
  #if defined(__has_include) &amp;&amp; __has_include(&lt;swift/objc-prologue.h&gt;)
  # include &lt;swift/objc-prologue.h&gt;
  #endif
  
  #include &lt;objc/NSObject.h&gt;
  #include &lt;stdint.h&gt;
  #include &lt;stddef.h&gt;
  #include &lt;stdbool.h&gt;
  
  #if defined(__has_include) &amp;&amp; __has_include(&lt;uchar.h&gt;)
  # include &lt;uchar.h&gt;
  #elif __cplusplus &lt; 201103L
  typedef uint_least16_t char16_t;
  typedef uint_least32_t char32_t;
  #endif
  #if !defined(SWIFT_PASTE)
  # define SWIFT_PASTE_HELPER(x, y) x##y
  # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  #endif
  #if !defined(SWIFT_METATYPE)
  # define SWIFT_METATYPE(X) Class
  #endif
  
  #if defined(__has_attribute) &amp;&amp; __has_attribute(objc_runtime_name)
  # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  #else
  # define SWIFT_RUNTIME_NAME(X)
  #endif
  #if !defined(SWIFT_CLASS_EXTRA)
  # define SWIFT_CLASS_EXTRA
  #endif
  #if !defined(SWIFT_PROTOCOL_EXTRA)
  # define SWIFT_PROTOCOL_EXTRA
  #endif
  #if !defined(SWIFT_CLASS)
  # if defined(__has_attribute) &amp;&amp; __has_attribute(objc_subclassing_restricted) 
  #  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  # else
  #  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  # endif
  #endif
  
  #if !defined(SWIFT_PROTOCOL)
  # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  #endif
  
  #if !defined(SWIFT_EXTENSION)
  # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  #endif
  
  #if !defined(OBJC_DESIGNATED_INITIALIZER)
  # if defined(__has_attribute) &amp;&amp; __has_attribute(objc_designated_initializer)
  #  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  # else
  #  define OBJC_DESIGNATED_INITIALIZER
  # endif
  #endif
  #pragma clang diagnostic push
  #pragma clang diagnostic ignored &quot;-Wproperty-attribute-mismatch&quot;
  
  #if defined(__has_feature) &amp;&amp; __has_feature(modules)
  #endif
  
  #pragma clang diagnostic pop
  </code></pre>
  <p>GGNetworking.swift</p>
  <pre><code>import UIKit
  import Alamofire
  
  public class GGNetworking: NSObject {
      
      public class var baseUrl:NSString! {
          get {
              return &quot;http://www.google.com/mobile/api/v1/&quot;
          }
      }
      
      public class func getInImageAd(url:GGInImageAdUrl!, completionHandler:(AnyObject?, NSError?) -&gt; Void) {
          Alamofire.request(.GET, url.absoluteString!).response { (request, response, data, error) in
              if (error != nil) {
                  println(&quot;An error occurred while getting an in-image ad (\(url.absoluteString)): \(error)&quot;)
                  completionHandler(nil, error)
              } else {
                  completionHandler(data, nil)
              }
          }
      }
      
      public class func getInScreenAd(url:GGInScreenAdUrl!, completionHandler:(AnyObject?, NSError?) -&gt; Void) {
          Alamofire.request(.GET, url.absoluteString!).response { (request, response, data, error) in
              if (error != nil) {
                  println(&quot;An error occurred while getting an in-screen ad (\(url.absoluteString)): \(error)&quot;)
                  completionHandler(nil, error)
              } else {
                  completionHandler(data, nil)
              }
          }
      }
  }
  </code></pre>
  <p>Finally, a screenshot of my Build Phases setup:
  <img src="https://i.stack.imgur.com/xPPwD.png" alt="enter image description here" /></p>