Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 podspec,它依赖于另一个库。该库没有发布规范。
在这种情况下,解决依赖关系的最佳方法是什么?"dependency" 关键字只允许引用其他规范,但不能引用外部的 repo(例如通过 repo + SHA-1)
自己发布图书馆的规范?或者我可以创建一个本地 podspec,我使用 repo 提交并以某种方式引用它?
您最好为其他库创建规范,并将该规范作为依赖项包含在您的库中。另一种选择是将库与您的库捆绑并在本地引用规范中的文件。不建议这样做。