ios - Nativescript 插件在 Podfile 中指定 Pod 版本

标签 ios angular cocoapods nativescript

我目前正在创建一个插件,它是 iOS SDK 的包装器。我需要使用旧版本的 SDK,但我不知道如何指定要下载和使用的 pod 版本。我正在使用平台文件夹 > iOS 中的 Podfile。看起来像这样。

pod 'AccountKit', '5.0.1'

但问题是,它正在自动下载并安装最新版本(5.3.0),正如我从控制台中可以看出的那样。是我指定的版本错误,还是这是一个错误?我看到了以这种方式设置 podfile 的示例(非本地脚本项目)。 Nativescript 有什么不同吗?

如果这意味着什么的话,我正在使用 {N} 6.0.3 和 Angular。

最佳答案

试试这个
pod 'AccountKit', '<= 5.0.1'
这将安装版本 5.0.1 和任何较低版本。
如需更详细的文档,click this .

关于ios - Nativescript 插件在 Podfile 中指定 Pod 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57444548/

相关文章:

iphone - iOS - 使用 APNS 处理推送通知

ios - 如何在 iPhone 上用 Swift 实现 UDP 客户端和发送数据?

iOS GMaps 委托(delegate) mapView : markerInfoWindow: not implemented

html - CSS Bootstrap : list-group-item hover+selected

javascript - 从 Angular 4 向 Express 发送删除请求中的数组

ios - 将字典数据转换为 HTTP url 格式

angular - tbody 中的 formArray 仅需要验证一列

swift - Cocoapod "pod spec lint"CompileSwift 返回不成功的退出代码

ruby - Pod MissingSpecError、Ruby、Gem、Cocoapods 等

ios - CocoaPods 找不到私有(private)仓库中的 Pod