Experience ShareSDK - chaolunner/CloudNotes GitHub Wiki
接入微信
-
创建应用并获取App Key和App Secret
https://github.com/chaolunner/CloudNotes/wiki/Images/Experience/share-sdk-create-app.png
-
下载ShareSDK.unitypackage并导入项目
-
注册并登陆WeChat Open Platform
-
创建移动应用并获取AppID和AppSecret
https://github.com/chaolunner/CloudNotes/wiki/Images/Experience/wechat-open-platform-ios-app.png
Universal Link 一栏可以先随便填(之后可以改)或者从MobLink页面拷贝过来
https://github.com/chaolunner/CloudNotes/wiki/Images/Experience/share-sdk-mob-link.png
-
通过审核之后你可以得到AppID和AppSecret
https://github.com/chaolunner/CloudNotes/wiki/Images/Experience/wechat-open-platform-app-id.png
-
添加ShareSDK组件到游戏对象上并进行如下设置:
https://github.com/chaolunner/CloudNotes/wiki/Images/Experience/share-sdk-settings.png
记得注释所有不用的平台,并将所有带有WeChat字样的栏填上AppID和AppSecret,而不光光是截图所示的部分
-
构建iOS版本
如果你没有Apple Developer Program你可以尝试在XCode中删除Associated Domains和Sign In with Apple
https://github.com/chaolunner/CloudNotes/wiki/Images/Experience/xcode-share-sdk.png
如果你有Bitcode相关的编译错误,那你可以尝试禁用Bitcode
https://github.com/chaolunner/CloudNotes/wiki/Images/Experience/xcode-share-sdk-bitcode.png