Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How build a static library with maximum compatibility on iOS?

I'm writing a static library for ios developers.

How build a static library with maximum compatibility on iOS? In other words, support different types of projects in future. Such as, 3.0~ version, ARC/non-ARC project, xib/storyboard, simulator/iphone/ipad.

What are the most important things I should consider?

  1. set deploy target to check compatibility?
  2. use 'lipo' to merge tow platform lib?
  3. do not use ARC in my code?

any suggestion? Thanks!

like image 658
Kane Avatar asked Nov 04 '22 22:11

Kane


1 Answers

Try this: http://atastypixel.com/blog/an-xcode-4-template-to-create-universal-static-libraries/

I hope it helps!

At least, it will help you with the "universal" (arm6/arm7/i386) part.

like image 56
Macro206 Avatar answered Nov 09 '22 08:11

Macro206