algolia / instantsearch-ios

⚡️ A library of widgets and helpers to build instant-search applications on iOS.
https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/ios/
Apache License 2.0
595 stars 58 forks source link

InstantSearch not working with Swift 5.5 #199

Closed devJAdam closed 3 years ago

devJAdam commented 3 years ago

Describe the bug 🐛 I am not able to import InstantSearch with Swift 5.5. I get the following errors. -Could not find module 'InstantSearch' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator -Module compiled with Swift 5.4 cannot be imported by the Swift 5.5 compiler: To Reproduce 🔍 Steps to reproduce the behavior:

  1. Add InstantSearch to your Project
  2. import InstantSearch

Expected behavior 💭 You should be able to import and use InstantSearch

Screenshots 🖥

Environment:

VladislavFitz commented 3 years ago

Hi @devJAdam ,

Thank you for reporting this. Could you precise which dependency manager do you use to add InstantSearch to your project?

devJAdam commented 3 years ago

Hello I used with CocoaPods and also tried with Swift Package Manager

VladislavFitz commented 3 years ago

Looks like you are trying to embed a precompiled library to your project. Normally, when you add InstantSearch dependency via SPM/Cocoapods you fetch the source code which is compiled then on your machine. Could you try to remove the InstantSearch dependency, fully clean your project and Dervied Data folder and try to add it again?

devJAdam commented 3 years ago

Hi I just did removed and added InstantSearch again using SPM and it worked! Thanks for helping!

VladislavFitz commented 3 years ago

Great!