SwifterSwift: Getting `ambiguous use of 'makeIterator()'` error when building package with Xcode 14
Describe the bug
The package will fail to build and install when used inside a project being compiled on Xcode 14 beta, with an ambiguous use of 'makeIterator()' error.
To Reproduce
- Add SwifterSwift as a package inside an iOS project.
- Open project in Xcode 14 beta.
- Attempt to build app.
Expected behavior The SwifterSwift package will not fail to build when using Xcode 14 beta.
Additional context
Here’s a screenshot of the error:

I’m about to open a PR which addresses this issue!
- I’ve read, understood, and done my best to follow the Contributing guidelines before opening this issue.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 17 (13 by maintainers)
Workaround changes landed! Was actually an interesting compiler bug finding Thank you @ianclawson @theedov
This is the reduced reproducer:
I’ve already reported the bug on https://github.com/apple/swift/issues/