您的位置:首页 > 移动开发 > Swift

Pods written in Swift can only be integrated as frameworks

2017-02-08 16:49 555 查看
在使用cocoapod导入Swift第三方时出现这样的问题: 

Pods written in Swift can only be integrated as frameworks; add [code]use_frameworks!
 to your Podfile or target to opt into using it. The Swift Pod being used is: Charts [/code]

一开始oc的配置方法:

platform :ios, '8.0'
pod 'Charts', '~> 2.1.6'
1
2
3
1
2
3

结果报错了。
解决方法为:( 苹果不允许建包含swift的静态库,不同于OC可以使用平台版本的语言版本。 )

platform :ios, '8.0'
pod 'Charts', '~> 2.1.6'use_frameworks!
1
2
3
1
2
3

这样就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios pods
相关文章推荐