0

I am trying to use private frameworks in my app which is not going to app store. Can anyone guide me, how to use private headers generated using class-dump in my ios application.

Below link is listing some private frameworks generated using class-dump. I am trying to import SringBoardServices.h in my MyClass.m file, but i am unable to access it. I am creating an object to SringBoardServices.h like SringBoardServices *ref = [[SringBoardServices alloc]init]; and trying to access it's methods like ref.method_name. Whether it is a right approach to use private frameworks? LINK: private-frameworks

I tried using Class myclass = NSClassFromString(@"SpringBoardServices"); id myobj = [[myclass alloc] init]; , but unable to access SpringBoardServices methods.

user2533604
  • 655
  • 1
  • 11
  • 28
  • see more about `NSClassFromString` – Tony Oct 08 '14 at 07:00
  • copy that .h file into your project. then #import it normally. then, add the private framework under your project's Build Phases (you'll find it under the xcode install dir, under PrivateFrameworks for iphoneos). otherwise, it's just like using public APIs. – Nate Oct 08 '14 at 07:07
  • @Nate I tried Class myclass = NSClassFromString(@"SpringBoardServices"); id myobj = [[myclass alloc] init]; , but unable to access SpringBoardServices methods. – user2533604 Oct 08 '14 at 07:11
  • 1
    What do mean exactly by "unable to access"? Check NSClassFromString return value - may be it returns NULL in which case you probably forgot to link private framework (read Nate's comment above). – creker Oct 08 '14 at 07:36

0 Answers0