iOS 微信支付(本地)

iOS 微信支付(本地)_第1张图片
image.png

添加后报以下的错误
'libxml/tree.h' file not found
image.png

${SDK_ROOT}/usr/include/libxml2

iOS 微信支付(本地)_第2张图片
image.png

解决以后出现20个错误

'release' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'release'
'autorelease' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'autorelease'
'retain' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'retain'
iOS 微信支付(本地)_第3张图片
'release' is unavailable:
-fno-objc-arc

1.在targets->build phases中修改compiler Flags属性,添加:-fobjc-arc,就可以让旧的工程支持arc;
2.在targets->build phases中修改compiler Flags属性,添加:-fno-objc-arc,就可以让支持arc的工程不使用arc

iOS 微信支付(本地)_第4张图片
-fno-objc-arc

你可能感兴趣的:(iOS 微信支付(本地))