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.
2
Answers
Swift packages have a minimum iOS deployment target. In the case of this package it only supports iOS 14.0 and higher.
Your X ode 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.
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.