title: Xcode: Module not found in embedded framework
body: <p>I dragged a .xcodeproj of a framework to top of my project, and embed the .framemork file, when I build the project, I'm getting error No such module in one of the files of the framework(the modules it can't find are Cocoapods libraries), but if I switch Scheme to the framework's, it builds successful, if I switch back to my project, it throws the same error in the framework.</p>
  
  <p>I attached images below, you can also see that there are two different targets on the images.</p>
  
  <p><a href="https://i.stack.imgur.com/xUcx7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xUcx7.jpg" alt="error"></a></p>
  
  <p><a href="https://i.stack.imgur.com/sGoUp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sGoUp.jpg" alt="enter image description here"></a></p>