pod lib lint OCompPay.podspec --allow-warnings --use-libraries --sources="https://gitlab.oneitfarm.com/tanhui/CiNetwork.git,https://github.com/CocoaPods/Specs.git,https://gitlab.oneitfarm.com/tanhui/CiUtil.git,https://gitlab.oneitfarm.com/tanhui/CiBaseComponent.git,https://gitlab.oneitfarm.com/luliangxiao/ocomp-native.git" --verbose
复制代码
s.frameworks = 'CFNetwork', 'CoreMotion', 'Foundation', 'CoreGraphics', 'SystemConfiguration', 'UIKit', 'CoreText', 'QuartzCore', 'CoreTelephony'
s.libraries = 'z', 'sqlite3.0', 'c++'
复制代码
s.header_dir = "openssl"
复制代码
s.vendored_frameworks = 'OCompPay/ThirdSDK/aliPay_SDK_2.0/AlipaySDK.framework'
s.vendored_libraries = 'OCompPay/ThirdSDK/aliPay_SDK_2.0/libcrypto.a', 'OCompPay/ThirdSDK/aliPay_SDK_2.0/libssl.a'
s.vendored_libraries = 'OCompPay/ThirdSDK/Wechat_SDK_1.6.2/libWeChatSDK.a'
复制代码
--use-libraries 须要添加这条命令,由于 weex 是 静态库;
复制代码
s.resource_bundles = {
'CIWebView' => [ 'iOS/Source/CIWebView/bundlejs/web.js']
}
复制代码
pod setup
复制代码
Error Info:Unable to find a specification for depended upon by
Reason:未添加私有库Git路径c++
Error Info: linker command failed with exit code 1 (use -v to see invocation Reason:git
1 文件名重复,检查是否有命名重复的文件github
2 未添加须要依赖的 librariesweb
pod lib lint OCompConversation OCompConversation.podspec --sources=https://gitlab.oneitfarm.com/tanhui/CiNetwork.git,https://github.com/CocoaPods/Specs.git,https://gitlab.oneitfarm.com/tanhui/CiUtil.git,https://gitlab.oneitfarm.com/tanhui/CiBaseComponent.git,https://gitlab.oneitfarm.com/luliangxiao/ocomp-native.git --allow-warnings --use-libraries
pod lib lint
复制代码