剛開(kāi)始集成CoreBitcoin
按readme上面的指示操作
pod 'CoreBitcoin', :podspec => 'https://raw.github.com/oleganza/CoreBitcoin/master/CoreBitcoin.podspec'
不管咋樣都無(wú)法安裝
提示:
target has transitive dependencies that include statically linked binaries:
因?yàn)轫?xiàng)目是Swift的逛揩,查了些資料后揭璃,說(shuō)要把CoreBitcoin.podspec
里面s.static_framework = true
隨后我就fork了CoreBitcoin項(xiàng)目到自己倉(cāng)庫(kù),并添加了這行配置
podfile 指定git下載
pod 'CoreBitcoin', :git => 'https://github.com/singer1026/CoreBitcoin.git'
pod install 正常,command+b 編譯也正常
但當(dāng)我import CoreBitcoin后就出現(xiàn)紅色的錯(cuò)誤
could not build Objective-C module 'CoreBitcoin'
解決方法:注釋掉use_frameworks! ,使用use_modular_headers!
# use_frameworks!
use_modular_headers!