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

Compiler error Xcode 12 #154

Closed ferrlan closed 3 years ago

ferrlan commented 3 years ago

After installing the "InstantSearch" via CocoaPods, I am unable to run my project, and it's showing three build errors upon installing the pod.

Screen Shot 2020-12-23 at 6 22 13 PM
VladislavFitz commented 3 years ago

Hi @ferrlan , Could you precise the versions of InstantSearch and Swift client libraries you use? You can find them in the Podfile.lock file as AlgoliaSearchClient and InstantSearch pods.

ferrlan commented 3 years ago

Screen Shot 2020-12-24 at 10 15 08 PM

Absolutely. Here is that. Also, I found that I can import InstantSearch in my app delegate with no error, but its not until I add the "Insights.register" line that the app shows the error when building. Thank you

VladislavFitz commented 3 years ago

The versions of the libraries look correct, but the code I see on the screenshot above is outdated. Try to remove InstantSearch dependency, clear Cocoapods caches, and then add InstantSearch dependency again. Regarding the issue with Insights, there is actually an error in the Podspec. The patch will be released soon, I'll keep you informed.

ferrlan commented 3 years ago

Thank you! @VladislavFitz

VladislavFitz commented 3 years ago

The issue has been fixed with the patch 7.6.2