I need to call these two private APIs to get the purple ports for the front most applications on iOS 6. I have the header files but when linking it always gave me this error:
**Undefined symbols for architecture armv7:
"_GSGetPurpleSystemEventPort", referenced from:
-[ViewController getFrontMostAppPort] in ViewController.o
"_GSCopyPurpleNamedPort", referenced from:
-[ViewController getFrontMostAppPort] in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)**
It seems I need to reference some missingframework or do some other tweaks to get around this? If so, which framework/step am I missing? Any help would be appreciated.
Thanks, Jack.