1.使用cocoapods集成 ,pod 'Charts'? pod?'ChartsRealm' 兩個(gè)庫(kù)
cocoapods集成chartes
target 'TodayCool' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
pod 'Charts'
pod 'ChartsRealm'
end
注意:use_frameworks!前沒(méi)有#
缺少第二個(gè)庫(kù) 出現(xiàn) 兩個(gè)錯(cuò)誤 :clang importer creation failed的錯(cuò)誤
2.創(chuàng)建swift 橋接文件
1
switf文件名字不重要
2
3
自動(dòng)生成橋接文件的名字肢娘,在里面@import Charts冰木;
4
3.