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

Compile failure on XCode 15.3 #3

Open
ryanobjc opened this issue Apr 2, 2024 · 3 comments
Open

Compile failure on XCode 15.3 #3

ryanobjc opened this issue Apr 2, 2024 · 3 comments

Comments

@ryanobjc
Copy link

ryanobjc commented Apr 2, 2024

Building on Xcode Version 15.3 (15E204a)
OS X 14.4.1 (23E224)
BCSwiftFoundation version 12.0.1

My iOS deployment target is 17.4, and the Swift version for my application project is 5, but I don't think those roll down to dependency libraries

Error log:
BCSwiftFoundation/Sources/BCFoundation/Bitcoin/BitcoinAddress.swift:193:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.address, Tag.addressV1]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~

BCSwiftFoundation/Sources/BCFoundation/Bitcoin/Descriptors/OutputDescriptor.swift:71:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.outputDescriptor, Tag.outputDescriptorV1]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BCSwiftFoundation/Sources/BCFoundation/Bitcoin/OutputDescriptorBundle.swift:44:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.accountDescriptor, Tag.accountV1]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

BCSwiftFoundation/Sources/BCFoundation/Bitcoin/PSBT.swift:260:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.psbt, Tag.psbtV1]
^~~~~~~~~~~~~~~~~~~~~~

BCSwiftFoundation/Sources/BCFoundation/Shared/DerivationPath.swift:266:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.derivationPath, Tag.derivationPathV1]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

BCSwiftFoundation/Sources/BCFoundation/Shared/HDKey.swift:40:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.hdKey, Tag.hdKeyV1]
^~~~~~~~~~~~~~~~~~~~~~~~
BCSwiftFoundation/Sources/BCFoundation/Shared/Seed.swift:37:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.seed, Tag.seedV1]
^~~~~~~~~~~~~~~~~~~~~~
BCSwiftFoundation/Sources/BCFoundation/Shared/UseInfo.swift:78:34: error: type of expression is ambiguous without a type annotation
public static var cborTags = [Tag.useInfo, Tag.useInfoV1]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additionally it seems the compiler exits with non-zero code doing this command:
SwiftCompile normal arm64 Compiling\ TxOutput.swift,\ VarInt.swift,\ WIF.swift,\ Witness.swift,\ Ethereum.swift,\ EthereumAccountDerivations.swift,\ EthereumAddress.swift,\ AccountDerivations.swift,\ AddressProtocol.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Bitcoin/TxOutput.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Bitcoin/VarInt.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Bitcoin/WIF.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Bitcoin/Witness.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Ethereum/Ethereum.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Ethereum/EthereumAccountDerivations.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Ethereum/EthereumAddress.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Shared/AccountDerivations.swift checkouts/BCSwiftFoundation/Sources/BCFoundation/Shared/AddressProtocol.swift (in target 'BCFoundation' from project 'BCFoundation')

@ryanobjc
Copy link
Author

ryanobjc commented Apr 2, 2024

weirdly 'swift build' on the exact same machine builds things fine!

@wolfmcnally
Copy link
Collaborator

@ryanobjc Are you using a specific tagged build, or the tip of the master branch?

@ryanobjc
Copy link
Author

ryanobjc commented Apr 2, 2024

I have used both, the latest release and the tip of master. Didn't seem to make a difference alas.

I even tried to add the allegedly missing type info and oddly it didn't change/clear the error. I also tried setting the swift version to all the drop down options, again no difference. It's super weird!

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