title: Singleton framework sharedInstance accessible from iOS and WatchKit Target
body: <p>I made a Swift framework called SharedLocation with a Swift singleton class "SharedLocationManager" inside of it like so:</p>
  
  <pre><code>public class SharedLocationManager: CLLocationManager, CLLocationManagerDelegate
  {
  public class var sharedInstance: SharedLocationManager {
      struct Static
      {
          static var onceToken : dispatch_once_t = 0
          static var instance : SharedLocationManager? = nil
      }
      dispatch_once(&amp;Static.onceToken)
      {
              Static.instance = SharedLocationManager()
      }
      return Static.instance!
  }
  
  public override init()
  {
      //do init stuff
  
  }
  </code></pre>
  
  <p>A shared instance of this class should be accessable from my iOS app (written in Objective-C) and my WatchKit Extension (written in Swift). </p>
  
  <p>i imported the framework in the iOS ViewController like so:</p>
  
  <pre><code> @import SharedLocation
  </code></pre>
  
  <p>and in the Watch InterfaceController like so:</p>
  
  <pre><code>import SharedLocation
  </code></pre>
  
  <p>I am able to get an instance of the singleton class in both targets BUT these are different instances (init() is called twice).
  When I access the sharedInstance inside the WatchKit Target everything works fine and I get the same instance every time.</p>
  
  <p>Is it even possible to have a singleton class with multiple targets?</p>