title: Target membership fix for unresolved identifier when testing framework
body: <p>I have recently created a framework with unit testing. 
  The problem is that when Im trying to launch tests, Im getting an error:</p>
  
  <blockquote>
    <p>Use of unresolved identifier 'SessionManager'</p>
  </blockquote>
  
  <p>I discovered that problem may be fixed by setting target membership for SessionManager to both targets: framework and tests.</p>
  
  <p>But the question is:</p>
  
  <blockquote>
    <p>How they can work separately?</p>
  </blockquote>
  
  <p>Got this in framework seed:</p>
  
  <pre><code>//  SessionManager.swift
  //  URLSessionKit
  
  import Foundation
  
  public class SessionManager {
      var name : String
      public init(name: String) {
          self.name = name
      }
  }
  </code></pre>
  
  <p>and this in tests:</p>
  
  <pre><code>//  URLSessionKitTests.swift
  //  URLSessionKitTests
  
  import XCTest
  @testable import URLSessionKit
  
  class URLSessionKitTests: XCTestCase {
  
      func testExample() {
          SessionManager(name: "someName")
      }
  </code></pre>