xcode 使用pod导入SSIDCard库,直接导入报错:
The 'xxx' target has transitive dependencies that include statically linked binaries:
在pod文件内添加:
pre_install do |installer|
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
修改后pod文件:
target 'xxx' do
use_frameworks!
pre_install do |installer|
# workaround for https://github.com/CocoaPods/CocoaPods/issues/3289
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
pod 'AFNetworking','~> 3.1.0'
pod 'Masonry'
pod 'MJExtension'
pod 'MJRefresh'
pod 'MBProgressHUD'
pod 'SVProgressHUD'
pod 'SSIDCard'
end
注意添加 end,本人第一次没有加end导致报了个错误:
Invalid `Podfile` file: syntax error, unexpected end-of-input, expecting end