Pods written in Swift can only be integrated as frameworks
2017-02-08 16:49
555 查看
在使用cocoapod导入Swift第三方时出现这样的问题:
一开始oc的配置方法:
2
3
1
2
3
结果报错了。
2
3
1
2
3
这样就可以了。
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
这样就可以了。
相关文章推荐
- Pods written in Swift can only be integrated as frameworks
- Pods written in Swift can only be integrated as frameworks
- [!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfil
- [!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfil
- Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or
- Pods written in Swift can only be integrated as frameworks; add `use_frameworks!`
- 芒果iOS开发之CocoaPods:Pods written in Swift can only be integrated as frameworks; add `use_frameworks!`
- [Swift]Pods written in Swift can only be integrated as frameworks;
- 关于Pods written in Swift can only be integrated as frameworks问题的解决
- 使用cocopods导入第三方库报错 : [!] Pods written in Swift can only be integrated as frameworks; add `use_framew
- [!] Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfil
- Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
- VB6:关于“Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types.”的编译错误
- there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
- Purchase requisition can only be ordered in system SRM的解决方法(转)
- 1075 - Incorrect table definition;there can be only one auto column and it must be defined as a key
- AIDL 编译报can be an out parameter, so you must declare it as in, out or inout原因探究
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- xx can be an out parameter, so you must declare it as in, out or inout.
- Only one expression can be specified in the select list when the subquery is not introduced with(求助)