JanGorman / Agrume

🍋 A lemony fresh iOS image viewer written in Swift.
MIT License
790 stars 121 forks source link

Variable binding in a condition requires an initializer #335

Closed ciathyza closed 1 year ago

ciathyza commented 1 year ago

Getting lots of these errors when trying to build example: Variable binding in a condition requires an initializer

JanGorman commented 1 year ago

Sorry to hear that. Can you share a screenshot of the errors you're seeing? And which project did you open – the Agrume.xcworkspace is the file you should try when running the examples

Teglgaard commented 1 year ago

Hi @ciathyza - We are not aware why the error came but were able to fix it by running the most common fix for issues with pods which is in terminal running "pod deintegrate && pod install"

Teglgaard commented 1 year ago

Hi again, We also noticed the bug was persistent on < XCode 14 so make sure to update.

JanGorman commented 1 year ago

Ah, the Xcode 14 is a hint then… I recently updated to the newer guard/if let syntax, e.g. here https://github.com/JanGorman/Agrume/commit/cb527996d6f47024c48c4afb80a6db2869556263#diff-917789cb1a7245d59dc362605cc7a664f19ebbca3fdf46ce471380e53a9d6e2aR329

So anything lower than 5.8.5 should work fine with older versions of Xcode

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.