Open hongxinhope opened 6 years ago
@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:
github "devxoul/URLNavigator" ~> 2.2.0
to your CartfileCarthage/Checkouts/URLNavigator
and delete the Package.resolved
file if you get the same error like myself in the post above.swift package generate-xcodeproj
.carthage update
or carthage 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:
URLNavigator.xcodeproj
project file.URLNavigatorPackageDescription
in the TARGETS
section. Maybe you should do this also in URLNavigator
and URLMatcher
if there is no version number provided.I hope this helps.