URLNavigator icon indicating copy to clipboard operation
URLNavigator copied to clipboard

Carthage not supported?

Open hongxinhope opened this issue 7 years ago • 5 comments

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

hongxinhope avatar Oct 18 '18 09:10 hongxinhope

@devxoul any update on this?

ozgur avatar Feb 01 '19 09:02 ozgur

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.

devxoul avatar Feb 09 '19 11:02 devxoul

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 avatar Apr 17 '19 07:04 teawithfruit

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 avatar Apr 17 '19 09:04 teawithfruit

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.

teawithfruit avatar May 10 '19 19:05 teawithfruit