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)
OK,替换后不冲突了。。。。。thanks,这个版本啥时候上?
下个1.8吧。
我等1.8.1吧,1.8有几个1.8.1修复的已知问题有影响到项目
微信的库与 base64.o 也重复了,目前我这边是把微信库剥离了base64.o,不知道有啥问题,不过微信相关调用也正常,希望可以libcocos2d把这个重复也改下。。。
微信哪个库?请上传一下。
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
