-4

d /Users/syedmatloob/Library/Developer/Xcode/DerivedData/SIPTabApp-augbivszmspykvenplsxyvefxkjw/Build/Products/Debug-iphonesimulator/SIPTabApp.app/SIPTabApp normal i386 cd /Users/syedmatloob/Documents/SIPTabApp setenv IPHONEOS_DEPLOYMENT_TARGET 4.3 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/syedmatloob/Library/Developer/Xcode/DerivedData/SIPTabApp-augbivszmspykvenplsxyvefxkjw/Build/Products/Debug-iphonesimulator -L/Users/syedmatloob/Documents/SIPTabApp/liblinphone-sdk/apple-darwin/lib -L/Users/syedmatloob/Documents/SIPTabApp/liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins -F/Users/syedmatloob/Library/Developer/Xcode/DerivedData/SIPTabApp-augbivszmspykvenplsxyvefxkjw/Build/Products/Debug-iphonesimulator -filelist /Users/syedmatloob/Library/Developer/Xcode/DerivedData/SIPTabApp-augbivszmspykvenplsxyvefxkjw/Build/Intermediates/SIPTabApp.build/Debug-iphonesimulator/SIPTabApp.build/Objects-normal/i386/SIPTabApp.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework UIKit -framework Foundation -framework CoreGraphics -framework MediaPlayer -framework Security -framework QuartzCore -lxml2 -framework CoreLocation -framework CFNetwork -framework MessageUI -lsqlite3.0 -framework AVFoundation -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework CoreData -framework SystemConfiguration -lavcodec -lavutil -lbcg729 -lcrypto -leXosip2 -lgsm -lilbc -llinphone -lmediastreamer -lopencore-amrnb -lopencore-amrwb -lortp -losip2 -losipparser2 -lSKP_SILK_SDK -lspeex -lspeexdsp -lsrtp -lssl -lswscale -lvpx -lx264 -lzrtpcpp -lmsamr -lmsbcg729 -lmsilbc -lmssilk -lmsx264 -lresolv -framework CoreTelephony -framework OpenGLES -framework CoreMedia -framework CoreVideo -o /Users/syedmatloob/Library/Developer/Xcode/DerivedData/SIPTabApp-augbivszmspykvenplsxyvefxkjw/Build/Products/Debug-iphonesimulator/SIPTabApp.app/SIPTabApp

duplicate symbol _SECURE_BUTTON_TAG in: /Users/syedmatloob/Library/Developer/Xcode/DerivedData/SIPTabApp-augbivszmspykvenplsxyvefxkjw/Build/Intermediates/SIPTabApp.build/Debug-iphonesimulator/SIPTabApp.build/Objects-normal/i386/IncallViewController.o /Users/syedmatloob/Library/Developer/Xcode/DerivedData/SIPTabApp-augbivszmspykvenplsxyvefxkjw/Build/Intermediates/SIPTabApp.build/Debug-iphonesimulator/SIPTabApp.build/Objects-normal/i386/InCallVC.o ld: 1 duplicate symbol for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

4

1 回答 1

1

您有一个在andSECURE_BUTTON_TAG中定义的变量。根据您的代码,有几个选项:IncallViewController.mInCallVC.m

  • 如果它们仅在各自的 .m 文件中使用,请在它们前面加上static关键字,使它们对它们的编译单元“私有”。** 从名称来看,我猜它引用了一个数字。所以做那个static const
  • 删除一个,将其声明为extern头文件。
  • 重命名一个。
于 2013-05-07T15:42:01.743 回答