Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating iOS framework: how to prevent insight into source code while debugging

I've just developed my own (universal) framework with Xcode. When I import it into a test project (which definitely needs the classes of my framework), all runs well - both with the simulator as well as a real device (iPhone).

I've built a debug and a release version.

Under "edit schemes", I've also disabled "view debugging" within the release version.

However, when I set a break point into my source code of my test project (which - as mentioned - fetches some info from the release version of my framework), I can still step into the classes (.m files) without any problems.

As I want to deliver this framework to paying customers, I want to prevent anybody from seeing my source code while debugging. Experimenting with several flags in "build settings" had no effect ...

Any ideas?

like image 235
Ulrich Vormbrock Avatar asked Dec 15 '22 11:12

Ulrich Vormbrock


1 Answers

nobody could help me, so I rookie had to help myself :-)

The solution could no bet easier: just goto Targets -> Build Settings and then make a search for "Generate Debug Symbols" - arrived there, simply change form YES to NO

... and that's it!

Happy Frameworking :-)

like image 53
Ulrich Vormbrock Avatar answered May 19 '23 21:05

Ulrich Vormbrock