A collection of sample applications demonstrating how to use the PathSense iOS SDK v1.5.1.
For more information, refer to the latest documentation:
👉 http://docs.pathsense.io/ios/html/
or visit the PathSense website.
The legacy developer portal (
developer.pathsense.com) is no longer active.
You can find additional details for each sample in their respective README files:
- PSLocation Sample (Obj-C)
- PSLocation LowPower Sample (Obj-C)
- PSLocation Ambient Sample (Obj-C)
- WakeUp Sample (Obj-C)
- WakeUp Sample (Swift)
- Trips Basic Sample (Swift)
-
Obtain credentials
Contact PathSense to request your Client ID and API Key for the iOS SDK v1.5.1.The old “GET STARTED” flow is no longer active — credentials are issued privately.
-
Project requirements
- Xcode 16 or newer
- iOS 14.0 or later
- Swift 5.9 or Objective-C
-
Add the framework
Add PSLocation.xcframework (or PSLocation.framework) to your Xcode project.
Make sure it is listed under Frameworks, Libraries and Embedded Content and set to Embed & Sign. -
Add a Run Script build phase
In Build Phases of your target, click ➕ → New Run Script Phase and configure it as shown below.
Make sure this phase appears below Embed Frameworks.
-
In your AppDelegate, add the following to
application:didFinishLaunchingWithOptions::- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [PSLocation setApiKey:@"YOUR_API_KEY" andClientID:@"YOUR_CLIENT_ID"]; return YES; }
-
Import the PSLocation framework header in AppDelegate.h:
#import <PSLocation/PSLocation.h>
-
In your AppDelegate, add the following to
application(_:didFinishLaunchingWithOptions:):func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { PSLocation.setApiKey("YOUR_API_KEY", andClientID: "YOUR_CLIENT_ID") return true }
-
Import the PSLocation framework:
import PSLocation
© PathSense Inc. — Updated for SDK v1.5.1 / Xcode 16 / iOS 18

