在使用cocoapod導(dǎo)入Swift第三方時(shí)出現(xiàn)這樣的問題:
Pods written in Swift can only be integrated as frameworks; adduse_frameworks!to your Podfile or target to opt into using it. The Swift Pod being used is: Charts
一開始我安裝oc的配置方法:
platform:ios,'8.0'
pod'Charts','~> 2.1.6'
結(jié)果報(bào)錯(cuò)了漾岳。
英文不好是硬傷啊臣樱,大概意思是:蘋果不允許建包含swift的靜態(tài)庫(kù)碟婆,不同于OC可以使用平臺(tái)版本的語言版本案淋。
針對(duì)這種問題,可以做這樣的處理:
platform:ios,'8.0'
pod'Charts','~> 2.1.6'
use_frameworks!
這樣就可以了。