I'm building my own library and I'm quite confused with how does the final executable linking process work.
I have a MyLibrary.framework which uses CoreLocation header.
When I set Mach-o type
to static
the framework builds without problem, even though I didn't link the CoreLocation.framework in "Linked Frameworks and Libraries".
When I link MyLibrary.framework to my iOS test project, I have to add CoreLocation.framework, because otherwise I get unreferenced symbols errors.
Question
Why doesn't building my static library need the reference the CoreLocation, and why does building my app require linking to CoreLocation ? What happens there ?