Skip to content

AlanLi7991/UmbrellaFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UmbrellaFramework

An Umbrella Framework Example

Answer This Question

How to add a framework inside another framework (Umbrella Framework)

Step

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

  1. Change all sub frameworks Mach-O to Static Library, it means compile this target as Static Library(.a)
  2. Manually copy all sub-Framework into UmbrellaFramework during the build phase(Like other answers did)
  3. Add "FakeBundleShellScript" to Target "UmbrellaFramework", it makes all sub frameworks package itself resources as bundle to join "UmbrellaFramework"
  4. 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

More Details

if you can understand Chinese, more details to make an "UmbrellaFramework" can be obtained from my blog

About

An Umbrella Framework Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published