【发布时间】:2019-02-15 14:06:32
【问题描述】:
我听从了 Cocoapods 的指示。
下面是我的 Podfile:
platform :ios, '8.2'
pod 'SwiftyJSON', '~> 2.1'
pod 'SwiftSpinner', '~> 0.6'
pod 'Alamofire', '~> 1.1'
pod 'SuperRecord', '~> 1.2'
pod 'Toucan
当我执行 pod install 时,出现以下错误:
用 Swift 编写的 Pod 只能作为框架集成;此功能仍处于测试阶段。将
use_frameworks!添加到您的 Podfile 或目标以选择使用它。
更新:
以下是我的控制台日志:
$ pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (1.1.4)
Installing SuperRecord (1.2)
Installing SwiftSpinner (0.6.0)
Installing SwiftyJSON (2.1.3)
Installing Toucan (0.2.0)
[!] Pods written in Swift can only be integrated as frameworks; this feature is still in beta. Add `use_frameworks!` to your Podfile or target to opt into using it.
【问题讨论】:
-
@DharmeshKheni 上面列出的所有库都在 Swift 中。
-
你使用的pod版本是什么,使用“pod --version”获取。确保使用“sudo gem install cococapods”将 Cocoapods 安装更新到最新版本。