Duplicate Symbols for Architecture in XCode with Qt5.1.0 - ios

This is the output from XCode when I try to compile. I have thoroughly checked my header files to verify that I am not including something twice. Does anybody see what else could possibly cause this issue? I've even deleted the project and regenerated it. I don't know what I did that could make this happen. Thanks in advance!
Ld Debug-iphonesimulator/Timecards.app/Timecards normal i386
cd /Users/allenh1/time-flashcards-ios/timecards-ios
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/allenh1/time-flashcards-ios/timecards-ios/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks -L/Users/allenh1/Qt/5.1.0/Src/qtbase/lib -L/Users/allenh1/Qt/5.1.0/Src/qtbase/plugins/platforms -F/Users/allenh1/time-flashcards-ios/timecards-ios/Debug-iphonesimulator -filelist /Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/Timecards.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -headerpad_max_install_names -framework UIKit -lz -force_load /Users/allenh1/Qt/5.1.0/Src/qtbase/plugins/platforms/libqios.a -framework UIKit -L/Users/allenh1/Qt/5.1.0/Src/qtbase/lib -framework OpenGLES -L/Users/allenh1/Qt/5.1.0/Src/qtbase/plugins/platforms -lz -lm -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.3 -framework Foundation -framework QuartzCore -lQt5PlatformSupport -framework CoreFoundation -framework CoreText -framework CoreGraphics -lqiosmain -lQt5Widgets -lQt5Gui -lQt5Core -o /Users/allenh1/time-flashcards-ios/timecards-ios/Debug-iphonesimulator/Timecards.app/Timecards
duplicate symbol __ZplRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/mainwindow.o
duplicate symbol __ZmiRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/mainwindow.o
duplicate symbol __ZplRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/TimeQuestion.o
duplicate symbol __ZmiRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/TimeQuestion.o
duplicate symbol __ZplRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/TimecardTime.o
duplicate symbol __ZmiRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/TimecardTime.o
duplicate symbol __ZplRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/moc_mainwindow.o
duplicate symbol __ZmiRK12TimecardTimeS1_ in:
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/main.o
/Users/allenh1/time-flashcards-ios/timecards-ios/Timecards.build/Debug-iphonesimulator/Timecards.build/Objects-normal/i386/moc_mainwindow.o
ld: 8 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Related

ld: 87 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

There are many issues regarding this problem in here. But still could not find the solution. I apologize if I am missing stupid thing because I am very new in cordova. I followed this link to add notifications on iOS app using parse and cordova. Then I encountered this problem;
duplicate symbol _OBJC_IVAR_$_BFAppLinkTarget._URL in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFAppLinkTarget.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkTarget._appStoreId in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFAppLinkTarget.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkTarget._appName in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFAppLinkTarget.o)
duplicate symbol _OBJC_METACLASS_$_BFAppLinkTarget in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFAppLinkTarget.o)
duplicate symbol _OBJC_CLASS_$_BFAppLinkTarget in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFAppLinkTarget.o)
duplicate symbol _OBJC_IVAR_$_BFTaskCompletionSource._task in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFTaskCompletionSource.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFTaskCompletionSource.o)
duplicate symbol _OBJC_CLASS_$_BFTaskCompletionSource in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFTaskCompletionSource.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFTaskCompletionSource.o)
duplicate symbol _OBJC_METACLASS_$_BFTaskCompletionSource in: BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFTaskCompletionSource.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFTaskCompletionSource.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererView._includeStatusBarInSize in:BoatDay/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererView.o) /Users/Daniel/Downloads/parse-library-1.7.5/Bolts.framework/Bolts(BFAppLinkReturnToRefererView.o)
ld: 87 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sorry could not post image as I do not have 10 reputation. And did not paste all the errors.
Then I thought that the plugins has been duplicated from the downloads folder(parse-library-1.7.5). So I deleted the folder. Then I cleaned, prepared and run the project again. Then, again I encountered another error;
Ld /Users/Daniel/Library/Developer/Xcode/DerivedData/BoatDay-bshyzslutlotwzemexzolhojdvne/Build/Products/Debug-iphonesimulator/BoatDay.app/BoatDay normal x86_64
cd /Users/Daniel/GitHub/boat-day-app/platforms/ios
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export 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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/Daniel/Library/Developer/Xcode/DerivedData/BoatDay-bshyzslutlotwzemexzolhojdvne/Build/Products/Debug-iphonesimulator -F/Users/Daniel/Library/Developer/Xcode/DerivedData/BoatDay-bshyzslutlotwzemexzolhojdvne/Build/Products/Debug-iphonesimulator -FBoatDay/Plugins/com.phonegap.plugins.facebookconnect -F/Users/Daniel/Downloads/parse-library-1.7.5 -filelist /Users/Daniel/Library/Developer/Xcode/DerivedData/BoatDay-bshyzslutlotwzemexzolhojdvne/Build/Intermediates/BoatDay.build/Debug-iphonesimulator/BoatDay.build/Objects-normal/x86_64/BoatDay.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -weak_framework Security -framework QuartzCore -framework CoreLocation -framework CoreGraphics -framework CFNetwork -weak_framework AudioToolbox -framework AssetsLibrary /Users/Daniel/Library/Developer/Xcode/DerivedData/BoatDay-bshyzslutlotwzemexzolhojdvne/Build/Products/Debug-iphonesimulator/libCordova.a -framework MobileCoreServices -framework FacebookSDK -weak_framework Social -framework Bolts -weak_framework Accounts -framework Parse -weak_framework ImageIO -Xlinker -dependency_info -Xlinker /Users/Daniel/Library/Developer/Xcode/DerivedData/BoatDay-bshyzslutlotwzemexzolhojdvne/Build/Intermediates/BoatDay.build/Debug-iphonesimulator/BoatDay.build/Objects-normal/x86_64/BoatDay_dependency_info.dat -o /Users/Daniel/Library/Developer/Xcode/DerivedData/BoatDay-bshyzslutlotwzemexzolhojdvne/Build/Products/Debug-iphonesimulator/BoatDay.app/BoatDay
ld: warning: directory not found for option '-F/Users/Daniel/Downloads/parse-library-1.7.5'
ld: framework not found Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What could be problem in my case? Any kind of hints or solutions would be really appreciated. Thanks in advance.

Match O-linker Error , clang error iOS 8.3

I recently created a new project and copied resources from another project, But when i compiled, it generated one error,
I checked twice resources are ok, but its showing Mach-O Linker error, I tried other answers, but nothing is working for me..
Ld
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/MyProject.app/MyProject
normal x86_64
cd "/Users/iOSDEV/Developer/untitled folder/MyProject"
export IPHONEOS_DEPLOYMENT_TARGET=8.3
export 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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk
-L/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator
-F/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator
-F/Users/iOSDEV/Developer/untitled\ folder/MyProject -filelist /Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.3 -framework Accounts -framework JudoPay -framework QuartzCore -framework
Foundation -framework MobileCoreServices -framework Security
-framework CoreTelephony -framework UIKit -Xlinker -dependency_info -Xlinker /Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyProject_dependency_info.dat
-o /Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/MyProject.app/MyProject
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/PlaceOrderViewController-B3C1DC5507CD786B.o
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/LeftSideViewController.o
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/ReOrderViewController.o
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/AddToCart.o
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MyOrdersViewController.o
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/Cart.o
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuDetailViewController.o
duplicate symbol _delegate in:
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/MenuViewController.o
/Users/iOSDEV/Library/Developer/Xcode/DerivedData/Build/Intermediates/MyProject.build/Debug-iphonesimulator/MyProject.build/Objects-normal/x86_64/ProductDetailViewController-86CA1752309DD871.o
ld: 8 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)

After importing another library getting below error in ios

I am new to i phone programming.Can any one tell me what is meaning of this below error.I have create custom static universal library and importing in project and in other linker flag i have added -ObjC.Its working fine. After that i have added one more library file which client given after adding that file if run project its showing below error.I have searched in google i didnt get any solution for this issues.So Please tell me how to slove this issues.
Ld /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator/EsloverAlipay.app/EsloverAlipay normal i386
cd /Users/racitsolutionspvtltd/Desktop/EsloverAlipay
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export 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/iPhoneSimulator7.1.sdk -L/Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator -L/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay -L/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay -F/Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator -filelist /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Intermediates/EsloverAlipay.build/Debug-iphonesimulator/EsloverAlipay.build/Objects-normal/i386/EsloverAlipay.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework CFNetwork -framework SystemConfiguration -lssl -lEsloverloginsdkalipay -framework CoreGraphics -framework UIKit /Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a /Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a /Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlipayRsaLib.a -framework Foundation -lcrypto -Xlinker -dependency_info -Xlinker /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Intermediates/EsloverAlipay.build/Debug-iphonesimulator/EsloverAlipay.build/Objects-normal/i386/EsloverAlipay_dependency_info.dat -o /Users/racitsolutionspvtltd/Library/Developer/Xcode/DerivedData/EsloverAlipay-dzdjgbqpdlhzpndnscpqaxomafeg/Build/Products/Debug-iphonesimulator/EsloverAlipay.app/EsloverAlipay
duplicate symbol _OBJC_IVAR_$_AlixPaylib._target in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _OBJC_IVAR_$_AlixPaylib._seletor in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _OBJC_IVAR_$_AlixPaylib._installType in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _OBJC_IVAR_$_AlixPaylib._serverUrl in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(AlixPaylib.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(AlixPaylib.o)
duplicate symbol _k_DefaultModel in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(ALPToastView.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(ALPToastView.o)
duplicate symbol _OBJC_METACLASS_$_ALPToastView in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(ALPToastView.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(ALPToastView.o)
duplicate symbol _OBJC_IVAR_$_Alipay_Reachability.reachabilityRef in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
duplicate symbol _OBJC_IVAR_$_Alipay_Reachability.localWiFiRef in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
duplicate symbol _OBJC_CLASS_$_Alipay_Reachability in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
duplicate symbol _OBJC_METACLASS_$_Alipay_Reachability in:
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib.a(Reachability.o)
/Users/racitsolutionspvtltd/Desktop/EsloverAlipay/EsloverAlipay/alipay/AlixPaylib_arc.a(Reachability.o)
ld: 116 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Seems like you're importing the same (virtually) library - one ARC, one NON ARC. Remove one of them

the issue with exit code 1 (use -v to see invocation)

I'm having a problem about xcode. Please help me check this issue
This is my log from xcode
Ld /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/Debug-iphonesimulator/Management.app/Management normal i386
cd /Users/admin/Desktop/Project/Management
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
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.0.sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/Debug-iphonesimulator -F/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/Debug-iphonesimulator -filelist /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/Management.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework SystemConfiguration -framework Security -framework CFNetwork -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o /Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Products/Debug-iphonesimulator/Management.app/Management
duplicate symbol _OBJC_IVAR_$_EditViewController._textfieldCategory in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
duplicate symbol _OBJC_IVAR_$_EditViewController._labelType in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
duplicate symbol _OBJC_IVAR_$_EditViewController._isType in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
duplicate symbol _OBJC_IVAR_$_EditViewController._viewDate in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
duplicate symbol _OBJC_IVAR_$_EditViewController._viewPicker in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
duplicate symbol _OBJC_IVAR_$_EditViewController._datePicker in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
duplicate symbol _OBJC_CLASS_$_EditViewController in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
duplicate symbol _OBJC_METACLASS_$_EditViewController in:
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/AddTransactionViewController.o
/Users/admin/Library/Developer/Xcode/DerivedData/Management-dbumnvnvxcjatwgwzoxobimmdmvo/Build/Intermediates/Management.build/Debug-iphonesimulator/Management.build/Objects-normal/i386/EditViewController.o
ld: 8 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don't understand why reason. Everything is normal until I add 'Edit View Controller' to my app. I have tried to delete 'Edit View Controller'. However it does not work. Can you please help me if you know solution for this issue? Thanks
You have something called a AddTransactionViewController. In it, you're including storage for your EditViewController. This may be because you're including a .m file instead of a .h. Or, it might be because of something in EditViewController.h that shouldn't be there.
Check your include/import lines in AddTransactionViewController.m and .h.

Apple Mach-O Linker Error when Building

When I build I am getting
Ld /Users/Shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos/appname.app/appname normal armv7
cd "/Users/shouri/Desktop/appname Project/appname"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos -F/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos -filelist /Users/shouri/Library/Developer/Xcode/DerivedDataappname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/appname.LinkFileList -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.1 -framework CoreData -framework AVFoundation -framework MobileCoreServices -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Products/Debug-iphoneos/appname.app/appname
duplicate symbol _OBJC_IVAR_$_HatsCamera.cameraSwitch in:
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.FrontCamera in:
/Users/shouri/Library/Developer/Xcode/DerivedData/appaname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.captureImage in:
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.stillImageOutput in:
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.haveImage in:
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_IVAR_$_HatsCamera.imagePreview in:
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_CLASS_$_HatsCamera in:
/Users/shouri/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shourio/Library/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
duplicate symbol _OBJC_METACLASS_$_HatsCamera in:
/Users/shouriLibrary/Developer/Xcode/DerivedData/appname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/HatsCamera.o
/Users/shouri/Library/Developer/Xcode/DerivedDataappname-defwdplzurhoraeqlkbatxopkutg/Build/Intermediates/appname.build/Debug-iphoneos/appname.build/Objects-normal/armv7/BottomsCamera.o
ld: 8 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How Can I get rid of this problem,Since I have looked through the internet for weeks and can't find the best answer that suits my problem..
duplicate symbol _OBJC_IVAR_$_HatsCamera.cameraSwitch in:
/Users/shouri/Library/.../HatsCamera.o
/Users/shouri/Library/.../BottomsCamera.o
HatsCamera.cameraSwitch seems to be declared more than once. That's just one of the errors, but the others are of the same kind.
If you have trouble locating the error, post the source code so we can see where the problem is.
ld: 8 duplicate symbols for architecture armv7
Is the reason for your error. It seems somewhere in your project you have 2 same files, and that's causing the error.
Take a thorough look at HatsCamera.m and BottomsCamera.m files in your project and your project folder. Try completely deleting them and readding them.

Resources