Binary Swift Package Manager distribution of Help Lightning HLSDK for iOS and visionOS.
- iOS 17.0+
- visionOS 2.1+
- Xcode with Swift 6 toolchain
| Product | Use in |
|---|---|
HLSDK |
Main app (Objective-C or UIKit integration) |
HLSDKSwift |
Main app (Swift / SwiftUI integration) |
HLSDKScreenSharing |
ReplayKit broadcast upload extension only |
Link HLSDKScreenSharing only on screen-sharing extension targets. Do not link it on the main app target.
In Xcode: File → Add Package Dependencies…
https://github.com/HaleXie/HLSDK-SPM.git
Pin an exact release version (for example 0.1.2) rather than a branch.
Every target that links HLSDK, HLSDKSwift, or HLSDKScreenSharing must add -ObjC to Other Linker Flags.
The HLSDK XCFrameworks are static archives with Objective-C categories. Integrators set this flag on their own targets because Swift Package Manager does not allow remote packages to inject linker flags.
- Open your app project in Xcode.
- Select the Project navigator → your project.
- Under TARGETS, select the app or ReplayKit extension target that links an HLSDK product.
- Open the Build Settings tab.
- Set the filter to All and search for
Other Linker Flags. - Double-click Other Linker Flags for Debug and Release.
- Click + and add:
-ObjC - Repeat for every target that links
HLSDK,HLSDKSwift, orHLSDKScreenSharing.
| Your target links | Add -ObjC |
|---|---|
HLSDK |
Yes |
HLSDKSwift |
Yes |
HLSDKScreenSharing (ReplayKit extension) |
Yes |
In Build Settings, each target should show:
OTHER_LDFLAGS = -ObjC
Rebuild and run on simulator or device.
| Target | Link |
|---|---|
| SwiftUI app | HLSDKSwift |
| UIKit (Swift) app | HLSDK, HLSDKSwift |
| UIKit (Objective-C) app | HLSDK |
| ReplayKit extension | HLSDKScreenSharing |
import HLSDK
import HLSDKSwift
import HLSDKScreenSharing // extension targets only#import <HLSDK/HLSDK.h>Contact Help Lightning for integration documentation, sample apps, and release notes.