hashgraph / hedera-sdk-swift

Hedera™ SDK for Swift
Apache License 2.0
24 stars 10 forks source link

Type 'UInt64' does not conform to protocol 'IntegerNumber' #377

Closed ramesh-aureus closed 1 month ago

ramesh-aureus commented 2 months ago

Description

This is the error im getting while running hedera swift sdk.

Could not build the precompiled application for the device. Swift Compiler Error (Xcode): Type 'UInt64' does not conform to protocol 'IntegerNumber' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:301:16

Swift Compiler Error (Xcode): Type 'UInt64' does not conform to protocol 'IntegerNumber' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:332:23

Swift Compiler Error (Xcode): Type 'UInt64' does not conform to protocol 'IntegerNumber' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:350:42

Swift Compiler Error (Xcode): Type 'UInt64' does not conform to protocol 'IntegerNumber' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:470:23

Swift Compiler Error (Xcode): Type 'UInt64' does not conform to protocol 'IntegerNumber' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:517:30

Swift Compiler Error (Xcode): Type 'UInt64' does not conform to protocol 'IntegerNumber' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:535:56

Swift Compiler Error (Xcode): No type for 'T' can satisfy both 'T == UInt64' and 'T : IntegerNumber' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/Protobufs/Rational+ProtobufCodable.swift:3:36

Swift Compiler Error (Xcode): No type for 'T' can satisfy both 'T == UInt64' and 'T : SignedInteger' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/Protobufs/Rational+ProtobufCodable.swift:3:36

Swift Compiler Error (Xcode): No type for 'T' can satisfy both 'T == UInt64' and 'T : SignedNumeric' /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/Protobufs/Rational+ProtobufCodable.swift:3:36

Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code

Steps to reproduce

1) Add the package using URL 2) Run the app

Additional context

Screenshot 2024-08-26 at 5 33 38 PM

Hedera network

mainnet

Version

latest

Operating system

macOS

nirmalpatidar123 commented 2 months ago

@ramesh-aureus I'm also facing same issue. This is because of a dependancy integrated by this library. NumberKit I have manually added this dependancy into my XCode project with exactVersion 2.5.1 and now issue has been resolved.

ramesh-aureus commented 2 months ago

Thank you for the response @nirmalpatidar123 . I did as u mentioned.. but im getting another kind of error.:

Could not build the precompiled application for the device. Swift Compiler Error (Xcode): Extraneous argument labels 'numerator:denominator:' in call /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:335:27

Swift Compiler Error (Xcode): Referencing instance method 'toProtobuf()' on 'Rational' requires the types 'UInt64' and 'Int64' be equivalent /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:430:44

Swift Compiler Error (Xcode): Extraneous argument labels 'numerator:denominator:' in call /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:522:36

Swift Compiler Error (Xcode): Referencing instance method 'toProtobuf()' on 'Rational' requires the types 'UInt64' and 'Int64' be equivalent /Users/darkness/Library/Developer/Xcode/DerivedData/Runner-dvtigcgisdkkghcsrzomqcuqdlmc/SourcePackages/checkouts/hedera-sdk-swift/Sources/Hedera/CustomFee.swift:594:61

SimiHunjan commented 1 month ago

Will be released in the next version in the next day or so