如何在 xcode 上建立自己的 ios framework,
目前有好幾種解法,下列方法是我覺得目前問題最少且最有效率的方式。
首先安裝 Karl Stenerud 提供的 Xcode4 template,
git clone https://github.com/kstenerud/iOS-Universal-Framework
./iOS-Universal-Framework/Real Framework/install.sh
./iOS-Universal-Framework/Fake Framework/install.sh
open Xcode -> File -> New -> Project ->Framework & Library
Selected Static iOS Framework.
Set Product Name.
Add Your Classes, Resources, Images, 3rd source...etc.
Create Your Classes.
Make Your Header Files as Public.
Now Build it and Get your own XXX.framework.
Enjoy it.
ref:
沒有留言:
張貼留言