中国建设银行网站首页下载,建设安全备案登入那个网站,网站建设公司选择意见书,网站备案有时间吗手动集成的原因 由于腾讯未把Tencent SDK上传到Github中#xff0c;所以我们不能通过Cocoapods的方式集成#xff0c;只能通过官方下载其SDK手动集成。
Tencent SDK手动集成步骤
1.访问腾讯开放平台SDK下载界面#xff0c;找到并下载iOS_SDK_V3.5.1。#xff08;目前最新…手动集成的原因 由于腾讯未把Tencent SDK上传到Github中所以我们不能通过Cocoapods的方式集成只能通过官方下载其SDK手动集成。
Tencent SDK手动集成步骤
1.访问腾讯开放平台SDK下载界面找到并下载iOS_SDK_V3.5.1。目前最新
2.解压该压缩包会看到TencentOpenApi(Lite)_3文件夹里面的两个文件TencentOpenApi_IOS_Bundle.bundle、TencentOpenAPI.framework就是我们要集成进行的
3.将以上两个文件导入到项目中如图所示 导入TencentOpenAPI框架
4.项目添加QQ白名单把以下schemes添加到项目的info.plist以源码的方式打开即可
keyLSApplicationQueriesSchemes/key array stringmqqapi/string stringmqq/string stringmqqOpensdkSSoLogin/string stringmqqconnect/string stringmqqopensdkdataline/string stringmqqopensdkgrouptribeshare/string stringmqqopensdkfriend/string stringmqqopensdkapi/string stringmqqopensdkapiV2/string stringmqqopensdkapiV3/string stringmqqopensdkapiV4/string stringmqzoneopensdk/string stringwtloginmqq/string stringwtloginmqq2/string stringmqqwpa/string stringmqzone/string stringmqzonev2/string stringmqzoneshare/string stringwtloginqzone/string stringmqzonewx/string stringmqzoneopensdkapiV2/string stringmqzoneopensdkapi19/string stringmqzoneopensdkapi/string stringmqqbrowser/string stringmttbrowser/string /array
5.添加URL Type登录腾讯开放平台获取已经注册好的应用ID来注册URL Schemes为tencentAPP ID
6.在腾讯开放平台验证Universal Link。举例https://m.mojidict.com/qq_conn/APPID这一步很重要涉及到跳转回第三方APP事件
7.导入依赖框架 Foundation.framework UIKit.framework libc.tbd libsqlite3.tbd Security.framework libz.tbd libiconv.tbd CoreTelephony.framework CoreGraphics.framework SystemConfiguration.framework libz.1.1.3.tbd
8.最后编译并运行项目Xcode未报错。So easy的感觉看似集成成功了! 但是…
当导入以下框架并初始化SDK时#import TencentOpenAPI/TencentOAuth.h #import TencentOpenAPI/QQApiInterface.h[[TencentOAuth alloc] initWithAppId:MOJiQQAppID andUniversalLink:MOJiQQAppUniversalLink delegate:self];
报错如图所示 网上查了各种资料都不好使真的什么都查过了。试了还是无解
突然想到腾讯技术客服…要不问问? 我TM放弃了 腾讯没有客服啊…
后面尝试运行官方提供的demo编译是可以通过的。但是为什么我这里创建的项目就不好使了呢
一度怀疑人生…
此时经过一番折腾…
然后直盯盯地看着这些错误警告不知怎滴突然发现 上面几张图中其中错误1、错误3这两张图反馈的错误是不能构建模块TencentOpenApi奇怪了为什么腾讯的SDK开放给我们的头文件会有如下导入操作#import sdkdef.h #import QQApiInterfaceObject.h 注意我们在自定义框架的时候都会有这么一段话// In this header, you should import all the public headers of your framework using statements like #import XXX/PublicHeader.h 然后给外部使用的头文件中也需要以这这种方式导入头文件这时候找到对应的头文件手动分别修改为
#import TencentOpenAPI/sdkdef.h #import TencentOpenAPI/QQApiInterfaceObject.h 修改后图示 把#import “sdkdef.h”改为#import TencentOpenAPI/sdkdef.h 把#import “QQApiInterfaceObject.h”改为#import TencentOpenAPI/QQApiInterfaceObject.h
继续步骤8…
9.再次编译运行项目成功没办法只能手动在框架里面修改了 总结 1.腾讯的SDK文档老旧很多操作步骤都是多余的不建议大家看直接看这里即可 坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑坑