meiqia / meiqiasdk-ios Goto Github PK
View Code? Open in Web Editor NEW美洽 iOS SDK 3.9.17 面向开发者的 Demo。
License: MIT License
美洽 iOS SDK 3.9.17 面向开发者的 Demo。
License: MIT License
[chatViewManager enableMessageSound:false];
设置关闭后依然显示
SDK版本 3.3.2
iOS 10.1.1
Xcode 8.1
美洽iOS 3.4.2复写了tablview 的 viewForHeaderInSection 方法吗?
如今使用sdk,所有tableview中有使用viewForHeaderInSection的会出现内存泄漏,sectionHeaderView无法释放。删除sdk就不会报。
内存泄漏测试工具:MLeaksFinder
这个扩展的这段代码不接受#字符作为颜色字符串的首字符,使得TSMessage加载缺省配置文件TSMessageDefaulDesign.json中的颜色值为0x000000,从而使其背景全部变黑。
+ (UIColor *)colorWithHexString:(NSString *)hexString {
NSScanner *scanner = [NSScanner scannerWithString:hexString];
unsigned result = 0;
[scanner scanHexInt:&result];
return [self.class colorWithHex:result];
}
TSMessage引用的三方的实现是这样的:
+ (HXColor *)colorWithHexString:(NSString *)hexString alpha:(CGFloat)alpha
{
// Check for hash and add the missing hash
if('#' != [hexString characterAtIndex:0])
{
hexString = [NSString stringWithFormat:@"#%@", hexString];
}
// check for string length
assert(7 == hexString.length || 4 == hexString.length);
// check for 3 character HexStrings
hexString = [[self class] hexStringTransformFromThreeCharacters:hexString];
NSString *redHex = [NSString stringWithFormat:@"0x%@", [hexString substringWithRange:NSMakeRange(1, 2)]];
unsigned redInt = [[self class] hexValueToUnsigned:redHex];
NSString *greenHex = [NSString stringWithFormat:@"0x%@", [hexString substringWithRange:NSMakeRange(3, 2)]];
unsigned greenInt = [[self class] hexValueToUnsigned:greenHex];
NSString *blueHex = [NSString stringWithFormat:@"0x%@", [hexString substringWithRange:NSMakeRange(5, 2)]];
unsigned blueInt = [[self class] hexValueToUnsigned:blueHex];
HXColor *color = [HXColor colorWith8BitRed:redInt green:greenInt blue:blueInt alpha:alpha];
return color;
}
请看看吧。
美洽和爱因机器人消息文本类型问题,等待着呢,咋一直不更新发布
在 MQServiceToViewInterface 中 :有如下引用#import "MQMessageFactoryHelper.h" ,MQVisialMessageFactory.h
我们之前引用方式是手动引用的,没有这个文件,直接覆盖sdk目录后,发现上述一些文件存在目录中但没加入xcode 索引目录需要手动拉进来,解决方法是把xcode中之前的MessageModels文件引用清空在把文件全部从新拖进去
堆栈如下:
-[MEIQIA_SRWebSocket _updateSecureStreamOptions] (in ) (SRWebSocket.m:0)
-[MEIQIA_SRWebSocket openConnection] (in ) (SRWebSocket.m:0)
-[MEIQIA_SRWebSocket open] (in ) (SRWebSocket.m:404)
-[MQSocketManager connectSocket] (in ) (MQSocketManager.m:0)
__30+[MQManager openMeiqiaService]_block_invoke (in ) (MQManager.m:1056)
3 Meiqia 0x0000000106588c08 -[MEIQIA__SRRunLoopThread runLoop] + 44
4 Meiqia 0x0000000106588948 __50+[NSRunLoop(MEIQIA_SRWebSocket) SR_networkRunLoop]_block_invoke + 140
5 libdispatch.dylib 0x000000010693e04c _dispatch_client_callout + 20
6 libdispatch.dylib 0x000000010693fbbc _dispatch_once_callout + 136
7 Meiqia 0x0000000106588894 +[NSRunLoop(MEIQIA_SRWebSocket) SR_networkRunLoop] + 84
数据库没创建成功么?
pod方式,在mac mini盒子上编译一直不过,在笔记本上编译都过,找了半天,发现有两个问题,并找到原因
mac mini的磁盘工具默认设置是区分大小写,而mac book默认是不区分大小写,所以这个错误在mac book上被掩盖了,请修复一下,统一是meiQia.h或者meiqia.h
*** Building scheme "Meiqia" in Meiqia-SDK-Demo.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project xxx/Carthage/Checkouts/MeiqiaSDK-iOS/Meiqia-SDK-Demo/Meiqia-SDK-Demo.xcodeproj -scheme Meiqia -configuration Release -derivedDataPath ~/Library/Caches/org.carthage.CarthageKit/DerivedData/10.0_10A255/MeiqiaSDK-iOS/v3.4.7 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/33/16l0lj_94zd89wjd17qmr95m0000gn/T/MeiqiaSDK-iOS SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in xxx/Carthage/Checkouts/MeiqiaSDK-iOS)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/33/16l0lj_94zd89wjd17qmr95m0000gn/T/carthage-xcodebuild.DC9U97.log
objc[44343]: Class MQModel is implemented in both ~/Library/Developer/CoreSimulator/Devices/290ABA71-A5AA-4474-8658-4277905A3818/data/Containers/Bundle/Application/10AEC2FA-FACD-47BA-8AAF-93F92F9042EF/demo.app/Frameworks/Meiqia.framework/Meiqia (0x1130eca68) and ~/Library/Developer/CoreSimulator/Devices/290ABA71-A5AA-4474-8658-4277905A3818/data/Containers/Bundle/Application/10AEC2FA-FACD-47BA-8AAF-93F92F9042EF/demo.app/target (0x10c510770). One of the two will be used. Which one is undefined.
总结下来就是,心累
RT
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/qincheng/Desktop/MyGit/IndustrialMatrix-Swift/QCSwiftProject/Carthage/Checkouts/MeiqiaSDK-iOS/Meiqia-SDK-Demo/Meiqia-SDK-Demo.xcodeproj -scheme Meiqia -configuration Release -derivedDataPath /Users/qincheng/Library/Caches/org.carthage.CarthageKit/DerivedData/9.1_9B55/MeiqiaSDK-iOS/v3.4.3 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath ./ SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO (launched in /Users/qincheng/Desktop/MyGit/IndustrialMatrix-Swift/QCSwiftProject/Carthage/Checkouts/MeiqiaSDK-iOS)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/9z/fj42hrcx4g92xf32mzbyrgjw0000gn/T/carthage-xcodebuild.qHqtvb.log
控制台日志输出是:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_MQInputToolView", referenced from:
objc-class-ref in MQChatViewController.o
"OBJC_CLASS$_MQBotMenuWebViewBubbleAnswerCellModel", referenced from:
objc-class-ref in MQChatViewService.o
"OBJC_CLASS$_MQToolUtil", referenced from:
objc-class-ref in MQChatViewController.o
objc-class-ref in MQAGEmojiKeyBoardView.o
objc-class-ref in MQChatTableView.o
objc-class-ref in MQMessageFormViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** ARCHIVE FAILED **
The following build commands failed:
Ld /Users/qincheng/Library/Caches/org.carthage.CarthageKit/DerivedData/9.1_9B55/MeiqiaSDK-iOS/v3.4.3/Build/Intermediates.noindex/ArchiveIntermediates/Meiqia/IntermediateBuildFilesPath/Meiqia-SDK-Demo.build/Release-iphoneos/Meiqia.build/Objects-normal/armv7/Meiqia normal armv7
Ld /Users/qincheng/Library/Caches/org.carthage.CarthageKit/DerivedData/9.1_9B55/MeiqiaSDK-iOS/v3.4.3/Build/Intermediates.noindex/ArchiveIntermediates/Meiqia/IntermediateBuildFilesPath/Meiqia-SDK-Demo.build/Release-iphoneos/Meiqia.build/Objects-normal/arm64/Meiqia normal arm64
(2 failures)
你好,我尝试每次打开客服界面时都传最新的用户资料,但后台没有更新,难道用户资料只有第一次传递有效,之后的不会覆盖之前的信息么?
1
MQChatViewManager文件包含了MQNamespacedDependencies.h, 而这个头文件中用宏定义替换了MapKit中的MKAnnotationView,但是美洽SDK并没有包含MEIQIA_MKAnnotationView.h,导致只要用到了MKAnnotationView就无法编译
聊天界面出现cell的隐式动画,是由于弹出键盘时候修改table.frame的动画导致的
请给删除数据库中的消息增加操作结果,表明是否删除成功.
/**
* 将数据库中某个message删除
*
* @param messageId 消息id
*/
+ (void)removeMessageInDatabaseWithId:(NSString *)messageId;
建议不要用别人的,自己封装一下。。尽量避免冲突
Property 'sectionHeaderTopPadding' not found on object of type 'MQChatTableView *'
最新版本pod导入提示找不到Masonry的头文件
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.