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

Carthage not supported? #112

Open
hongxinhope opened this issue Oct 18, 2018 · 5 comments
Open

Carthage not supported? #112

hongxinhope opened this issue Oct 18, 2018 · 5 comments

Comments

@hongxinhope
Copy link

*** 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
Copy link

ozgur commented Feb 1, 2019

@devxoul any update on this?

@devxoul
Copy link
Owner

devxoul commented Feb 9, 2019

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
Copy link

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
Copy link

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
Copy link

teawithfruit commented May 10, 2019

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.

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

4 participants