刚开始集成CoreBitcoin
按readme上面的指示操作
pod 'CoreBitcoin', :podspec => 'https://raw.github.com/oleganza/CoreBitcoin/master/CoreBitcoin.podspec'
不管咋样都无法安装
提示:
target has transitive dependencies that include statically linked binaries:
因为项目是Swift的,查了些资料后,说要把CoreBitcoin.podspec
里面s.static_framework = true
随后我就fork了CoreBitcoin项目到自己仓库,并添加了这行配置
podfile 指定git下载
pod 'CoreBitcoin', :git => 'https://github.com/singer1026/CoreBitcoin.git'
pod install 正常,command+b 编译也正常
但当我import CoreBitcoin后就出现红色的错误
could not build Objective-C module 'CoreBitcoin'
解决方法:注释掉use_frameworks! ,使用use_modular_headers!
# use_frameworks!
use_modular_headers!
网友评论