mobclub / sharesdk3.x-for-ios Goto Github PK
View Code? Open in Web Editor NEWShareSDK 3.x for iOS
ShareSDK 3.x for iOS
缺少ShareSDKExtension库导致调用默认分享界面crash,提示+[ShareSDK isClientInstalled]方法未定义,而该方法在ShareSDKExtension库中
自己找的解决办法是:
从官网下载最新的SDK,提取里面的ShareSDKExtension.framework放到项目中即可.
Kakao isn't appearing on sharing list, although we have everything set up where applicable:
registerApp activePlatforms, registerApp onImport, registerApp onConfiguration (with app key and REST key), the URLs are there in Info.plist. There are no debug messages about errors importing Kakao.
We are using ShareSDK installed with CocoaPods. We had APIs for Kakao already imported, because our app was using it for login.
[shareParams SSDKSetupShareParamsByText:defaultContent
images:shareImage // UIImage,第一帧
url:[NSURL URLWithString:shareGifUrl]
title:@""
type:SSDKContentTypeImage];
[shareParams SSDKSetupSinaWeiboShareParamsByText:[SSDKContentEntity new].text
title:@""
image:[NSURL URLWithString:shareGifPath]
url:[NSURL URLWithString:shareGifUrl]
latitude:0.0f
longitude:0.0f
objectID:nil
type:SSDKContentTypeImage];
代码如上,在3.1.4及以前的版本是可以正常使用的
最新的版本上使用时,会提示以下错误,内容编辑视图没有显示图片。
Jan 7 16:55:29 wado[3433] <Error>: CGContextDrawImage: invalid context 0x0. Backtrace:
<__38-[SSUIiPhoneEditorView layoutPortrait]_block_invoke+284>
<__28-[SSDKImage getNativeImage:]_block_invoke46+36>
<__45-[MOBFImageServiceObserver fail:forImageURL:]_block_invoke+104>
<<redacted>+132>
<<redacted>+172>
<-[MOBFImageServiceObserver fail:forImageURL:]+216>
<<redacted>+120>
<<redacted>+144>
<__71-[MOBFImageService getImageWithURL:observer:onLoading:onResult:onFail:]_block_invoke55+172>
<__37-[MOBFImageLoader loadWebImageByURL:]_block_invoke102+128>
<_dispatch_call_block_and_release+24>
<_dispatch_client_callout+16>
<_dispatch_main_queue_callback_4CF+2096>
<<redacted>+12>
<<redacted>+1628>
<CFRunLoopRunSpecific+384>
<GSEventRunModal+180>
<UIApplicationMain+204>
<main+392>
Jan 7 16:55:29 wado[3433] <Error>: CGContextDrawImage: invalid context 0x0. Backtrace:
<__38-[SSUIiPhoneEditorView layoutPortrait]_block_invoke+284>
<__28-[SSDKImage getNativeImage:]_block_invoke46+36>
<__45-[MOBFImageServiceObserver fail:forImageURL:]_block_invoke+104>
<<redacted>+132>
<<redacted>+212>
<-[MOBFImageServiceObserver fail:forImageURL:]+216>
<<redacted>+120>
<<redacted>+144>
<__71-[MOBFImageService getImageWithURL:observer:onLoading:onResult:onFail:]_block_invoke55+172>
<__37-[MOBFImageLoader loadWebImageByURL:]_block_invoke102+128>
<_dispatch_call_block_and_release+24>
<_dispatch_client_callout+16>
<_dispatch_main_queue_callback_4CF+2096>
<<redacted>+12>
<<redacted>+1628>
<CFRunLoopRunSpecific+384>
<GSEventRunModal+180>
<UIApplicationMain+204>
<main+392>
QQ空间以及copy模块呢
可以提供下qq登陆的DEMO么?
如题,升级到xcode8之后发现sharesdk3的很多方法不能正常使用了,改了一些,但ShareSDK.showShareActionSheet()这个方法怎么改都发现有些问题。
ShareSDKPlatforms/QQ 不支持模拟器
https://github.com/MobClub/ShareSDK-for-iOS
这个仓库是最新的,但是没有发布到Cocoapods
麻烦大佬把项目里的UIWebView替换WKWebView
谢谢。
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_MOBFImageService", referenced from:
objc-class-ref in ShareSDK
objc-class-ref in ShareSDKConnector
ld: symbol(s) not found for architecture arm64
MOBFoundation 2.2.1
ShareSDK3 3.4.2 (代码里是3.5.0,但没有提交到podspec)
pod 'MOBFoundation', '~> 2.0.11' #改为这样子就可以正常编译了
iOS8, 点击分享到微信好友/朋友圈,来到微信,但是不分享,再点击Home键回到主屏幕,然后点击App,APP闪退
IMOBFContentEntity.h 引用IMOBFDataModel.h,IMOBFDataModel.h这个头文件找不到
微信登录,如何拿到code??
3.5版本还没到cocopods的官方库吗?
我调用里面的微信支付失败,老是说签名失败,签名是后台返回的,这个签名是后台根据微信的规则搞的。
为何安装成功,并且编译成功后,无法导入framework呢。(添加时,搜索不到ShareSDK)
我对该库进行自定义并私有化, 在本地验证时使用pod lib lint --use-libraries --allow-warnings出现验证失败, 请问您编译的ruby版本, gem, cocoapods版本是多少呢?
用1.1.1版本的cocoapod 集成微信分享时, libwechatsdk.a 和 BeeCloud的微信 libwechatsdk.a 冲突, 无法安装成功.
有时候使用默认分享 sheet 的时候,出现 分享的 icon 不显示, 有时候 需要全部重新 clean all 项目 才会 ok,
我调用微信分享在xcode8.1 ios10.1.1会报错,但是我在xcode8.2,ios10.2就不会报错。
ShareSDK isClientInstalled
你好,就是关于 pod lint 的问题。 正常的lint肯定是lint不过的。会报xcode build 错误。想请教一下怎么处理push时候的lint问题啊?求大神解答
spec文件如下:
Pod::Spec.new do |s|
s.name = 'GMShareKit'
s.version = '0.0.1'
s.summary = 'xxxxxxx '
s.homepage = 'http://xxxx.com'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'xxx' => 'xxxxxx.com' }
s.source = { :git => 'xxxxxx', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.dependency 'ShareSDK3'
s.dependency 'MOBFoundation'
s.dependency 'ShareSDK3/ShareSDKPlatforms/QQ'
s.dependency 'ShareSDK3/ShareSDKPlatforms/SinaWeibo'
s.dependency 'ShareSDK3/ShareSDKPlatforms/WeChat'
s.source_files = 'GMShareKit/Classes//'
s.resource_bundles = {
'GMShareKit' => ['GMShareKit/Assets/'],
}
end
忽略author homepage等,执行pod update后
大家有遇到这样的问题么,求帮助呀。
只有 image 的时候,不能分享到 qq 空间,提示 204的错误,
这个是 qq 分享的文档
适合用户间进行一对一或一对多的内容推荐,如文章、图片、音乐、网络视频、商品主页等。
http://op.open.qq.com/ios_appinfov2/ability?type=baseAbilityIos&appid=1105767421
这个是你们的文档
/**
如题所示。
每次更新这个库都得等半天, 还不一定能更新成功, 作者大大, 能否把源地址替换为国内其他代码托管平台呢?
引入ShareSDK后,再通过pod集成微信SDK会报错,已经存在了a文件。手动集成也报错。而且还不能直接引用ShareSDK里面的微信SDK。
望修复。
pod 'SMSSDK'
pod 'ShareSDK3'
-> Installing MOBFoundation (2.2.11)
> Copying MOBFoundation from `/Users/ElfSundae/Library/Caches/CocoaPods/Pods/Release/MOBFoundation/2.2.11-170a1`
to `Pods/MOBFoundation`
-> Using MOBFoundation_IDFA (2.2.11)
-> Using SMSSDK (2.1.1)
-> Installing ShareSDK3 (3.5.4)
> Copying ShareSDK3 from `/Users/ElfSundae/Library/Caches/CocoaPods/Pods/Release/ShareSDK3/3.5.4-80e42` to
`Pods/ShareSDK3`
- Running pre install hooks
[!] The 'Pods-sheku' target has frameworks with conflicting names: mobfoundation.framework and mobfoundationex.framework.
可能是依赖库的问题
if([WXApi isWXAppInstalled]==NO)
{
[SportProgressView dismissWithError:@"请安装微信" afterDelay:1];
return;
}
调用这个方法,在iphone6,ios10.2,判断不了用户是否安装微信,其实我手机是有微信的。
目前 ShareSDK 中还有一些请求是通过 HTTP 方式而非 HTTPS,根据苹果的政策,2017 年 1 月 1 日开始,所有的新提交 app 默认是不允许使用 NSAllowsArbitraryLoads 来绕过 ATS 限制,希望将 SDK 内部的请求替换成 HTTPS 方式。
附:http://onevcat.com/2016/06/ios-10-ats/
archive 的时候 bitcode失败
[SSEShareHelper screenCaptureShare:^(SSDKImage *sImage, SSEShareHandler shareHandler) {
}]
在ios13系统上,初次安装初次调用截屏分享,返回时app卡死,kill掉再次进入就没问题了
微信的sdk升级了,支持ipv6 你们的是不是也要升级? 微信的通知连接:https://open.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=1463034609&version=5&lang=zh_CN#rd
s.subspec 'ShareSDK' do |sp|
sp.vendored_frameworks = 'ShareSDK/Support/Required/ShareSDKConnector.framework',
'ShareSDK/Support/Optional/ShareSDKExtension.framework'
sp.libraries = 'icucore', 'z', 'stdc++'
sp.resources = 'ShareSDK/Support/Required/ShareSDK.bundle'
end
sp.vendored_frameworks
应加上'ShareSDK/ShareSDK.framework'
SDK 太大,即使翻墙了国内下载速度依然不理想。希望把下载路径更改为国内的或者你们自己的服务器。
国外下载国内的不会这么慢。
最新的SDK版本,中引入的微信SDK不包含支付功能。导致每次pod更新之后文件都发生变化。请对SDK处理一下吧。
请支持Cocoapods安装
+[UIDevice(WBSDKHelpers) getUniqueStrByUUID]:崩溃
我查到SinaSDK那边已经修复,这边需要多久跟进?
我通过cocoapod安装了shareSDK3,《Installing ShareSDK3 (4.0.4)》,跟之前的版本对比,移除了PayResp等相关的类,之前微信支付也是通过shareSDK,现在的版本移除了微信支付相关的支持吗?
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.