Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下这个和ChatkitOC 有什么区别呢, cocoapods集成报错 #1

Open
enochayy opened this issue Jun 19, 2018 · 12 comments
Open
Labels
Q-A Further information is requested

Comments

@enochayy
Copy link

enochayy commented Jun 19, 2018

  1. ChatKit Version: 2.1.6 cocoapods 还没更新 2.1.7

  2. Language:swift

  3. iOS System Version:iOS11

  4. Prototype(是否是真机):YES

  5. Issue Type:集成报错.

1. How to repeat the problem.

删除podfile里面的chatkitOC 然后安装CYLChatkit 编译的时候就会报错

Redefinition of enumerator 'kAVVerboseShow'
Redefinition of enumerator 'kAVVerboseNone'
Redefinition of enumerator 'kAVVerboseShow'
Redefinition of enumerator 'kAVCachePolicyIgnoreCache'
...

Include of non-modular header inside framework module 'AVOSCloudIM.AVIMClient': '/Users/enoch/Desktop/未命名文件夹/a/Pods/AVOSCloud/AVOS/AVOSCloud/AVConstants.h'

很不好意思 是初学者, 希望能得到回复 谢谢您~

@ChenYilong
Copy link
Owner

CYLChatKit 是 ChatkitOC 的 fork版本,版本比 Chatkit 要高。两者 API 基本保持一致。CYLChatKit 升级了AVOSCloud、AVOSCloudIM、SDWebImage版本,修复了诸多bug,适配了iPhoneX、iOS11,集成时注意不要与 Chatkit 同时引入,避免冲突。

@ChenYilong ChenYilong added the Q-A Further information is requested label Jun 19, 2018
@enochayy
Copy link
Author

还是有问题, 哪怕我重新开一个新工程,然后import CYLChatkit 还是会Could not build module 'CYLChatKit'
已经配置好头文件, google了一下好像说Facebook之前SDK也有这个问题后来官方说要import一个什么东西
这样类比过来对我这样的程度来说比较难了..

只能暂时继续用Chatkit了. 希望能看看是什么原因呢

按我自己推测如果您说只是和chatkitOC基本一致不应该出现这样的问题呀 我找不到方法了~
完全新的工程~ 没有冲突的情况~ 晚点我试试重新装XCODE好了 实在没办法

@ChenYilong
Copy link
Owner

是通过下面方式进行的集成吗?

pod 'CYLChatKit', '~> 2.1.9'

建议 pod update

@enochayy
Copy link
Author

是的 完全是按照这个方式. update过了
完全新的工程 没有任何其他的第三方库

又试了一次
新路径
新工程
配置header
始终 Could not build module
奇怪

@ChenYilong
Copy link
Owner

报错信息贴下,或者截图下

@enochayy
Copy link
Author

enochayy commented Jun 21, 2018

2018-06-21 12 53 41

您看看信息充足吗

@ChenYilong
Copy link
Owner

AVOSCloud、AVOSCloudIM的版本是11.0.0,你pod search 一下,看版本对不对。

量外建议清理下 CocoaPods 和xcode缓存,删除工程中的pods文件夹,重新pod update,

@enochayy
Copy link
Author

心态有点崩了, 重新装了XCODE,cocoapods 也清理了所有缓存..

原样新工程集成, CYLChatkit还是一样的问题, 但是集成ChatkitOC就没问题.
头都大了

@ChenYilong
Copy link
Owner

demo里能pod成功吗?

@enochayy
Copy link
Author

huh...能pod成功 我要疯了
demo工程都可以发布了 要是实在不行就用老版本算了 就是现在没申请怎么改都行 到时候担心更乱...
我该做的都做了 到底是哪里的问题呢?

@enochayy
Copy link
Author

更新了ChatKitOC 2.1.1 升级了依赖 =.= 然后也是这个问题

是不是和swift不兼容

@YCHYouCaiHua
Copy link

我也跟你一样了,请问一下解决没?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Q-A Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants