ios - 我们可以在 iOS 中用 Swift Package Manager 替换 Cocoapods 吗?

标签 ios swift

我想在我的项目中添加一个新的第 3 方库依赖项,如 Alamofire。我们可以将它与 swift 包管理器一起使用吗?

最佳答案

从 Xcode 11 开始,您可以在 Xcode 项目中使用 Swift 包。参见 Apple's documentation on Swift Packages获取更多信息。

您还可以从 Swift Package Manager repo 了解更多信息在 Github 上。

关于ios - 我们可以在 iOS 中用 Swift Package Manager 替换 Cocoapods 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53857183/

相关文章:

iOS 7,在后台检查更新

IOS TableView :Table View Custom Cell While Scrolling It pre-populates the Value in another cell

php - 带参数的 Swift PHP 文件上传

ios - Swift - 通过 UICollectionView 中的 UISearchBar 过滤 Realm 对象

swift - 如何在普通类中快速创建事件?

swift - 惯用的 Swift 多重通知?

ios - 如何使用属性编写 block 定义?

ios - 在iphone sdk中如何在屏幕打开时使用前置摄像头拍照

python - Swift REPL 抛出 python 错误?

ios - Swift中 "withEvent"的含义,以及一般的参数修饰符