FlineDev / BartyCrouch

Localization/I18n: Incrementally update/translate your Strings files from .swift, .h, .m(m), .storyboard or .xib files.
MIT License
1.37k stars 121 forks source link

Embed lib_InternalSwiftSyntaxParser.dylib into package #248

Closed Jeehut closed 2 years ago

Jeehut commented 2 years ago

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 commented 2 years ago

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

Jeehut commented 2 years ago

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 commented 2 years ago

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.