LaunchDarkly is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!
This version of the LaunchDarkly SDK has been tested across iOS, macOS, watchOS, and tvOS devices.
The LaunchDarkly iOS SDK requires the following minimum build tool versions:
Tool | Version |
---|---|
Xcode | 12.5+ |
Swift | 5.3+ |
And supports the following device platforms:
Platform | Version |
---|---|
iOS | 12.0 |
watchOS | 4.0 |
tvOS | 12.0 |
macOS | 10.13 |
LaunchDarkly supports multiple methods for installing the library in a project. Once installed, head over to the SDK documentation for complete instructions on getting started with using the SDK.
The Swift Package Manager is a dependency manager integrated into the swift
compiler and Xcode.
To integrate LaunchDarkly into an Xcode project, go to the project editor, and select Swift Packages
. From here hit the +
button and follow the prompts using https://github.com/launchdarkly/ios-client-sdk.git
as the URL.
To include LaunchDarkly in a Swift package, simply add it to the dependencies section of your Package.swift
file. And add the product "LaunchDarkly" as a dependency for your targets.
dependencies: [
.package(url: "https://github.com/launchdarkly/ios-client-sdk.git", .upToNextMinor(from: "9.2.0"))
]
To use the CocoaPods dependency manager to integrate LaunchDarkly into your Xcode project, specify it in your Podfile
:
use_frameworks!
target 'YourTargetName' do
pod 'LaunchDarkly', '~> 9.2'
end
To use the Carthage dependency manager to integrate LaunchDarkly into your Xcode project, specify it in your Cartfile
:
To integrate LaunchDarkly into your Xcode project using Carthage, specify it in your Cartfile
:
github "launchdarkly/ios-client-sdk" ~> 9.2
If you prefer not to use the aforementioned dependency managers, it is possible to integrate the SDK manually.
git submodule add https://github.com/launchdarkly/ios-client-sdk.git
.git clone https://github.com/launchdarkly/ios-client-sdk.git
.ios-client-sdk
folder and drag LaunchDarkly.xcodeproj
into the project navigator of your application's Xcode project. It should appear nested within your application's blue project icon.LaunchDarkly.framework
for iOS, or LaunchDarkly_<platform>
for other platforms.Read our documentation for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the complete reference guide for this SDK.
We run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs, as well as test networking behavior in a long-running application. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.
We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.
link |
Stars: 62 |
Last commit: 4 weeks ago |
identify()
with the current context is now more efficient and no longer results in re-establishing a connection.identify()
was called.Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics