api-clients-automation icon indicating copy to clipboard operation
api-clients-automation copied to clipboard

[bug]: Swift client crashing the compiler on Xcode 16 beta

Open alvesmarcel opened this issue 1 year ago • 0 comments
trafficstars

Description

When you try to build an iOS app using AlgoliaSearchClient v9.2.4 in Xcode 16 beta 6, the Swift compiler crashes.

The crash is caused by the use of NSDecimalString. This is a known issue and is also mentioned in the Xcode Release Notes.

Apple may fix this issue before the Xcode 16 RC release, but two easy solutions are mentioned in the Swift GitHub repository. In their release notes, Apple suggests to use Decimal.FormatStyle, but that's only available for iOS 15 and above.

Language

Swift

Client

Search

Steps to reproduce

  1. Download Xcode 16 beta 6
  2. Include AlgoliaSearchClient v9.2.4 as a dependency using SPM (https://github.com/algolia/algoliasearch-client-swift)
  3. Try to build the project

Relevant log output

No response

Self-service

  • [X] I'd be willing to fix this bug myself.

alvesmarcel avatar Sep 04 '24 14:09 alvesmarcel