Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building using swiftenv #1065

Open
timbaev opened this issue May 11, 2022 · 11 comments
Open

Error when building using swiftenv #1065

timbaev opened this issue May 11, 2022 · 11 comments

Comments

@timbaev
Copy link

timbaev commented May 11, 2022

I am trying to install Sourcery via mint, but I get an error:

mint install krzysztofzablocki/Sourcery@1.8.1 --force

🌱 Cloning Sourcery 1.8.1
🌱 Resolving package
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery: error: package at '/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery' is using Swift tools version 5.5.0 but the installed version is 5.3.0
🌱 Encountered error during "swift package resolve". Use --verbose to see full output
🌱  Failed to resolve Sourcery 1.8.1 with SPM

If clone a project (tag 1.8.1) and try to build it, the error will be identical:

swift build -c release

/Users/t.shafigullin/Desktop/Swift/Sourcery: error: package at '/Users/t.shafigullin/Desktop/Swift/Sourcery' is using Swift tools version 5.5.0 but the installed version is 5.3.0

I tried changing the Swift version to 5.6 in the .swift-version file and now the build was successful. This does not seem to be an ideal solution, as it would require a minimum version of Xcode 13.3

Do you have any better ideas?
The problem seems to have occurred after upgrading to Xcode 13.3

@liamnichols
Copy link
Collaborator

... is using Swift tools version 5.5.0 but the installed version is 5.3.0

This suggests that your command line tools are set to a version of Xcode that is using Swift version 5.3, which would be something like Xcode 12.3.. Is that the case?

Can you run swift --version and xcodebuild -version to confirm which version is set?

You can change it using sudo xcode-select -s ... if you need to.

@timbaev
Copy link
Author

timbaev commented Jun 16, 2022

swift --version output:

swift-driver version: 1.45.2 swift-driver version: 1.45.2 swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
Target: arm64-apple-macosx12.0

xcodebuild -version output:

Xcode 13.3
Build version 13E113

I only have Xcode 13.3 installed

@liamnichols
Copy link
Collaborator

liamnichols commented Jun 16, 2022

Interesting. Please also try running Mint with --verbose and share the output

$ mint install krzysztofzablocki/Sourcery@1.8.1 --force --verbose

@liamnichols
Copy link
Collaborator

Sorry, I misread the last part:

I tried changing the Swift version to 5.6 in the .swift-version file and now the build was successful. This does not seem to be an ideal solution, as it would require a minimum version of Xcode 13.3

What version had you specified in .swift-version prior to changing it to 5.6? Version 1.8.0 of Sourcery required Swift 5.6/Xcode 13.3 but version 1.8.1 added support back so that you can use Swift 5.5/Xcode 13.0 or later.

If your .swift-version was something earlier than 5.5 then then unfortunately you are out of luck and you'd need to use Sourcery 1.7.x, which doesn't officially support building via Mint. If it was Swift 5.5 though, it should be fine.

@timbaev
Copy link
Author

timbaev commented Jun 16, 2022

What version had you specified in .swift-version prior to changing it to 5.6?

I changed .swift-version which is in the project. It currently lists Swift version 5.3

@liamnichols
Copy link
Collaborator

Ahhhh I see! Sorry about that, I'm not too familiar with the file as I've never used it.

Do you maybe use something like swiftenv then? I'm just a little confused because I don't think that I have ever used anything that actually checks the .swift-version file before.

We can submit a PR to bump this file up to 5.5, which it probably should have been as part of #1049, I hope that can solve your overall problem?

@liamnichols
Copy link
Collaborator

I just corrected the file so that the version is now set to 5.5. Please let me know if this solves your problem?

@timbaev
Copy link
Author

timbaev commented Jun 17, 2022

I just corrected the file so that the version is now set to 5.5. Please let me know if this solves your problem?

I tried it and first encountered an error:

mint install krzysztofzablocki/Sourcery@master --force

🌱 Cloning Sourcery master
🌱 Resolving package
swift-driver version: 1.45.2 swift-driver version: 1.26.9 swiftenv: version `5.5' (set by /private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.swift-version) is not installed
🌱 Encountered error during "swift package resolve". Use --verbose to see full output
🌱  Failed to resolve Sourcery master with SPM

Then I installed Swift version 5.5 with swiftenv:

swiftenv install 5.5

Now it's fail on building:

mint install krzysztofzablocki/Sourcery@master --force

🌱 Cloning Sourcery master
🌱 Resolving package
🌱 Building package
[1/14] Copying ejs.js
[2/14] Copying lib_InternalSwiftSyntaxParser.dylib
[3/14] Copying lib_InternalSwiftSyntaxParser.framework
remark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimizationremark: Incremental compilation has been disabled: it is not compatible with whole module optimization[4/18] Compiling atomic-counter.c
[5/18] Compiling writer.c
[6/18] Compiling reader.c
[7/18] Compiling parser.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[8/19] Compiling api.c
[9/20] Compiling emitter.c
[10/20] Compiling scanner.c
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization[11/21] Compiling TryCatch TryCatch.m
[12/21] Compiling PathKit PathKit.swift
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:100:19: error: cannot find type 'URL' in scope
  public var url: URL {
                  ^~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:508:32: error: cannot find type 'Data' in scope
  public func read() throws -> Data {
                               ^~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:519:39: error: 'Encoding' is not a member type of struct 'Swift.String'
  public func read(_ encoding: String.Encoding = String.Encoding.utf8) throws -> String {
                               ~~~~~~ ^
Swift.String:1:23: note: 'String' declared here
@frozen public struct String {
                      ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:530:29: error: cannot find type 'Data' in scope
  public func write(_ data: Data) throws {
                            ^~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:546:56: error: 'Encoding' is not a member type of struct 'Swift.String'
  public func write(_ string: String, encoding: String.Encoding = String.Encoding.utf8) throws {
                                                ~~~~~~ ^
Swift.String:1:23: note: 'String' declared here
@frozen public struct String {
                      ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:167:30: error: 'CompareOptions' is not a member type of struct 'Swift.String'
    let rangeOptions: String.CompareOptions = fileSystemInfo.isFSCaseSensitiveAt(path: self) ?
                      ~~~~~~ ^
Swift.String:1:23: note: 'String' declared here
@frozen public struct String {
                      ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:170:37: error: value of type 'String' has no member 'range'
    guard let homeRange = self.path.range(of: home, options: rangeOptions) else { return self }
                          ~~~~~~~~~ ^~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:171:38: error: value of type 'String' has no member 'replacingCharacters'
    let withoutHome = Path(self.path.replacingCharacters(in: homeRange, with: ""))
                           ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:214:71: error: reference to member 'volumeSupportsCaseSensitiveNamesKey' cannot be resolved without a contextual type
      if let resourceValues = try? path.url.resourceValues(forKeys: [.volumeSupportsCaseSensitiveNamesKey]) {
                                                                      ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:286:21: error: cannot find 'ObjCBool' in scope
    var directory = ObjCBool(false)
                    ^~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:301:21: error: cannot find 'ObjCBool' in scope
    var directory = ObjCBool(false)
                    ^~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:494:47: error: cannot find 'UUID' in scope
    let path = try processUniqueTemporary() + UUID().uuidString
                                              ^~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:531:51: error: cannot infer contextual base in reference to member 'atomic'
    try data.write(to: normalize().url, options: .atomic)
                                                 ~^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:547:16: error: cannot use mutating member on immutable value: 'string' is a 'let' constant
    try string.write(toFile: normalize().path, atomically: true, encoding: encoding)
        ~~~~~~ ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:547:21: error: extra arguments at positions #2, #3 in call
    try string.write(toFile: normalize().path, atomically: true, encoding: encoding)
                    ^
Swift.String:2:26: note: 'write' declared here
    public mutating func write(_ other: String)
                         ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:676:61: error: extra arguments at positions #1, #2, #3 in call
      self.directoryEnumerator = Path.fileManager.enumerator(at: path.url, includingPropertiesForKeys: nil, options: options)
                                                            ^
Foundation.FileManager:208:15: note: 'enumerator(atPath:)' declared here
    open func enumerator(atPath path: String) -> FileManager.DirectoryEnumerator?
              ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:676:62: error: missing argument for parameter 'atPath' in call
      self.directoryEnumerator = Path.fileManager.enumerator(at: path.url, includingPropertiesForKeys: nil, options: options)
                                                             ^
                                                             atPath: <#String#>,
Foundation.FileManager:208:15: note: 'enumerator(atPath:)' declared here
    open func enumerator(atPath path: String) -> FileManager.DirectoryEnumerator?
              ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:676:104: error: 'nil' requires a contextual type
      self.directoryEnumerator = Path.fileManager.enumerator(at: path.url, includingPropertiesForKeys: nil, options: options)
                                                                                                       ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/PathKit/Sources/PathKit.swift:682:30: error: cannot find type 'URL' in scope
      if let next = next as? URL {
                             ^~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:18:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var name: String { get }
        ^     ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:18:15: note: Swift structs cannot be represented in Objective-C
    var name: String { get }
              ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:18:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var name: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/AssociatedType.swift:26:89: error: type of expression is ambiguous without more context
            guard let name: String = aDecoder.decode(forKey: "name") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["name"])); fatalError() }; self.name = name
                                                                            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:40:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var name: String { get }
        ^     ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:40:15: note: Swift structs cannot be represented in Objective-C
    var name: String { get }
              ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:40:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var name: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:41:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var arguments: [String: NSObject] { get }
        ^          ~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:41:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var arguments: [String: NSObject] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:43:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var description: String { get }
        ^            ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:43:22: note: Swift structs cannot be represented in Objective-C
    var description: String { get }
                     ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:43:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var description: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Attribute.swift:154:89: error: type of expression is ambiguous without more context
            guard let name: String = aDecoder.decode(forKey: "name") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["name"])); fatalError() }; self.name = name
                                                                            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Attribute.swift:155:111: error: type of expression is ambiguous without more context
            guard let arguments: [String: NSObject] = aDecoder.decode(forKey: "arguments") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["arguments"])); fatalError() }; self.arguments = arguments
                                                                                                  ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Attribute.swift:156:105: error: type of expression is ambiguous without more context
            guard let _description: String = aDecoder.decode(forKey: "_description") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["_description"])); fatalError() }; self._description = _description
                                                                                            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:506:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var modifiers: [SourceryModifier] { get }
        ^          ~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:506:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var modifiers: [SourceryModifier] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:97:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var modifiers: [SourceryModifier] { get }
        ^          ~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:97:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var modifiers: [SourceryModifier] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:306:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var name: String { get }
        ^     ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:306:15: note: Swift structs cannot be represented in Objective-C
    var name: String { get }
              ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:306:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var name: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:495:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var inheritedTypes: [String] { get }
        ^               ~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:495:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var inheritedTypes: [String] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:186:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var inheritedTypes: [String] { get }
        ^               ~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:186:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var inheritedTypes: [String] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:513:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var name: String { get }
        ^     ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:513:15: note: Swift structs cannot be represented in Objective-C
    var name: String { get }
              ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:513:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var name: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:496:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var based: [String: String] { get }
        ^      ~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:496:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var based: [String: String] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:156:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var based: [String: String] { get }
        ^      ~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:156:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var based: [String: String] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:26:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var localName: String? { get }
        ^          ~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:26:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var localName: String? { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:27:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var externalName: String? { get }
        ^             ~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:27:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var externalName: String? { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:30:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var defaultValue: String? { get }
        ^             ~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:30:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var defaultValue: String? { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:31:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var annotations: Annotations { get }
        ^            ~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:31:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var annotations: Annotations { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Enum.swift:52:99: error: type of expression is ambiguous without more context
            guard let typeName: TypeName = aDecoder.decode(forKey: "typeName") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["typeName"])); fatalError() }; self.typeName = typeName
                                                                                      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Enum.swift:55:108: error: type of expression is ambiguous without more context
            guard let annotations: Annotations = aDecoder.decode(forKey: "annotations") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["annotations"])); fatalError() }; self.annotations = annotations
                                                                                               ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:205:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var associatedValues: [AssociatedValue] { get }
        ^                 ~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:205:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var associatedValues: [AssociatedValue] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:203:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var name: String { get }
        ^     ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:203:15: note: Swift structs cannot be represented in Objective-C
    var name: String { get }
              ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:203:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var name: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:204:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var rawValue: String? { get }
        ^         ~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:204:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var rawValue: String? { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:206:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var annotations: Annotations { get }
        ^            ~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:206:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var annotations: Annotations { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:207:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var documentation: Documentation { get }
        ^              ~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:207:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var documentation: Documentation { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Enum.swift:115:89: error: type of expression is ambiguous without more context
            guard let name: String = aDecoder.decode(forKey: "name") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["name"])); fatalError() }; self.name = name
                                                                            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Enum.swift:117:124: error: type of expression is ambiguous without more context
            guard let associatedValues: [AssociatedValue] = aDecoder.decode(forKey: "associatedValues") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["associatedValues"])); fatalError() }; self.associatedValues = associatedValues
                                                                                                               ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Enum.swift:118:108: error: type of expression is ambiguous without more context
            guard let annotations: Annotations = aDecoder.decode(forKey: "annotations") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["annotations"])); fatalError() }; self.annotations = annotations
                                                                                               ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Enum.swift:119:114: error: type of expression is ambiguous without more context
            guard let documentation: Documentation = aDecoder.decode(forKey: "documentation") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["documentation"])); fatalError() }; self.documentation = documentation
                                                                                                     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:152:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var cases: [EnumCase] { get }
        ^      ~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:152:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var cases: [EnumCase] { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Enum.swift:223:95: error: type of expression is ambiguous without more context
            guard let cases: [EnumCase] = aDecoder.decode(forKey: "cases") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["cases"])); fatalError() }; self.cases = cases
                                                                                  ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:218:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var relationship: String { get }
        ^             ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:218:23: note: Swift structs cannot be represented in Objective-C
    var relationship: String { get }
                      ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:218:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var relationship: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:219:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var relationshipSyntax: String { get }
        ^                   ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:219:29: note: Swift structs cannot be represented in Objective-C
    var relationshipSyntax: String { get }
                            ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:219:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var relationshipSyntax: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/GenericRequirement.swift:41:109: error: type of expression is ambiguous without more context
                guard let leftType: AssociatedType = aDecoder.decode(forKey: "leftType") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["leftType"])); fatalError() }; self.leftType = leftType
                                                                                                ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/GenericRequirement.swift:42:117: error: type of expression is ambiguous without more context
                guard let rightType: GenericTypeParameter = aDecoder.decode(forKey: "rightType") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["rightType"])); fatalError() }; self.rightType = rightType
                                                                                                        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/GenericRequirement.swift:43:109: error: type of expression is ambiguous without more context
                guard let relationship: String = aDecoder.decode(forKey: "relationship") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["relationship"])); fatalError() }; self.relationship = relationship
                                                                                                ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/GenericRequirement.swift:44:121: error: type of expression is ambiguous without more context
                guard let relationshipSyntax: String = aDecoder.decode(forKey: "relationshipSyntax") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["relationshipSyntax"])); fatalError() }; self.relationshipSyntax = relationshipSyntax
                                                                                                            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:242:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var path: String { get }
        ^     ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:242:15: note: Swift structs cannot be represented in Objective-C
    var path: String { get }
              ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:242:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var path: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:241:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var kind: String? { get }
        ^     ~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:241:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var kind: String? { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/AST/Import.swift:44:89: error: type of expression is ambiguous without more context
            guard let path: String = aDecoder.decode(forKey: "path") else { NSException.raise(NSExceptionName.parseErrorException, format: "Key '%@' not found.", arguments: getVaList(["path"])); fatalError() }; self.path = path
                                                                            ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:518:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var attributes: AttributeList { get }
        ^           ~~~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:518:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var attributes: AttributeList { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:288:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var argumentLabel: String? { get }
        ^              ~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:288:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var argumentLabel: String? { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:289:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var name: String { get }
        ^     ~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:289:15: note: Swift structs cannot be represented in Objective-C
    var name: String { get }
              ^~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:289:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var name: String { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:295:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var defaultValue: String? { get }
        ^             ~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:295:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var defaultValue: String? { get }
        ^
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:296:9: error: property cannot be a member of an @objc protocol because its type cannot be represented in Objective-C
    var annotations: Annotations { get }
        ^            ~~~~~~~~~~~
/private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Generated/JSExport.generated.swift:296:9: note: inferring '@objc' because the declaration is a member of an '@objc' protocol
    var annotations: Annotations { get }
        ^
'SwiftSyntax' /private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/swift-syntax: warning: found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /private/var/folders/17/b3k3qq7s3f13ccl4lbr_lswr0000gp/T/mint/github.com_krzysztofzablocki_Sourcery/.build/checkouts/swift-syntax/Sources/_CSwiftSyntax/README.md

warning: dependency 'stencil' is not used by any target
🌱 Encountered error during "swift build -c release -Xswiftc -target -Xswiftc arm64-apple-macosx12.4". Use --verbose to see full output
🌱  Failed to build Sourcery master with SPM

@liamnichols
Copy link
Collaborator

Right I see, thanks again! So swiftenv appears to install a separate swift toolchain rather than using the one included as part of Xcode. Looking at the logs, the different toolchain is causing the PathKit dependency to fail complication.

Did the same thing happen using Swift 5.6 installed via swiftenv? Or were you just using the version of swift included as part of Xcode?

@liamnichols liamnichols changed the title Error when building with Xcode 13.3 Error when building using swiftenv Jun 17, 2022
@timbaev
Copy link
Author

timbaev commented Jun 17, 2022

Did the same thing happen using Swift 5.6 installed via swiftenv? Or were you just using the version of swift included as part of Xcode?

Yes, the same error when using Swift 5.6

@liamnichols
Copy link
Collaborator

Ok thanks for confirming. In that case, it looks like these issues are due to using a different Swift toolchain than the one included in Xcode.

I'm not familiar with swiftenv and how the versions of Swift installed using that tool differ to the Xcode toolchain but it looks like this would need some more investigation, as well as potential fixes to upstream dependencies (PathKit judging by the log)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants