我听从Cocoapods的指示.

下面是我的播客文件:

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只能作为框架集成;该功能仍处于测试阶段.在你的Podfile或target中添加use_frameworks!, Select 使用它.

更新:

下面是我的控制台日志(log):

$ 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.

推荐答案

添加"使用框架!"因为:

因为苹果不允许你建立包含

首先,这是因为你不能链接到不同版本的

参考:http://blog.cocoapods.org/CocoaPods-0.36/

Swift相关问答推荐

依赖于@Environment的init@StateObject

为SwiftUI文本视图提供固定宽度,并仅在文本换行时使文本视图底部增大

带DispatchSourceTimer的定时器

我可以为UIMenu设定一个固定的订单吗?

为什么这个快速代码不显示文本字段?

Swift数据关系

Swift:结果的失败类型不能是协议 - Type 'any ShadowError' cannot conform to Error

如何在 SwiftUI 中用图像替换占位符文本?

用户输入以更改通过点击生成的形状大小

带有屏幕参数的 NSWindow 初始化程序在初始化时导致致命错误

在 Select 器上显示alert Select SwiftUI

如何以快速 Select 器菜单样式调整图像大小

AVPlayer 在 iOS 15.4 中寻求 completionHandler 返回 false

如何在不阻塞 UI 更新的情况下使用 Swift Concurrency 在后台执行 CPU 密集型任务?

如何防止 UITableViewCell 移动(Swift 5)

使用自定义相机拍照 iOS 11.0 Swift 4. 更新错误

是否可以在 Swift 中创建通用闭包?

3D touch /强制touch 实现

在 xcode8 中找不到 ModuleName-Swift.h 文件

Switch 语句中的字符串:String不符合协议IntervalType