2

I have a developed a generic class and I want to give it to one of my friend.

How can I hide the code so that he should not view the logic in that. Can I do something like apple does by giving us only the .h files.

Please help me in achieving this. Thanks.

NREZ
  • 942
  • 9
  • 13
user2402997
  • 107
  • 2
  • 10

2 Answers2

1

you need to create your own static library i.e. .a file in xcode. And it is not very tough, you can do this in just in few mins.

Read this tutorial and try in out:

How to make Universal Static library (.a file) in iOs using xCode

Vaibhav Saran
  • 12,848
  • 3
  • 65
  • 75
  • I'm still able to use breakpoint and select step into to view the code in .m file. (I'm only importing a .a file together with the .h file) – user1872384 May 16 '18 at 03:50
0

You will have to make your own library (framework) for this. You can search about it there are many tutorials about that. One of them is How to build a framework or library for other developers, the secure way?

Edit: Great Tutorial
Creating Static Libraries For iOS

Community
  • 1
  • 1
TheTiger
  • 13,264
  • 3
  • 57
  • 82