如何将本地软件包添加到Xcode Swift项目?

发布于 2025-02-02 22:58:40 字数 400 浏览 2 评论 0 原文

我想将SwiftyDropbox软件包本地添加到我的Xcode Swift项目中,以使其构建最快。

我在swiftydropbox github url上增加了依赖性,它运行正常,但是在Xcode Clean(即RealClean)之后需要一分钟的时间才能构建。

我正在关注Apple的文章“将软件包依赖关系编辑为本地软件包”,但步骤3不起作用:“在Finder中选择Swift软件包的文件夹并将其拖动到项目Navigator中”。

I want to add SwiftyDropbox package locally to my Xcode Swift project so it builds fastest.

I added dependency to SwiftyDropbox github URL and it runs ok, but takes over a minute to build after Xcode clean (ie. realclean).

I'm following Apple's article "Editing a Package Dependency as a Local Package" but step 3. doesn't work: "Select the Swift package’s folder in Finder and drag it into the Project navigator".

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

羁拥 2025-02-09 22:58:40

您可以使用添加本地... 按钮

You can use the Add Local... button
use "Add Local..." button

如梦初醒的夏天 2025-02-09 22:58:40

我已经将其添加到本地存储库中,然后将本地路径添加到该仓库的文件夹中。

file:/// absolute_path

”在此处输入图像描述”

I've added it to the local repo and then added the local path to the folder of that repo.

file:///absolute_path

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文