1) Make sure you are using the latest version of Xcode (8.0+) and targeting iOS 9.0 or higher.
2) Add the PSLocation.framework to your Xcode project.
3) Under the Build Phases tab in your Target, click the + button on the top left and then select New Run Script Phase. Then setup the build phase as follows. Make sure this phase is below the Embed Frameworks phase:
Shell /bin/sh
bash"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/PSLocation.framework/strip-frameworks.sh"
Show environment variables in build log: Checked
Run script only when installing: Not checked
Input Files: Empty
Output Files: Empty
4) In your AppDelegate add the following code to your application:didFinishLaunchingWithOptions:
[PSLocation setApiKey:@"YOUR_API_KEY" andClientID:@"YOUR_API_CLIENTID"];
5) Make sure to include PSLocation framework headers in your AppDelegate.h file:
#import <PSLocation/PSLocation.h>
That’s it, your ready to start using the PSLocation framework.