1.7.0ios上是自带了Reachability.h这个么?

https://github.com/cocos-creator/cocos2d-x-lite-external/blob/v1.7/ios/libs/libcocosanalytics.a

这个库Download后替换一下。

这个问题会在1.7.2正式版中修复。

替换之后还有重复的符号 _kReachabilityChangedNotification

嗯,这个是统计库的问题。1.7.2 (1.8.1) 中已经修复了。

自定义的引擎要用哪个分支呢?

v1.7-release 分支

并没有好 还是有这个

难道是我打开方式不对?

不是你的锅。我反馈一下。

好的 那这个现在有什么临时的解决办法吗?

没有,要么改外部用的,如果是你自己的代码,你重命名一下,如果是第三方sdk的,那么必须等我们。

duplicate symbol _kReachabilityChangedNotification in:
Reachability.o
Build/Products/Debug-iphoneos/libcocos2d iOS.a(CAReachability.o)
ld: 1 duplicate symbol for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@dumganhar

用这个替换试试看:

https://raw.githubusercontent.com/cocos-creator/cocos2d-x-lite-external/v1.8/ios/libs/libcocosanalytics.a

OK,替换后不冲突了。。。。。thanks,这个版本啥时候上?

下个1.8吧。

我等1.8.1吧,1.8有几个1.8.1修复的已知问题有影响到项目

微信的库与 base64.o 也重复了,目前我这边是把微信库剥离了base64.o,不知道有啥问题,不过微信相关调用也正常,希望可以libcocos2d把这个重复也改下。。。

微信哪个库?请上传一下。

https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419319164&token=&lang=zh_CN

iOS开发工具包

namespace cocos2d {

/** @file
 base64 helper functions
 */

/**
 * Decodes a 64base encoded memory. The decoded memory is
 * expected to be freed by the caller by calling `free()`
 *
 * @returns the length of the out buffer
 *
 @since v0.8.1
 */
int CC_DLL base64Decode(const unsigned char *in, unsigned int inLength, unsigned char **out);

/**
 * Encodes bytes into a 64base encoded memory with terminating '\0' character.
 * The encoded memory is expected to be freed by the caller by calling `free()`
 *
 * @returns the length of the out buffer
 *
 @since v2.1.4
 */
int CC_DLL base64Encode(const unsigned char *in, unsigned int inLength, char **out);

}//namespace   cocos2d

这两个函数都在cocos2d的namespace下面,怎么可能跟微信的冲突呢?
具体冲突的日志内容是?

duplicate symbol _base64Decode in:
    /project/build/jsb-link/frameworks/runtime-src/proj.ios_mac/wxapi/libWeChatSDK.a(base64.o)
    /Users/xduooo/Library/Developer/Xcode/DerivedData/xxxxxx-baawdckntytumxlebrxenlzhxznt/Build/Products/Debug-iphoneos/libcocos2d iOS.a(base64.o)
ld: 1 duplicate symbol for architecture arm64