Closed ramesh-aureus closed 1 month 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.
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
Will be released in the next version in the next day or so
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
Hedera network
mainnet
Version
latest
Operating system
macOS