Swiftpack.co - rakutentech/ios-sdkutils as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
iOS library with utilities for SDK developers https://rakutentech.github.io/ios-sdkutils
.package(url: "https://github.com/rakutentech/ios-sdkutils.git", from: "2.0.0")

Build Status


Rakuten's SDK Team internal utilities module

RSDKUtils module contains useful utilities, extensions, and common classes used in SDK development.

RSDKUtils consists of 4 sub-modules:

  • Main - Contains the most common utilities for various purposes like networking, data storage, and standard class extensions.
  • TestHelpers - Contains useful mocks and XCTest extensions.
  • Nimble - Adds additional Nimble expectations like toAfterTimeout.
  • RLogger - A tool for managing your log messages.

This module supports iOS 11.0 and above. It has been tested with iOS 11.1 and above.

How to install

Installing with CocoaPods

To use the module in its basic configuration your Podfile should contain:

# Defined also as 'RSDKUtils/Main'
pod 'RSDKUtils', :git => '~> 2.0'

To use other functionalities, add their respective subspec to your Podfile:

pod 'RSDKUtils/TestHelpers', '~> 2.0'
pod 'RSDKUtils/Nimble', '~> 2.0'
pod 'RSDKUtils/RLogger', '~> 2.0'

Run pod install to install the module.
More information on installing pods: https://guides.cocoapods.org/using/getting-started.html

Installing with Swift Package Manager

Open your project settings in Xcode and add a new package in 'Swift Packages' tab:

  • Repository URL: https://github.com/rakutentech/ios-sdkutils.git
  • Version settings: branch master or 2.0.0 "Up to Next Major"

Choose one of the following products for your target:

  • RSDKUtilsMain
  • RSDKUtilsTestHelpers
  • RSDKUtilsNimble
  • RLogger

Using the SDK

In order to use available utilities you need to add import statement in your source file:

Installed with Cocoapods

import RSDKUtils

Installed with SPM

Depending on which product(s) you want to use, add one or more import:

import RSDKUtilsMain
import RSDKUtilsNimble
import RSDKUtilsTestHelpers
import RLogger

Testing the module

You can test the module as a Swift Package and as a Cocoapod.

Test Cococapod

Run pod install then open RSDKUtils.xcworkspace and run Tests target.

Test Swift Package

Open Package.swift in Xcode, choose iOS Simulator and run Tests target.

⚠️ WARNING: Command-line testing is not available at the moment because of bug https://bugs.swift.org/browse/SR-13773

swift package clean
swift test -Xswiftc "-sdk" -Xswiftc `xcrun --sdk iphonesimulator --show-sdk-path` -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.5-simulator"


Stars: 3
Last commit: 5 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.


Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics