How to archive an app that includes a custom framework?
<p>I have an xcode framework project that I've created, which I can compile into a <code>myframework.framework</code> file. After compiling, I drag this framework into the Frameworks project folder of my application, and then to make use of classes from the framework I add the proper <code>import</code> statement to any class that needs it; this allows my app to successfully <em>compile</em> with references to classes defined in the framework. To get the app to <em>deploy</em> successfully to my device, I also add my custom framework to the "Embedded Binaries" section for my target. With all this in place, I can build my app from xcode and run it on my device.</p>

<p>My problem comes when I attempt to Archive my application for the app store. When I attempt to do this, I get a ton of compiler errors where xcode says it cannot find the declarations for any of the classes defined in my custom framework.</p>

<p>How can I set up Archive in xcode so that it properly references and embeds my custom framework?</p>