Algolia InstantSearch Swift Package Manager throws Compile error

61 views Asked by At

I am trying to integrate InstantSearch Library via Swift Package Manager.

However, I get this error while compiling:

error: The package product ‘AlgoliaSearchClient’ requires minimum platform version 14.0 for the iOS platform, but this target supports 12.0 (in target ‘InstantSearchCore’ from project ‘InstantSearch’)

Note : All our targets supports minimum deployments target of 14 and more.

Please see the screenshot of the error here.

2

There are 2 answers

1
Alec. On BEST ANSWER

Think there is an issue with the latest version of this package. To resolve in the meantime I have rolled mine back to use v8.19.0 as below which seems to work.

Changes

2
Chris On

Swift packages have a minimum iOS deployment target. In the case of this package it only supports iOS 14.0 and higher.

Your Xcode project has a deployment target of 12.0. You’ll need to raise it to 14.0 in order to use this package.

You can make this change in the Project settings General tab.