Carthage not supported?
*** 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
@devxoul any update on this?
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.
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?
Ok I found my mistake. Here is a little tutorial to build URLNavigator with carthage:
- Add
github "devxoul/URLNavigator" ~> 2.2.0to your Cartfile - Checkout your dependencies.
- Go to
Carthage/Checkouts/URLNavigatorand delete thePackage.resolvedfile if you get the same error like myself in the post above. - Now run
swift package generate-xcodeproj. -
carthage updateorcarthage update URLNavigator
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:
- Open the
URLNavigator.xcodeprojproject file. - Go to the project preferences and choose the
URLNavigatorPackageDescriptionin theTARGETSsection. Maybe you should do this also inURLNavigatorandURLMatcherif there is no version number provided. - There you have to set a version number, if it is not provided.
- Run again the fifth step form the post above.
I hope this helps.