編譯的錯(cuò)誤:
ld: warning: directory not found for option ‘-L/Users/XXX/Downloads/ios’
ld: ‘/XXX/Common/ALiPay/AlipaySDK.framework/AlipaySDK’ does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
原因分析:
是由于支付寶AlipaySDK的二進(jìn)制庫不支持bitcode.而Xcode默認(rèn)是要支持bitcode的,而且如果支持的話,其中所有的二進(jìn)制庫和framework都必須包含bitcode。
解決辦法:
在build setting 中搜索bitcode,并設(shè)置Enable Bitcode為NO即可