我借助https://help.github.com/articles/creating-a-new-repository/在github上创建了一个存储库,然后按照以下说明将项目上传到github:
git init
git add .
git commit -m "HelloKit library"
git tag v0.1.0
git remote add origin git@github.com:example/HelloKit.git
git push --set-upstream origin master
git push --tags
但是之后,当我运行命令时,使用此Package.swift文件更新swift软件包
import PackageDescription
let package = Package(
name: "Dependencies",
products: [
.library(name: "Dependencies", type: .dynamic, targets: ["Dependencies"]),
],
dependencies: [
.package(url: "https://github.com/ralfebert/HelloKit.git", from: "0.1.0"),
],
targets: [
.target(name: "Dependencies", dependencies: ["HelloKit"], path: "." )
]
)
我遇到一个错误:
Updating https://github.com/ralfebert/HelloKit.git
error: dependency graph is unresolvable; found these conflicting requirements: Dependencies:
谁知道我做错了什么?