duplicate symbol _protobuf_c_buffer_simple_append in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_default_allocator in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_enum_descriptor_get_value in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_enum_descriptor_get_value_by_name in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_message_descriptor_get_field in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_message_descriptor_get_field_by_name in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_message_free_unpacked in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_message_get_packed_size in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_message_pack in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_message_pack_to_buffer in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_message_unpack in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_out_of_memory in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_service_descriptor_get_method_by_name in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_service_destroy in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_service_generated_init in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
duplicate symbol _protobuf_c_system_allocator in:
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-DA882FF7B298838E.o)
/Users/paul/Android/baidu_tongji_source/app-sdk-ios-branch/app-sdk-ios_1-0-3_BRANCH/Products/ios_api/universal-bin/libBaiduMobStat.a(protobuf-c-5B50085BE1AF747D.o)
ld: 16 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:
选中工程,target,切换到buildsetting标签,定位到other link flag,
输入: 去除-all_load,即可