Improved

IOS SDK 4.0.0 Release

Version 4.0.0 is a major update to the Castle iOS SDK. This release includes several improvements detailed below. Please review the breaking changes below before upgrading.

What's new

  • Expanded device signals: Additional device signals collected for broader detection coverage.
  • SDK protection: Added obfuscation to protect SDK internals from reverse engineering.
  • Swift-native: Legacy Objective C parts of the SDK have been rewritten in Swift for improved stability and performance.
  • Async configuration: New async variant of configure (configureAsync) that can be safely called from any thread or Swift Task.

Breaking changes

  • import Castle has changed to import CastleSDK
  • Castle.configure() now throws instead of asserting on invalid configuration
  • New Castle.configureAsync() for async configuration call
  • createRequestToken() returns nil instead of an empty string when the SDK is not initialized
  • Minimum supported iOS version is now iOS 13

Resources