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
複製代碼