Get Updates By E-mail 

Article Written By:
Johann Dowa

Tool: Xcode 4 Project Template For Automatically Creating Universal Frameworks

  •  
  •  
  •  
  •  
  •  

Several days ago I received some feedback from a user having issues creating a static framework using a tutorial that I mentioned over two years ago.

Since the tutorial is vastly outdated, I thought I would mention a much simpler way that I’ve since found for building frameworks.

You might be wondering why you would want to build a framework rather than simply building from source.  If you ever want to share some functionality with another developer without having to openly share all your resources then frameworks are the answer – specifically static frameworks – since you can’t include dynamical frameworks within your app store submissions.

The solution that I use now is a couple of templates rom Karl Stenerud:
https://github.com/kstenerud/iOS-Universal-Framework

With this script you can build universal (arm6, arm7, and simulator) frameworks and – as Karl refers to them – build both Real and Fake frameworks.  Templates for both types are included on the Git repository – the real framework template builds the typical static framework you’d expect while the fake framework has the advantage of not requiring you to edit your Xcode project files, but there are some complications.

Full details about the different frameworks you can create with the templates and instructions included on the Github page.

If you’d like to figure out how to do all this yourself, Diney Bomfim has written an excellent tutorial on his site:
Universal Framework On iPhone OS .

As you can see the template makes things a lot easier.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments