CounterExample-Navigation-TimeTravel icon indicating copy to clipboard operation
CounterExample-Navigation-TimeTravel copied to clipboard

Lots of Errors When Trying to Use This Project

Open JimLynchCodes opened this issue 5 years ago • 4 comments

Hi, I tried following in the guide in the README, but I'm getting lots of errors.

Here's what I did:

  1. cloned the repo

  2. ran the carthage command: carthage update --no-build && carthage checkout

console output:

*** Fetching ReSwift-Router
*** Fetching ReSwift
*** Checking out ReSwift-Router at "5231c3e645317c32977b8514aeee6f6f8e3aa16e"
*** Checking out ReSwift at "e623331b63cd0b65e04cdb7a031fc42a41e5f558"
*** Checking out ReSwift-Router at "5231c3e645317c32977b8514aeee6f6f8e3aa16e"
*** Checking out ReSwift at "e623331b63cd0b65e04cdb7a031fc42a41e5f558"

When I open the project in xcode and hit the play button though I get 15 errors: build time output:

ReSwiftRouter project Group
Validate Project Settings Group
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/Carthage/Checkouts/ReSwift-Router/ReSwiftRouter.xcodeproj Update to recommended settings
SwiftLintIntegration Group
Target Integrity Group
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/Carthage/Checkouts/ReSwift/ReSwift.xcodeproj The file “Pods-SwiftLintIntegration.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/Carthage/Checkouts/ReSwift/Pods/Target Support Files/Pods-SwiftLintIntegration/Pods-SwiftLintIntegration.debug.xcconfig)
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/Carthage/Checkouts/ReSwift/ReSwift.xcodeproj The file “Pods-SwiftLintIntegration.release.xcconfig” couldn’t be opened because there is no such file. (/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/Carthage/Checkouts/ReSwift/Pods/Target Support Files/Pods-SwiftLintIntegration/Pods-SwiftLintIntegration.release.xcconfig)
ReSwiftRouter-iOS Group
Warning Group
Directory not found for option '-F/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/Carthage/Checkouts/ReSwift-Router/Carthage/Build/iOS'
ReSwiftCounterExample Group
Warning Group
Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the ReSwiftCounterExample editor.
Swift Compiler Error Group
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/ViewControllers/StatsViewController.swift:19:55: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/ViewControllers/StatsViewController.swift:21:38: Use of undeclared type 'RoutingCompletionHandler'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/ViewControllers/StatsViewController.swift:32:40: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/ViewControllers/StatsViewController.swift:34:38: Use of undeclared type 'RoutingCompletionHandler'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:58:35: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:60:38: Use of undeclared type 'RoutingCompletionHandler'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:67:35: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:69:38: Use of undeclared type 'RoutingCompletionHandler'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:97:51: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:98:13: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:100:38: Use of undeclared type 'RoutingCompletionHandler'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:115:35: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:117:38: Use of undeclared type 'RoutingCompletionHandler'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:131:61: Use of undeclared type 'RouteElementIdentifier'
/Users/jim/Git-Projects/CounterExample-Navigation-TimeTravel/ReSwiftCounterExample/AppDelegate.swift:133:38: Use of undeclared type 'RoutingCompletionHandler'

Are there any other commands I need to run?

Thanks! ❤️

JimLynchCodes avatar Mar 02 '20 21:03 JimLynchCodes

They are changed to as RoutingCompletion, RouteElement respectively.

hejtom avatar Mar 28 '20 11:03 hejtom

Thanks @hejtom, but I'm not understanding your comment. what are you suggesting I do to get it working?

JimLynchCodes avatar Apr 03 '20 02:04 JimLynchCodes

use

github "ReSwift/ReSwift" ~> 5.0.0 github "ReSwift/ReSwift-Router" ~> 0.7.1

in Cartfile

ursasoft avatar Jul 23 '22 21:07 ursasoft

Anyone who got this working: PR's would be very welcome :)

DivineDominion avatar Jul 25 '22 09:07 DivineDominion