Coder Social home page Coder Social logo

ios-runtime-headers's Introduction

Dynamically Generated iOS Headers

Here are iOS Objective-C headers as derived from runtime introspection.

The headers were generated using RuntimeBrowser for iPhone.

Search

You can search the headers with github search:

https://github.com/search?type=Code&q=repo:nst/iOS-Runtime-Headers+hack

Diffs

You can compare versions based on their tags, see the tags page:

$ git difftool 6.0 6.1 .

Sample usage

You can use the headers this way:

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/FTServices.framework"];
BOOL success = [b load];

Class FTDeviceSupport = NSClassFromString(@"FTDeviceSupport");
id si = [FTDeviceSupport valueForKey:@"sharedInstance"];

NSLog(@"-- %@", [si valueForKey:@"deviceColor"]);

Timeline

  • Green == public
  • Red == private
  • Blue == dylib

The code to draw this picture is in https://github.com/nst/RuntimeBrowser/tree/master/tools/ios_headers_history.

iOS Frameworks

Nicolas Seriot

ios-runtime-headers's People

Contributors

nst avatar swissquote-nst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-runtime-headers's Issues

How to integrate Runtime-Headers?

Where to put this code ? applicationDidFinishLaunchingWithOption?

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/FTServices.framework"];
BOOL success = [b load];
Class FTDeviceSupport = NSClassFromString(@"FTDeviceSupport");
id si = [FTDeviceSupport valueForKey:@"sharedInstance"];
NSLog(@"-- %@", [si valueForKey:@"deviceColor"]);

As I am getting this error

ld: can't map file, errno=22 file '/Avijit/Dogra/App/EZMCOM_LATEST 5.31.56 PM/EZMCOM_LATEST/libAVFAudio.dylib' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

further check. http://stackoverflow.com/questions/36594413/libavfaudio-dylib-error-for-arm64-in-xcode-7
How to fix this error ? Any Help will much appreciated.

How to use Private APIs

I just can't figure out how to use these private APIs in my project. Could someone put together a decent tutorial so newbies on this field could get started?

It would be greatly appreciated, since i had no luck with googling and stackoverflow.

Thanks

Where is MobileWifi framework?

Hello.

I want to use some feature that seems to be available from the MobileWifi.framework (connecting to a WiFi, scanning nearby wifi) but can't find it here. Is it deprecated? Did it changed name?

Thanks

Load private framework within iOS 7

Hy everbody,

unfortunately the sample for loading classes from a private framework no longer works by the use of iOS 7.
Any idea for this?

Thanks :)

Diffing between versions is made harder because order of declarations is not constant

@nst Thank you so much for providing these headers, they are incredibly useful.

I was trying to diff the changes between iOS 6.0 (8ad25ed) and 6.1 (dc80019) with this command:

git difftool 8ad25ede dc800196 .

This lists a tremendous amount of changes (5,000+ files), most of them being irrelevant: all that has changed in most files is the order of the method declarations. See these screenshots as an example of the vast majority of changes:

diff-avassetcache

diff-nsscanner

diff-uiview

This makes it almost impossible to identify the real, substantial changes between two SDK versions (needle in the haystack).

Any chance you could generate the headers in a consistent manner (e.g., with everything ordered alphabetically)?

iOS 7.1 headers

With the public release of iOS 7.1, I'd like to see the 7.1 headers to be added to the repo.

I tried to figure out how to use RuntimeBrowser myself, but couldn't find an easy way to export all the headers (separated by Public/Private, as the repository currently does) to their own files. I don't mind doing the export myself, but some pointers as to how to use RuntimeBrowser would be very helpful in that case.

Thanks for your work!

Apple keyboard keys

Hey, I have a problem, is that I am doing a media player with open frameworks and the only thing that remains for me finish it is to know the exact name with which you can locate the buttons for play/pause for the music player in the apple keyboard. Can you tell me where can i find them? Thanks and sorry for my english

Clang notice me that "UIKit/UIKit.h" file not found

I've imported the private directories -- Frameworks,PrivateFramewoks and lib resulting in what my title said.
and..it'd be the same where I've referenced "Foundation/Foundation.h".
Waiting 4 ur answer ;-)

Importing CoreTelephony into Xcode

Hello.

I'm trying to develop an app(won't make it to the AppStore) via Xcode(v7.1 beta 3) which will use the dumbed CoreTelephony headers.

I've copied(replaced the dumbed ones with the public ones) the CoreTelephony headers to the following location:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreTelephony.framework/Headers

I started a test project, added CoreTelephony to the Linked Frameworks and Libraries, tried importing a header but Xcode was still seeing the old ones. The dumbed headers for CoreTelephony count to 16 where Apple provides 8. So I added the following path to the Framework Search Paths.

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/

At first, this seemed irrelevant since this is the default location Xcode looks for frameworks and libraries. When this got added, I got an error message complaining about not being able to build module 'CoreTelephony'. This time, I set Enable Modules(C and Objective-C) to No. I got rid of the previous error but now I'm getting the error: Expected selector for Objective-C method for the methods below:

  • (id).cxx_construct;
  • (void).cxx_destruct;

Also a bunch of warnings complaining about type of property not matching the type of accessor.

What am I to do in order to successfully use these headers inside Xcode?

Thanks.

AVAudioRecorder not working since iOS 9

I'm using AVAudioRecorder, AVAudioSession and finally set recordForDuration.

Since devices updated to iOS 9, the audio recorder does not function. It seems not to be responding at anything.

How I can get Apple ID Email?

Hi,

I new with PrivateFrameworks. (Working on Swift)
Load bundle "/System/Library/PrivateFrameworks/AppleAccount.framework" - OK
load class - NSClassFromString("AAAccountManager") - OK
but when I try to get sharedManager
value(forKey: "sharedManager")

received next Message:
[[core] __42-[ACAccountStore accountsWithAccountType:]_block_invoke_2 (208) "Error returned from daemon: "

Can I pass it? And may be another way to get AppleID userName and Email?

Thanks

How would I properly use the CoreBluetooth.framework

I'm curious to know how I could use the CoreBluetooth.framework headers (shown in this repo).

The usage example doesn't make it very clear on how to use them at all.

Do I need to pull this repo and save off those header files somewhere and reference them?

Should I create a new framework that has those header files in them and reference that somehow in the project to use the newly exposed properties/methods?

Since CoreBluetooth.framework (and its many uses) require the use of protocols/delegates. I don't see those in these headers files. Do I need to create categories or something to have access to these new properties?

So far, I have had no success using any of the CoreBluetooth framework header files.

I hope I'm just misunderstanding the concept here, but a little push in the right direction would be greatly appreciated!

Can we broadcast message on any Radio Frequency ?

I have allocated frequency range , and i want to communicate on this particular frequency range.Is it possible in iOS devices ?
Is Radio Station framework interface provides way to use iOS device hardware to communicate with Radio frequency ?

How to access device serial number?

Tried using AppleAccount.framework/AADeviceInfo.h class but it returns null for Serial Number.
Any idea?

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/AppleAccount.framework"];
BOOL success = [b load];

Class FTDeviceSupport = NSClassFromString(@"AADeviceInfo");
id si = [FTDeviceSupport valueForKey:@"serialNumber"];

Read value of private properties

Hi -

I want to read the value of the private property of EKCalendar object, how can i do that ?

I tied the following but I didn't get the correct values:

EKCalendar * calendar = self.event.calendar;
BOOL value = [[calendar valueForKey:@"isMainCalendarForSource"] boolValue];

Please let me know how I can use these private properties in my code.

Regards

Help to integrate and use headers

Can any one guide me on how can i add this headers into my application and how can i use those,

for Sample please take below code as example and help to achieve this,

BOOL isInstalled = [[LSApplicationWorkspace defaultWorkspace] applicationIsInstalled:@"com.app.identifier"];

if (isInstalled) {
// app is installed }
else {
// app is not installed
}

This code is in below link,
https://github.com/nst/iOS-Runtime-Headers/blob/master/Frameworks/MobileCoreServices.framework/LSApplicationWorkspace.h.

Can you please help me to integrate this headers,where actually i need to copy and how can i import that .h file to use method.

Please help me as soon as possible.

About the iOS10 API AVKeyPathFlattener crash

Hi, recent I used AVPlayer to play while downloading, everything seems fine. Bug I found some crash about AVKeyPathFlattener on the other threads. I can't reproduce and don't know how to solve it. Can you please help me ? Thanks.

Here is the crash log:

#10 Thread
NSInternalInconsistencyException
An instance 0x170031fa0 of class AVKeyPathFlattener was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x170432860> ( <NSKeyValueObservance 0x17404c660: Observer: 0x170269f80, Key path: operationCount, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x17404c510> )
0 CoreFoundation ___exceptionPreprocess + 124
1 libobjc.A.dylib objc_exception_throw + 56
2 CoreFoundation -[NSException initWithCoder:]
3 Foundation _NSKVODeallocate + 300
4 AVFoundation -[AVPlayerLayer _stopObservingPlayer:] + 244
5 libdispatch.dylib __dispatch_call_block_and_release + 24
6 libdispatch.dylib __dispatch_client_callout + 16
7 libdispatch.dylib __dispatch_queue_serial_drain + 928
8 libdispatch.dylib __dispatch_queue_invoke + 652
9 libdispatch.dylib __dispatch_queue_override_invoke + 360
10 libdispatch.dylib __dispatch_root_queue_drain + 572
11 libdispatch.dylib __dispatch_worker_thread3 + 124
12 libsystem_pthread.dylib _pthread_wqthread + 1288
13 libsystem_pthread.dylib start_wqthread + 4

#0 Thread
0 libsystem_platform.dylib 0x0000000181a916c0 OSAtomicEnqueue
1 CoreFoundation 0x00000001829b4770 __CFRelease
2 CoreText 0x0000000185674d8c TFont::~TFont()
3 CoreFoundation 0x00000001829b4358 __CFRelease
4 CoreText 0x000000018569df44 CTTateChuYokoRun::CloneRange(CTRun const*, CFRange, TRun::SubrangingStyle)
5 CoreText 0x000000018566c7b4 TFontCascade::~TFontCascade()
6 CoreText 0x0000000185669bf4 TGlyphEncoder::EncodeChars(CFRange, TAttributes const&, TGlyphList&, TGlyphEncoder::Fallbacks)
7 CoreText 0x00000001856693b4 TTypesetterAttrString::Initialize(__CFAttributedString const*)
8 CoreText 0x00000001856690cc TTypesetterAttrString::TTypesetterAttrString(__CFAttributedString const*)
9 CoreText 0x0000000185668fb4 CTLineCreateWithAttributedString
10 UIFoundation 0x0000000188828b18 ___NSStringDrawingEngine
11 UIFoundation 0x0000000188827acc -[NSString(NSExtendedStringDrawing) boundingRectWithSize:options:attributes:context:]
12 UIFoundation 0x0000000188825fec -[NSString(NSStringDrawing) sizeWithAttributes:]
13 MyApp 0x0000000100328240 -[ECAnalysisLyric analysisLyric:withMaxFont:orLyricData:twoline:] (ECAnalysisLyric.m:264)
14 MyApp 0x00000001002a8b34 -[ECArtworkViewController getLyricInfo:] (ECArtworkViewController.m:2685)
15 libdispatch.dylib 0x000000018188e1fc __dispatch_call_block_and_release
16 libdispatch.dylib 0x000000018188e1bc __dispatch_client_callout
17 libdispatch.dylib 0x0000000181892d68 _dispatch_main_queue_callback_4CF
18 CoreFoundation 0x00000001829b2810 _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
19 CoreFoundation 0x00000001829b03fc ___CFRunLoopRun
20 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
21 GraphicsServices 0x0000000184392198 GSEventRunModal
22 UIKit 0x00000001889257fc -[UIApplication _run]
23 UIKit 0x0000000188920534 UIApplicationMain
24 MyApp 0x000000010040e04c main (main.m:14)
25 libdyld.dylib 0x00000001818c15b8 _start

#1Thread com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 Foundation 0x000000018341b26c -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
6 Foundation 0x000000018343bdd0 -[NSRunLoop(NSRunLoop) runUntilDate:]
7 UIKit 0x0000000189299c38 -[UIEventFetcher threadMain]
8 Foundation 0x0000000183518e68 _NSThread__start
9 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
10 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body

#2 Thread
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 MyApp 0x00000001003de900 +[ASIHTTPRequest runRequests] (ASIHTTPRequest.m:4913)
6 Foundation 0x0000000183518e68 _NSThread__start
7 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
8 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body

#3 com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 CFNetwork 0x00000001830e3a70 +[NSURLConnection(Loader) _resourceLoadLoop:]
6 Foundation 0x0000000183518e68 _NSThread__start
7 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
8 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body

#4 AVAudioSession Notify Thread
0 libsystem_kernel.dylib 0x00000001819b5188 mach_msg_trap
1 libsystem_kernel.dylib 0x00000001819b4ff8 mach_msg
2 CoreFoundation 0x00000001829b25d0 ___CFRunLoopServiceMachPort
3 CoreFoundation 0x00000001829b01ec ___CFRunLoopRun
4 CoreFoundation 0x00000001828de2b8 CFRunLoopRunSpecific
5 AVFAudio 0x000000019c57fd24 GenericRunLoopThread::Entry(void*)
6 AVFAudio 0x000000019c5a5d9c CAPThread::Entry(CAPThread*)
7 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
8 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body

#5 keep live
0 libsystem_kernel.dylib 0x00000001819d3314 __semwait_signal
1 libsystem_c.dylib 0x00000001818f125c nanosleep
2 Foundation 0x0000000183518118 +[NSThread sleepForTimeInterval:]
3 MyApp 0x00000001000ab03c -[EncoreProtoInterface run] (EncoreProtoInterface.mm:119)
4 Foundation 0x0000000183518e68 _NSThread__start
5 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
6 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body

#6 com.apple.CFSocket.private
0 libsystem_kernel.dylib 0x00000001819d323c __select
1 CoreFoundation 0x00000001829b9468 ___CFSocketManager
2 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
3 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body

#7 Thread
0 libsystem_kernel.dylib 0x00000001819b51dc semaphore_timedwait_trap
1 libdispatch.dylib 0x00000001818a0770 __dispatch_semaphore_wait_slow
2 libdispatch.dylib 0x000000018189f808 __dispatch_worker_thread
3 libsystem_pthread.dylib 0x0000000181a99850 __pthread_body
4 libsystem_pthread.dylib 0x0000000181a99760 __pthread_body

#8 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread

#9 Thread
0 libsystem_kernel.dylib 0x00000001819d2e1c __psynch_cvwait
1 libsystem_pthread.dylib 0x0000000181a989c0 __pthread_cond_wait
2 Foundation 0x00000001834f25c8 -[__NSOperationInternal _waitUntilFinished:]
3 CFNetwork 0x000000018326154c -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]
4 CFNetwork 0x00000001832616c0 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:]
5 CFNetwork 0x000000018321f974 _NSURLConnectionDidReceiveResponse(_CFURLConnection*, _CFURLResponse*, void const*)
6 CFNetwork 0x0000000183185c78 invocation function for block in URLConnectionClient_Classic::_delegate_didReceiveResponse(_CFURLResponse*)
7 CFNetwork 0x00000001831817ac invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const*, void (_CFURLConnection*, CFURLConnectionClientCurrent_VMax const*) block_pointer)
8 CFNetwork 0x000000018323e85c invocation function for block in QCoreSchedulingSet::performAsync(void () block_pointer) const
9 libdispatch.dylib 0x000000018188e1fc __dispatch_call_block_and_release
10 libdispatch.dylib 0x000000018188e1bc __dispatch_client_callout
11 libdispatch.dylib 0x000000018189c3dc __dispatch_queue_serial_drain
12 libdispatch.dylib 0x00000001818919a4 __dispatch_queue_invoke
13 libdispatch.dylib 0x000000018189e34c __dispatch_root_queue_drain
14 libdispatch.dylib 0x000000018189e0ac __dispatch_worker_thread3
15 libsystem_pthread.dylib 0x0000000181a972a0 _pthread_wqthread

#11 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97160 _pthread_wqthread

#12 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread

#13 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread

#14 Thread
0 libsystem_kernel.dylib 0x00000001819d3a88 __workq_kernreturn
1 libsystem_pthread.dylib 0x0000000181a97344 _pthread_wqthread

ios8 Beta Headers

The latest version of ios headers are not included. It'd be great if they were added to this very useful github repo.

IMEI in iOS 7

Hi,
is there any other way to get IMEI using private api in iOS 7? The code below works fine in iOS 6, but not in iOS 7.

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/GAIA.framework"];
BOOL success = [b load];
Class SKTelephonyController = NSClassFromString(@"SKTelephonyController");
id tc = [SKTelephonyController sharedInstance];
NSLog(@"-- imei: %@", [tc imei]);

How to change iPhone screen colour?

How to change iPhone screen colour so that it will not change until we want? And will be the same for all the Apps even my application isn't running in the background.

In my search, I have found that I could do it using GraphicsServices framework, but unfortunately, there's no longer such thing available.

My question: any new API for this? or I am missing something.

How could I get the top most app bundle id and it's run time?

Hi Nicolas Seriot, how could I get the top most app bundle id and it's run time(on ios 9.1)? I found
a header file in the folder AppLaunchStats.framewok, whose name is AppLaunchStatsSBMonitor.h
but it seems not the header file that I need. could you please help me? thank you so much.

Using private API to enable personal hotspot in ios

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/Sharing.framework"];
    BOOL success = [b load];
Class SFRemoteHotspotSession=NSClassFromString(@"SFRemoteHotspotSession");

How do i implement the following method to enable hotspot:-

- (void)enableHotspotForDevice:(id)arg1 withCompletionHandler:(id /* block */)arg2;

How to access CoreTelephony framework?

Hi.

I'm trying to get access to the CoreTelephony framework with the sample code in the README file but it's failing since CoreTelephony.framework does not have a class method named sharedInstance().

Should I declare and implement this method myself in a category or is there another way?

How to access WiFi status?

Hello,

I tried using the WiFiVelocity framework to get information about nearby WiFi networks. I managed to get an instance of the W5Status class through a handler class, but all of its properties (W5WiFiStatus, W5BluetoothStatus etc.) are nil. I can't find any methods in the headers to start a scan or something like that.
Does anyone know how I can access the WiFi status? I'd appreciate the help :)

Here's my code:

WiFiManagerHandler header:

@interface WifiManagerHandler : NSObject

+ (WifiManagerHandler*) sharedInstance;

- (id) wifiStatus;

- (NSString*) bss;

- (id) desc;

@end

.m file:

#import "W5WiFiStatus.h"
#import "W5Status.h"
#import "WifiManagerHandler.h"

static W5Status *_status = nil;
static WifiManagerHandler *_handler = nil;

@implementation WifiManagerHandler

+ (WifiManagerHandler*) sharedInstance {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
       NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/WiFiVelocity.framework"];
        if (![b load]) {
            NSLog(@"Error: Framework not found"); 
        } else {
            Class stat = NSClassFromString(@"W5Status");
            _status = [[stat alloc] init];
            _handler = [[WifiManagerHandler alloc] init];
        }
    });
    return _handler;
}

- (id) wifiStatus {
    return [_status wifi];
}

- (NSString*) bss {
    return [[_status wifi] bssid];
}

- (id) desc {
    return [_status description];
}

@end

IOS Call history

How can i use callhistory framework?
I want read iphone call logs because I have to get last incoming/outgoing call number.
Please help me.

iOS 8.4

Any plan for iOS 8.4 headers?

How can I get OpenCL.framework Headers

First,thank you for sharing! But I can't find OpenCL.framework Headers ,and how can get it? Thanks very mach.(ps:I am chinese ,and my English is not very well.Hope you could understand me.)

which private framework to use to get the battery usage?

Hi, all:
We used /System/Library/PrivateFrameworks/PowerlogLoggerSupport.framework to get the battery usage on iOS 6/7, but now it's gone in iOS 8 private frameworks.
Do you know if there's any alternative? Or do you know any other groups we could ask this question?

Thanks.

can't get bundle

I use SBFBackdropStatisticsProvider like this:

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/SpringBoardFoundation.framework/SpringBoardFoundation"];

or

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/SpringBoardFoundation.framework"];

but b is nil ,any help plz!

How to access ChatKit framework? (Noob)

I do not have frameworks in private ChatKit. I need to download it here and connect to ? I need to use CKSMSComposeRemoteViewControllerDelegate, but it is nil. Could not you have told how to use it ?
2015-12-17 13 09 51 1

Cell id and signal strength returning zero

I have used core telephony framework(CTTelephonyNetworkInfo.h) and used it to get the values of cell id and signal strength using the following code:
CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = [netinfo subscriberCellularProvider];
NSLog(@"%@",[carrier carrierName]);

NSString *cellid=[netinfo cellId];
NSLog(@"cell id=%@",cellid);

NSString *ss=[netinfo signalStrength];
NSLog(@"signal strength=%@",ss);

But it shows cell id=0000 and signal strength=(null)

No errors or warnings are shown. Please help in resolving this issue.

Using private headers in Swift

Hi!

I'm trying to use a private header (BluetoothManager) in a Swift 3 project, but when I try to use any of the methods, the build fails with the following error:

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_BluetoothManager", referenced from: objc-class-ref in BluetoothViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I included the headers in a bridging_header file:

`#ifndef Demo_Bridging_Header_h
#define Demo_Bridging_Header_h

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "BluetoothDevice.h"
#import "BluetoothManager.h"

#endif`

But it still does not work. The project compiles until I use any of the methods. Now i'm trying to load the library from a Swift file using this function:

func loadBluetoothFramework() { self.bluetoothLibHandle = dlopen("/System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager", RTLD_NOW) let bm = NSClassFromString("BluetoothManager") as! BluetoothManager.Type //let btManager: BluetoothManager = bm.sharedInstance() as! BluetoothManager }

I also tried to load the library from a 100% Objective-C project and It works perfectly but when i try to do the same with swift, it crashes.

Am I doing anything wrong?

Thanks for help! ;)

How to automatic update app itself?

assume that user has installed my app. When the user open the app, and later switch the app to background, how can I update the app automatic?
Anyone knows ? Thanks!

Missing sub-frameworks of frameworks

Some frameworks live in a subdirectory of another framework, and they don't seem to be included here. e.g. /Symbols/System/Library/Frameworks/AVFoundation.framework/Frameworks/AVFAudio.framework/AVFAudio

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.