github下载一个基于alljoyn文件传输的库,使用xcode编译时候遇到几个问题,目前编译已经完成,正在调试传输文件
1.ld: warning: liballjoyn.a, file was built for archive which is not the architecture being linked (i386):
从错误提示可以看出连接的库存在错误,参考之前的例子
building setting link search path 修改为"$(SRCROOT)/../../../../core-alljoyn-master/build/darwin/arm/$(PLATFORM_NAME)/$(CONFIGURATION)/dist/cpp/lib"
原因(CONFIGURATION)需要大写的Release 或者Debug
2.Undefined symbols for architecture i386:
"std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned long, unsigned long) const", referenced from:
在buildphases中连接libstdc++.6.0.9.dylib 改为libstdc++.tbd,原因libstdc++.6.0.9.dylib中的C++函数不支持模拟器。