第一个,找不到
[QQApiInterface class]
/** 连接QQ空间应用以使用相关功能,此应用需要引用QZoneConnection.framework http://connect.qq.com/intro/login/上申请加入QQ登录,并将相关信息填写到以下字段 如果需要实现SSO,需要导入TencentOpenAPI.framework,并引入QQApiInterface.h和TencentOAuth.h,将QQApiInterface和TencentOAuth的类型传入接口 **/ [ShareSDK connectQZoneWithAppKey:@"100371282" appSecret:@"aed9b0303e3ed1e27bae87c33761161d" qqApiInterfaceCls:[QQApiInterface class] tencentOAuthCls:[TencentOAuth class]];
#import <TencentOpenAPI/QQApiInterface.h>
#import <TencentOpenAPI/TencentOAuth.h>
第二个,5s报错 "_OBJC_CLASS_$_TencentOAuth", referenced from:
把$(ARCHS_STANDARD_32_BIT)这个加进去了我采用第二种方法
第三个错误:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv7 armv6).
真机调试就报 No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv7 armv6)错误。虚拟机没事,一旦用真机就报这个错误,开始以为是我安装几个软件之后,安装不成功,系统问题。然后就是重装系统,都不成功。最终解决办法:
1.把Build Active Architecture Only 下面的Debug 设为NO release 设置为YES
关于URL Schemes的设置