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

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

除非微信这个库也用了cocos2d这个namespace,否则不可能冲突。。。

我在测试工程中加入这个库,然后调用相关接口,然而并没有冲突。

用Pod试试,微信库不用Pod,其他三方库用Pod?Other Linker Flags 和 Library Search Paths 中添加 $(inherited)

有可能是数据统计的 SDK 里面带了这个库。麻烦试试 1.7.2

用的就是1.7.2正式版,Reachability.o冲突用dumganhar给的新版统计SDK就好了。还有个微信的库重复冲突,为了完美,可以趁机也改了,:grinning:

能否具体说说步骤,没怎么用Pod。。。

要不你给我一个demo工程吧。我试试。

奇怪奇怪,新建项目做demo没有重现,我再看看:sweat_smile: