title: How to use a custom framework with a playground in Xcode 9
body: <p>I am trying to use a custom framework in a playground as described in this Apple documentation:</p>
  
  <p><a href="http://help.apple.com/xcode/mac/9.0/#/devc9b33111c" rel="noreferrer">http://help.apple.com/xcode/mac/9.0/#/devc9b33111c</a></p>
  
  <p>However, I am unable to get the playground to recognize the framework (<a href="https://github.com/gk-brown/MarkupKit" rel="noreferrer">https://github.com/gk-brown/MarkupKit</a>). It is a 64-bit Objective-C framework that defines a module.</p>
  
  <p>Here is what I have tried:</p>
  
  <ul>
  <li>Create a new "single view" playground</li>
  <li>As directed in the document, open the playground and choose <em>File > Save As Workspace</em></li>
  <li>Close the playground</li>
  <li>Open the workspace containing the playground</li>
  <li>Attempt to choose <em>File > Add Files to [Workspace Name]</em></li>
  </ul>
  
  <p>The menu item is actually named "Add Files..." and is disabled. I'm able to work around this by opening the Navigator panel and selecting Project Navigator. The menu item changes to "Add Files to TestPlayground" and becomes enabled.</p>
  
  <p>Moving on, as directed in the document:</p>
  
  <ul>
  <li>Navigate to the directory containing the framework, select the framework, and click "Add"</li>
  <li>In the editor, open the desired playground source file</li>
  <li>Add an import statement for the framework (e.g. "import MarkupKit")</li>
  </ul>
  
  <p>The console displays the following error:</p>
  
  <pre><code>error: TestPlayground.playground:5:8: error: no such module 'MarkupKit'
  </code></pre>
  
  <p>The document additionally notes that the workspace must contain at least one active scheme that builds a target. However, adding a project to the workspace and building it does not resolve the problem. The playground is still unable to see the framework.</p>
  
  <p>Based on what I've read elsewhere on SO, it seems like this should be possible. However, most of the information I have found is 2-3 years old and may be out of date. The framework is a universal binary, and I have tried trimming it using <em>lipo</em> as suggested in some other posts. Specifically, I did this:</p>
  
  <p><a href="https://github.com/gk-brown/MarkupKit/wiki/Deployment" rel="noreferrer">https://github.com/gk-brown/MarkupKit/wiki/Deployment</a></p>
  
  <p>Unfortunately, it didn't help. </p>
  
  <p>Any suggestions would be very much appreciated.</p>