An Umbrella Framework Example
How to add a framework inside another framework (Umbrella Framework)
if you want to create an un-recommend "UmbrellaFramework", you must do these process step by step, and know details during the compile and link periods
- Change all sub frameworks Mach-O to Static Library, it means compile this target as Static Library(.a)
- Manually copy all sub-Framework into UmbrellaFramework during the build phase(Like other answers did)
- Add "FakeBundleShellScript" to Target "UmbrellaFramework", it makes all sub frameworks package itself resources as bundle to join "UmbrellaFramework"
- Change the framework load function, you must load the sub-framework resources via path or url, cause it became an bundle, this step means you should have the supreme control of all codes both sub-frameworks & umbrella
if you can understand Chinese, more details to make an "UmbrellaFramework" can be obtained from my blog