1、V3.3.9 -> V3.5.5
0. 备份 TencentOpenAPI.framework of V3.3.9
1. 覆盖 TencentOpenAPI.framework
Q: TencentOAuth.h编译错误
Redefinition of 'TencentAuthorizeState'
Redefinition of enumerator 'kTencentNotAuthorizeState'
Redefinition of enumerator 'kTencentSSOAuthorizeState'
Redefinition of enumerator 'kTencentWebviewAuthorzieState'
Redefinition of 'TencentAuthMode'
Redefinition of enumerator 'kAuthModeClientSideToken'
Redefinition of enumerator 'kAuthModeServerSideCode'
Duplicate interface definition for class 'TencentOAuth'
# 所有@property提示
Property has a previous declaration
A:
#import <TencentOpenAPI/TencentOAuth.h>
替换为(具体路径取决于你的工程)
#import "qq/TencentOpenAPI.framework/Headers/TencentOAuth.h"
即可编译通过
原来的
#import <TencentOpenAPI/QQApiInterface.h>
#import <TencentOpenAPI/QQApiInterfaceObject.h>
不用改或注释掉
2、V3.5.5 -> V3.5.7
0. 备份 TencentOpenAPI.framework of V3.5.5
1. 覆盖 TencentOpenAPI.framework
2. 增加语句(在initWithAppId后) [TencentOAuth setIsUserAgreedAuthorization:YES];