Unity2018接入微信登录

Info.plist 配置

<key>CFBundleURLTypes</key>
<array>
	<dict>
		<key>CFBundleTypeRole</key>
		<string>Editor</string>
		<key>CFBundleURLName</key>
		<string>weixin</string>
		<key>CFBundleURLSchemes</key>
		<array>
			<string>wx你的appid</string>
		</array>
	</dict>
</array>

<key>NSAppTransportSecurity</key>
<dict>
	<key>NSAllowsArbitraryLoads</key>
	<true/>
</dict>

<key>LSApplicationQueriesSchemes</key>
<array>
	<string>wechat</string>
	<string>weixin</string>
</array>

项目配置, Other Linker Flags

-ObjC
-force_load
$(SRCROOT)/Libraries/Plugins/iOS/WeiXinSDK/libWeChatSDK.a

在这里插入图片描述

其他具体接入参考 https://www.cnblogs.com/zhanghouqi/p/5908000.html

发布了69 篇原创文章 · 获赞 10 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/mhtqq809201/article/details/88837798