"--no-use-binaries"的目的是什么?在迦太基 [英] what's the purpose of "--no-use-binaries" in carthage

查看:137
本文介绍了"--no-use-binaries"的目的是什么?在迦太基的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题所示,迦太基命令行中"--no-use-binaries"的目的是什么?如果错过了这个,会发生什么,有什么好处呢?

As titled, what's the purpose of "--no-use-binaries" in carthage command line? if missing this, what could happen and what's the benefit to have this?

推荐答案

有时在依赖项的项目中预建框架已损坏,因此您需要在本地构建它们.

Sometimes the prebuilt frameworks are corrupted in the dependencies’ project, so you need to build them locally.

此外,这些预先构建的框架不支持分步调试,因此,除非您在本地构建它们,否则您将无法凭借依赖关系使用此功能.

Also, those prebuilt frameworks don’t support step-by-step debugging, so unless you build them locally, you won’t be able to use this feature with your dependencies.

使用--no-use-binaries使用编译器在本地编译项目.

Using --no-use-binaries compiles the projects locally, using your compiler.

执行update命令有时可能会在Swift语言更新到较新版本时产生错误,而依赖项是为较早版本的Swift构建的(即使仍然兼容).您可以使用此标记解决此类情况.

Executing the update command might occasionally produce an error when the Swift language updates to a newer version while the dependency is built for an older version of Swift (even if it’s still compatible). You can solve such scenarios by using this flag.

一个缺点是使用--no-use-binaries标志编译项目需要更长的时间.如果没有该标志,则您请求的是预构建的框架(如果有). 有关更多信息,请参见GitHub上的此迦太基问题.

One disadvantage is that it takes longer to compile the project with the --no-use-binaries flag. Without the flag, you’re requesting the prebuilt framework if it’s available. For more information you can see this Carthage issue on GitHub.

希望我消除了您的疑虑.

Hope I cleared up your doubts.

这篇关于"--no-use-binaries"的目的是什么?在迦太基的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆