title: How to embed framework which depends on architecture
body: <p>My iOS project depends on some <code>CustomLib.framework</code>. This framework comes as two separate files: one for simulator, another for real device.</p>
  
  <p>I put these files into folders</p>
  
  <p><code>@(PROJECT_DIR)/device_frameworks/CustomLib.framework</code></p>
  
  <p>and</p>
  
  <p><code>@(PROJECT_DIR)/simulator_frameworks/CustomLib.framework</code></p>
  
  <p>I edited</p>
  
  <p><code>Build Settings-&gt;Search paths-&gt;Framework search paths</code>: </p>
  
  <pre><code>Any iOS Simulator SDK     $(PROJECT_DIR)/simulator_frameworks
  Any iOS SDK               $(PROJECT_DIR)/device_frameworks
  </code></pre>
  
  <p>What I do not understand is how to add <code>CustomLib.framework</code> to the Xcode project, and how to add it as embedded framework (<code>Build phases-&gt;Embed frameworks</code>). Because on these steps I have to specify a concrete framework, but I have two separate frameworks in <code>device_frameworks</code> and <code>simulator_frameworks</code> folders.</p>