First lets start by how to link those frameworks
lets assume you want to use SpringBoardServices framework
go to https://github.com/nst/iOS-Runtime-Headers/ and download the headers
search for SpringBoardServices.framework folder and copy all headers inside
go to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/PrivateFrameworks/SpringBoardServices.framework
and create a folder named Headers
replace iPhoneOS.platform with iPhoneSimulator.platform an paste the headers in simulator SDK folder too if you want to try apps on the simulator
- paste the files you just copied inside
Now you can link the SpringBoardServices Framework
Now how to use SpringBoardServices
#include <SpringBoardServices/SpringBoardServices.h>
void openMailApp(){
SBSLaunchApplicationWithIdentifier(CFSTR("com.apple.MobileMail"), false);
};
this will open the mail application
SBSCopyNowPlayingAppBundleIdentifier();
to get the name of the app that currently playing music