Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Nic Huang
Nic Huang
Courses Plus Student 10,573 Points

How to use private API in my project ??

I know using private could get your app rejected by Apple. But I want to use that for testing purpose. Could someone teach me in detail from scratch ( easiest way ) ? I did googled it and download runtime headers (https://github.com/nst/iOS-Runtime-Headers) , read many brief tutorials but found it hard to understand or get lost between steps.

Thanks in advance

Just curious on why you'd want to do this because apple won't let you do anything with your code (ie. post it in the app store) if you use there private methods. if you want it just to mess around in the code then I guess that should be OK but I really don't see much of a benefit from doing that. anyways the reason you can't find many tutorials is probably for the reasons I just stated, it's not going to benefit you much while making apps, it's somewhat frustrating at times because you can't auto complete and the error you'll get should be pretty strange.

anyways if you still feel like learning this then I will assist you in finding resources.

Best, Kai