devxoul / URLNavigator

⛵️ Elegant URL Routing for Swift
MIT License
3.25k stars 297 forks source link

Carthage not supported? #112

Open hongxinhope opened 6 years ago

hongxinhope commented 6 years ago
*** Skipped building URLNavigator due to the error:
Dependency "URLNavigator" has no shared framework schemes for any of the platforms: iOS

If you believe this to be an error, please file an issue with the maintainers at https://github.com/devxoul/URLNavigator/issues/new
ozgur commented 5 years ago

@devxoul any update on this?

devxoul commented 5 years ago

URLNavigator doesn't support Carthage officially because of the cost of maintenance. Actually there is a good news: Carthage will support SPM-only projects from Swift 5.

teawithfruit commented 5 years ago

I've tried to generate a URLNavigator project with spm to build it with carthage in the next step. To do that I've used this command: swift package generate-xcodeproj

And it ends with an error.

Fetching https://github.com/devxoul/Nimble.git
Fetching https://github.com/devxoul/Quick.git
Fetching https://github.com/devxoul/Stubber.git
Completed resolution in 4.08s
Cloning https://github.com/devxoul/Stubber.git
Resolving https://github.com/devxoul/Stubber.git at 1.4.0
Cloning https://github.com/devxoul/Quick.git
Resolving https://github.com/devxoul/Quick.git at swift-5
Cloning https://github.com/devxoul/Nimble.git
Resolving https://github.com/devxoul/Nimble.git at swift-5
error: terminated(128): git -C /Users/adi/Desktop/URLNavigator-master/.build/checkouts/Nimble checkout -f e904448875265bebc82d6e2a6827bbb68ac9ac23 output:
    fatal: reference is not a tree: e904448875265bebc82d6e2a6827bbb68ac9ac23

Is there someting that I've missed to do?

teawithfruit commented 5 years ago

Ok I found my mistake. Here is a little tutorial to build URLNavigator with carthage:

  1. Add github "devxoul/URLNavigator" ~> 2.2.0 to your Cartfile
  2. Checkout your dependencies.
  3. Go to Carthage/Checkouts/URLNavigator and delete the Package.resolved file if you get the same error like myself in the post above.
  4. Now run swift package generate-xcodeproj.
  5. carthage update or carthage update URLNavigator
teawithfruit commented 5 years ago

Today I tried to upload an app to the AppStore. I got an error from iTunes Connect, because of a missing CFBundleVersion. To solve this, you have to do the following steps:

  1. Open the URLNavigator.xcodeproj project file.
  2. Go to the project preferences and choose the URLNavigatorPackageDescription in the TARGETS section. Maybe you should do this also in URLNavigator and URLMatcher if there is no version number provided.
  3. There you have to set a version number, if it is not provided.
  4. Run again the fifth step form the post above.

I hope this helps.