periphery icon indicating copy to clipboard operation
periphery copied to clipboard

error: (ParserError) The loaded '_InternalSwiftSyntaxParser' library is from a toolchain that is not compatible with this version of SwiftSyntax

Open leogdion opened this issue 3 years ago • 1 comments

Included SPM and received the following error:

error: (ParserError) The loaded '_InternalSwiftSyntaxParser' library is from a toolchain that is not compatible with this version of SwiftSyntax

leogdion avatar Jun 22 '22 21:06 leogdion

To add my 2 cents, I get this error when running periphery scan on my iOS app. I installed Periphery through Mint.

I do have multiple versions of Xcode installed (not sure if that would mess with it in any way), under build_arguments in my .periphery.yml file, I'm specifying -sdk iphonesimulator and I'm limiting architectures that get built with -arch x86_64 (due to some binary dependencies I'm using not having compiled the arm64 arch for simulators). It manages to build all my specified schemes/targets successfully, but as soon as it gets to indexing it crashes. (even running periphery scan with the --verbose flag didnt get me any more information about the crash or failing command)

* Indexing...
Error: The loaded '_InternalSwiftSyntaxParser' library is from a toolchain that is not compatible with this version of SwiftSyntax

niehusstaab avatar Aug 01 '22 23:08 niehusstaab

Please try again using v2.10.0 and report back if the problem persists, thanks!

ileitch avatar Oct 10 '22 08:10 ileitch