multiple copies of frameworks when making a dynamic library

So I'm just starting with my dynamic libraries, and I'm finding I am using copies of the same framework. Let's say I make a dynamic library which uses alamo fire (copied in using carthage) and my main project uses alamo fire (also using carthage). now I have 2 copies of alamo fire in my project. It's not the end of the world, but bothers me a bit. Any thoughts?

This really depends on how your project is set up. If you’re building all the frameworks from source via an Xcode workspace, Xcode should do the right thing here (have one framework that your app and all the other frameworks use). If you’re using some other technique, things get more complex.

Regardless, it should be possible to fix this (assuming all the frameworks are binary compatible), it’s just a question of getting the packaging right.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
multiple copies of frameworks when making a dynamic library
 
 
Q