problem about iphone-privateapi-Collection of common programming errors


  • newenglander
    jailbreak iphone-privateapi
    I’m trying to make a Cydia app that will work on iOS 6 and 7, calling some functions from the private framework MusicLibrary. These functions are in different classes in iOS 6 and 7, and the class that exists in iOS 7 doesn’t exist in iOS 6. I’ve got this working in iOS 7, but in iOS 6, I get a “Symbol not found” runtime error at startup. This makes sense, but how do I go about avoiding this? Can I compile one app for both systems?(I am actually not explicitly linking against the framework, I ju

  • Victor Ronin
    ios reverse-engineering disassembling iphone-privateapi
    I know that SpringboardService contains a lot of private API’s (as example: SBGetApplicationState, SBDimScreen etc). I got the list of these methods using “nm” tool.I want to find a tool which will let me get signatures for these private API methods. As I understand SBGetApplicationState is a C call (vs Objective C method). So I am not sure whether it’s possible to recover signatures without disassembling and additional manual actions. However, I hope that at least semi-automated process exist.S

  • Nate
    ios jailbreak iphone-privateapi
    I’d like to use a private/hidden iOS method, for example clearIdleTimer from the SpringBoard class (example here). How do I do this? A lot of information references much older iOS versions.This is just for experimentation, I recognize that private API’s are not App Store approved. Also, my iOS device is registered for development but not jailbroken.Edit: I found these iOS-Runtime-Headers but the samples are not working for me.

  • Michael

  • Victor Ronin
    ios ipa iphone-privateapi
    I have used commands like otool,nm and strings on my application’s binary file but am unable to infer if my method names are actually clashing with Apple’s internal APIs ?Also, have download class-dump and ran it on my .app/AppName file which gives output as “This file does not contain any Objective-C runtime information.”Can anyone suggest the way to do it ?

  • Panagiotis
    ios jailbreak dylib iphone-privateapi
    I am trying to create a dynamic library for iOS and load it at runtime. After taking a look at this question and this answer, I have been doing it using iOSOpenDev and deploying everything on my iPhone. The xCode project for the dylib is called KDylibTwo and the files I modiefied are:KDylibTwo.h#import <Foundation/Foundation.h>@interface KDylibTwo : NSObject -(void)run; @endKDylibTwo.m#import “KDylibTwo.h”@implementation KDylibTwo-(id)init {if ((self = [super init])){}return self; }-(void)

  • jkigel
    objective-c ios xcode iphone-privateapi
    I’m trying to use Private Frameworks in my project, The problem is when I add the .framework file to the project, there is no header fileAny solution for that?Thanks!

  • Anatoly Anatoly
    iphone ios bluetooth iphone-privateapi discover
    I’m trying to implement device discovery using bluetooth in IOS 5.0.1 iPhone 4S. I’m using the private framework BluetoothManager.My code is:- (IBAction)searchForDevices:(id)sender {[self.indicator setHidden:NO];[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(bluetoothAvailabilityChanged:) name:@”BluetoothAvailabilityChangedNotification” object:nil];btCont = [BluetoothManager sharedInstance];[[NSNotificationCenter defaultCenter] addObserver:self selector:@sel

  • Victor Ronin
    ios iphone-privateapi
    I am looking for some private API or piece of code which will allow me to reboot iOS device or restart Springboard.I looked at SBReboot, but it looks like it’s protected by some entitlement.Also, I tried reboot(int) and reboot2(int), but it looks like both of them work only for “root” user and will do nothing for a “mobile” user.I am looking for a solution which works on non jailbroken device. However, private API’s are ok (an application won’t go to AppStore)Update 1In response to Josiah answer

  • shajem
    iphone objective-c ios cocoa-touch iphone-privateapi
    I need to check if i have used any private APIs in my application. Most of the answers posted in SO suggest to use the tool AppScanner, to find out.But when i add the .app file to AppScanner, it crashes. So this doesn’t work.1.) Are there any other ways where i could check if my application uses private APIs ?2.) I am using code from this tutorial, there are properties declared as Private in this, i am not sure if the libraies used in this project are using Private APIs. Could some one kindly ch

  • Max
    iphone ios ios4 iphone-privateapi
    I’m trying to get access to SBMediaController, but my app just crashes. My target is to stop any playing music app in background with [[[SBMediaController] sharedInstance] stop] I use private headers to gain access to privateframeworks, and can use GSLockDevice() to lock the screen, so i think my import should be finde. I Noticed that there is no SpringBoard.framework in privateframeworks like GraphicServices.framework, could this be the problem? My error:dyld: Symbol not found: _OBJC_CLASS_$_S

  • AtomRiot
    ios ios5 iphone-privateapi
    stop reading if your are going to say something along the lines of “blah blah private API usage will get rejected blah blah”This is for an enterprise appin iOS 5 i am trying to send current crashlogs to my server from the clients iPads. They have a management software but there is no way to get the crashlogs from it, just the console log which is not helpful in this instance.I have tried just reading the contents of the /var/logs/CrashReporter usingNSError * error; NSArray * directoryContents =

  • Victor Ronin
    iphone iphone-privateapi
    I’m writing an iPhone app that needs direct access to the camera. Since it is in-house, I have no qualms about using the full set of headers and private frameworks. I included and the PhotoLibrary framework in the application. It compiles for the 2.0 firmware, and I can put it on the device and run it. As soon as it is started, however, it quits and returns to the home screen.I think that the PhotoLibrary framework is somehow not being loaded or something similar.I would post some debugging

  • Zhao Xiang
    iphone iphone-privateapi
    I need to call [[MKLocationManager sharedLocationManager] _applyChinaLocationShift:newLocation]in my iOS app.I believe MKLocationManager is a private class, and there does not seem to have a MapKit/MKLocationManager.h file.I’m not targeting App Store. It’s there any way I can use that private API?Update at 2011-6-23I really need the answer, or could I de-complie the iOS SDK?100 reputation is almost all I have. Please help me.

  • Illep
    iphone objective-c iphone-privateapi
    What Apple says about Private APIs. How can a user test his/her application if it contains Private APIs. What are the steps Apple has suggested users to test there apps for Private APIs and other reason for an app could get rejected ?A link or a tutorial would help.note: i have used AppScanner but it crashes when i upload the .app file. (So it doesn’t work)

  • Ganesh Nayak
    iphone ios password-protection iphone-privateapi
    I am developing an iPhone app, that will not be distributed on AppStores. I have tried to search for private api but no luck. When the user tries to quit the app, I want to prompt the user to enter the correct password so as to enable him to exit the app. How can I achieve this? Thanks in advance. Cheers!!

  • Victor Ronin
    ios iphone-privateapi
    VOIP application are restarted automatically in iOS in several cases:Initial install Reboot of device Crash of VOIP applicationI am looking for way to distinguish between them.I checked launchOptions from didFinishLaunchingWithOptions, but both for Reboot and Initial install are nil (I didn’t check for a crash).I am looking for a way to distinguish programmatically these three cases. I am fine with private API’s.

  • myCodeHurts
    ios iphone-privateapi uiresponder
    Basically I want to get a list of action targets for a UIButton. I have gone through this and my question is slightly different because I do not know what the target is. All I have is a UIButton object. So here’s what I did to capture all action targets.Inspired by below method which works where I get firstResponder object as valid pointer.UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)];I used c

  • Dmitry
    iphone ios hack iphone-privateapi
    Does anyone know how to set struct variables using object_setInstanceVariable? It is work fine for reference types:object_setInstanceVariable(obj, “_variable”, ref);But do not work for structs such as CGPoint. Tried following ways:1. object_setInstanceVariable(obj, “_variable”, point); 2. object_setInstanceVariable(obj, “_variable”, &point); 3. object_setInstanceVariable(obj, “_variable”, (void **)&point);I’m not sure I understand what I’m doing (especially for the last step)… Thanks Y

  • Cameron Lowell Palmer
    objective-c ios iphone-privateapi
    I have been exploring private APIs within iOS for the express purpose of experimentation. Does anyone have a sample of instantiating a class like MKTransitAnnotationView?I’ve downloaded Erica Sadun’s HeaderDumpKit and the class-dump binary. After making a few corrections to her perl script I dumped out a Headers directory and moved that into the project folder.In the Other Linker Flags section of Build Settings I added:-force_flat_namespace -undefined suppressWhen trying to call MKTransitAnnotat

  • Victor Ronin
    ios jailbreak iphone-privateapi
    I used ChatKit.framework in jailbreaked project. When I compile the project, I got a error like this:Undefined symbols for architecture armv7:”_OBJC_CLASS_$_xxxxx”, referenced from:objc-class-ref in main.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)I added the ChatKit.framework to project. May I missed something?

  • Victor Ronin
    ios iphone-privateapi springboard
    I like to build an app to view specific apps without URL scheme I have heard about a Framework called SpringBoardServices but there is always a Linker ErrorAs far I use this code with the SpringBoardServices.h fileSpringBoardServices.h: #define SPRINGBOARDSERVICES_H#if __OBJC__#if __cplusplus extern “C” { #endif #include <CoreFoundation/CoreFoundation.h> #include <Availability.h>mach_port_t SBSSpringBoardServerPort();#pragma mark – #pragma mark Application launching/// Launch an app

Web site is in building