1. 2個庫之間文件名重復(fù)
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
發(fā)現(xiàn):2個庫之間文件名重復(fù)颈走,如下:
2.導(dǎo)入靜態(tài)庫出現(xiàn)的問題
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
發(fā)現(xiàn):
3.2個不同文件中方法名 重復(fù)——>>xcode編譯時報錯了.o可執(zhí)行文件
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
原因:控制器給出了 重復(fù)的文件(ReceiveFunc.oTUTKClient.o) ?重復(fù)的方法名:_start_main
發(fā)現(xiàn):
C語言中main函數(shù)起名不能一致行嗤。