2018-4-21 总结
oc应该也可以用
报错:
ld: '/Users/macos/Desktop/TTRsa/Pods/OpenSSL/lib/libcrypto.a(bio_lib.o)' 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 arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
当你从cocopod下来 OpenSSL时/或者不管从什么地方直接获取到文件拖进工程的,可能在真机下会遇到此错误,当然只要你把 bitCode设置为NO就可以通过
但我是强迫症,我不想这么干!!!!!!!!!!!!!!!!!!
原因 :libcrypto.a 这个文件太旧了,你必须想办法弄个新的来代替。
最方便的就是直接从 支付宝最新支付Demo拿来用或者你自己整一个
当你从我Demo把文件拖进你工程时,还要添加一下路径,不然会报错:xxxx文件not fond
我这里提供了Demo,不出意外,应该没问题
https://gitee.com/null_913_7816/TTRSA