Can I develop my own objective-C Framework for Cocoa Touch Applications?

前端 未结 9 1124
抹茶落季
抹茶落季 2020-12-13 07:03

Is it possible to create an own obj-C Cocoa Touch framework which can be used by other developers? And furthermore can you protect this framework?

9条回答
  •  悲&欢浪女
    2020-12-13 07:45

    Yes you can create frameworks for use with Cocoa Touch.

    However there are these caveats:

    1. has to be a statically linked libary, no dynamic loading (dyld) for us
    2. should be a combined (lipo) library for i386 (simulator), arm6 and arm7
    3. you need to hack a bundle project into a framework
    4. you should embed (small and few) images into the library so that the developer does not have to mess around with resources but just drags/drops it into his project
    5. ... or if you have large and many images build a bundle with these

    I have guides for these things on my site.

    1+2 = http://www.drobnik.com/touch/2010/04/universal-static-libraries/

    The other links you have to google because this site does not let me post more than one URL.

提交回复
热议问题