1. 2个库之间文件名重复
crash:
clang: warning: libstdc++ is deprecated; move to libc++
clang: warning: libstdc++ is deprecated; move to libc++
ld: warning: -L path '/Users/jun/Desktop/SuperApp317 2/smarthome_new/Libs(第三方库)/SmartConnection/liblibelian.a' is not a directory
ld: warning: directory not found for option '-L/Users/jun/Desktop/SuperApp317 2/smarthome_new/Libs(第三方库)/DoorBell/lib'
ld: warning: directory not found for option '-L/Users/jun/Desktop/SuperApp317 2/smarthome_new/Libs(第三方库)/hx_IM/plugin'
ld: 6duplicate symbolsfor architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
原因:duplicate symbols————>>http://blog.csdn.net/crazyzhang1990/article/details/49586049
发现:2个库之间文件名重复,如下:
2.导入静态库出现的问题
dyld: Library not loaded: @rpath/WebRTC.framework/WebRTC
Referenced from: /var/containers/Bundle/Application/77338E55-5FA3-410D-856F-DE54FEB4C2BE/smarthome_new.app/smarthome_new
Reason:image not found
原因:image not found———>>http://blog.csdn.net/stubbornness1219/article/details/52904149
发现:
3.2个不同文件中方法名 重复——>>xcode编译时报错了.o可执行文件
duplicate symbol_start_mainin:
/Users/jun/Library/Developer/Xcode/DerivedData/smarthome_new-hgncotrdpohvwxadtctghkdukpbd/Build/Intermediates/smarthome_new.build/Debug-iphoneos/smarthome_new.build/Objects-normal/arm64/ReceiveFunc.o
/Users/jun/Library/Developer/Xcode/DerivedData/smarthome_new-hgncotrdpohvwxadtctghkdukpbd/Build/Intermediates/smarthome_new.build/Debug-iphoneos/smarthome_new.build/Objects-normal/arm64/TUTKClient.o
原因:控制器给出了 重复的文件(ReceiveFunc.oTUTKClient.o) 重复的方法名:_start_main
发现:
C语言中main函数起名不能一致。