BartyCrouch icon indicating copy to clipboard operation
BartyCrouch copied to clipboard

Embed lib_InternalSwiftSyntaxParser.dylib into package

Open Jeehut opened this issue 2 years ago • 1 comments

Problem Statement

Multiple issues have been raised already, it's time to fix them all: #179, #198, #200, #237, #245, #250.

Suggested Solution

Embed the library as suggested in documentation: https://github.com/apple/swift-syntax#embedding-swiftsyntax-in-an-application

Jeehut avatar Feb 21 '22 09:02 Jeehut

See also: https://www.polpiella.dev/embedding-a-dylib-in-a-swift-package/

Jeehut avatar Feb 21 '22 10:02 Jeehut

This has been done by the Apple team in SwiftSyntax itself (see this release) and version 4.12.1 uses that new version, so this should now be implemented as of 4.12.1.

Jeehut avatar Oct 06 '22 06:10 Jeehut

Update: There still was a linking problem in 4.12.1 so I released 4.13.0 with a different approach, which worked. Therefore, this should be availble in 4.13.0 via Homebrew.

Jeehut avatar Oct 08 '22 11:10 Jeehut