xinguang / wechatkit Goto Github PK
View Code? Open in Web Editor NEW一款快速实现微信第三方登录的框架(Swift版) SDK 1.8.5
Home Page: https://Xinguang.github.io/WechatKit
License: MIT License
一款快速实现微信第三方登录的框架(Swift版) SDK 1.8.5
Home Page: https://Xinguang.github.io/WechatKit
License: MIT License
have issue with Xcode 10 beta 2
👎 Multiple commands produce '/Users//Library/Developer/Xcode/DerivedData/-cxldsjycvdwqogglttmoyozcxckq/Build/Products/Debug-iphonesimulator/WechatKit/WechatKit.framework/Info.plist':
RT
这个会是啥问题 多谢啦~
运行 Demo 也是同样的错误 shared 貌似在代码里面就没有看到
我的 qq 651948332
weixin lxx451
有不懂或者遇到问题可以直接交流呀
本来集成你这个 不想再入侵代码
如下:
Warning: no rule to process file '/Users/exterry/Dropbox/Apps/mydemoapp/Pods/WechatKit/SDKExport/libWeChatSDK.a' of type archive.ar for architecture arm64
Warning: no rule to process file '/Users/exterry/Dropbox/Apps/mydemoapp/Pods/WechatKit/SDKExport/read_me.txt' of type text for architecture arm64
wechatKit pod不下来,是不是需要全局翻墙?
目前的分享方法
public func share(_ scence: WXScene,
image: UIImage?,
title: String,
description: String,
url: String? = "https://open.weixin.qq.com/",
extInfo: String? = nil)
其一是无法得到分享成功失败的回调信息,
其二是无法分享纯文本类型、图片类型、音乐类型、视频类型等信息。
我想法是把分享方法修改成如下:
public func share(_ scence: WXScene, _ shareContent: ShareContent, completionHandler: AuthHandle? = nil) {
self.completionHandler = completionHandler
WXApi.send(shareContent.getReq(scence))
}
其中 ShareContent 为一个枚举类型:
public enum ShareContent {
case Text(text: String)
case Image(image: Data, messageExt: String, action: String, thumbImage: UIImage)
case Link(urlString: String, title: String, description: String, thumbImage: UIImage)
case Music(musicURL: String, dataURL: String, title: String, description: String, thumbImage: UIImage)
case Video(videoURL: String, title: String, description: String, thumbImage: UIImage)
case mediaMessage(WXMediaMessage)
}
使用上会是这样
WechatManager.shared.share(WXSceneSession, .Text(text: "test")) { (result) in
switch result {
case .success(_):
print("分享成功")
case .failure(let e):
print(e.description)
}
}
大家想法是怎样的?
用 cocoapods 安装之后,在编译时出现两个警告。
warning: no rule to process file '../Pods/WechatKit/SDKExport/libWeChatSDK.a' of type archive.ar for architecture x86_64
warning: no rule to process file '../Pods/WechatKit/SDKExport/read_me.txt' of type text for architecture x86_64
您好,您的代码中,微信的code,直接用来在私有方法里获取token了。请问code有办法拿到吗
请问有适配Swift 4.0的计划吗?
谢谢
你说ipad上登录,是手机号和隐藏两种,但是陌陌这个app装在ipad上,然后打开陌陌选择微信登录陌陌,拉起的微信会显示一个二维码,要扫描二维码完成陌陌登录,想问个问题,这种你遇到过吗,这个功能是微信sdk实现的吗
希望支持微信未安装时 默认微信自己的短信登录
App crashes when calling sendAuth in XCode 9.3.
希望支持 wechat pay
添加完 报了好多错误
extension 的方法不能调用
在facebook的api中也有一个类似的回调写法:
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool
{
return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)
}
这样应该会和WechatKit冲突吧? 有什么办法可以兼顾呢?
谢谢!
通过WechatManager.openid获取openid一直为nil,但是在WechatManager类里面打印WechatManager.openid则不为空,怎么回事
hello!
Type 'WechatManager' has no member 'sharedInstance'?
hi @StarboyChina ,
我今天把CocoaPods更新到1.0.1后发现会出现如下编译错误:
'WechatKit/WechatKit.h' file not found
Could not build Objective-C module 'WechatKit'
而在此之前都是好好的,不知道是什么原因导致的
你这个能不能给个详细的demo,只是写了一些零碎的东西,让初学者很难去真正运用啊
请问有考虑支持 catalyst吗?谢谢!
想请教一下,为什么不支持依赖 WechatOpenSDK。
我现在也是想用 Swift 做 Wechat 的封装,但是没找到依赖 WechatOpenSDK 的办法,推库会报错。
所以想请教下作者是否在这方面有什么结论?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.