user2096146
user2096146

Reputation: 3

Where I can find an ipa file containing private API?

I want to have an ipa file generated with Private API to test whether private-api identifying tool works or not. Could someone tell me how I can find such file? Thanks.

Upvotes: 0

Views: 256

Answers (1)

Victor Ronin
Victor Ronin

Reputation: 23298

The simplest way would be to build one on your own.

Just put this code in .h or top of .m file:

@interface UIDevice()
    -(float)_backlightLevel;
@end

And in the code call:

float a = [[UIDevice currentDevice] _backlightLevel];
NSLog(@"Backlight level %f", a);

Now, you are using private API.

Upvotes: 1

Related Questions