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

Xcode 13 beta - error: Segmentation fault: 11 (in target 'InstantSearchInsights' from project 'InstantSearch') #175

Closed alelordelo closed 3 years ago

alelordelo commented 3 years ago

Describe the bug 🐛 When build on Xcode Beta 13, Xcode won't build and gives this error: error: Segmentation fault: 11 (in target 'InstantSearchInsights' from project 'InstantSearch')

Screenshots 🖥

Screenshot 2021-06-08 at 12 26 23

Environment: macOS Big Sur 11.4 (20F71)

VladislavFitz commented 3 years ago

Hi @alelordelo,

Thanks for reporting this. I will investigate it soon.

alelordelo commented 3 years ago

thanks @VladislavFitz , any update on this? Just waiting for this to be fixed so I can test my app on Xcode Beta

VladislavFitz commented 3 years ago

Hi @alelordelo, Sorry for the delay. I created a PR which might fix the Xcode 13 related issues. As explained in the PR's comment, after fixing the segfault, the compiler still produces a lot of obscure errors, so I wait for the next Xcode beta(s) before proceed as it seems to be an internal compiler issue.

alelordelo commented 3 years ago

great, thanks for looking into this VladislavFitz!

VladislavFitz commented 3 years ago

Hi @alelordelo and @keremcesme ! I managed to detect the source of the segmentation faults and other compiler issues. As I supposed, they are related to Swift 5.5 compiler issues and I found a workarounds. I keep the fixes in the fix/xcode13-issues branch until the Xcode 13 release, hoping the compiler issues will be fixed.
In the meantime you can use this branch in your tests. Thanks for your patience!

keremcesme commented 3 years ago

Hi @VladislavFitz , May I know the Xcode beta 13 version you are testing? I hope all problems will be solved when IOS 15 version is released 🙏 I appreciate your efforts.

VladislavFitz commented 3 years ago

Hi @keremcesme , I tested with Xcode 13 beta 4.

keremcesme commented 3 years ago

Using the fix/xcode13-issues branch seems to have fixed all the bugs. I also tried this branch in Xcode 12.5, it does not give an error in that version. I believe it should be added to the master version. Thank you for your efforts @VladislavFitz

timdegraw commented 3 years ago

Any updates on this? Looks like the fix/xcode13-issues branch hasn't been merged yet. When should we expect a release?

VladislavFitz commented 3 years ago

The branch has been merged and the changes are available in the version 7.13.3