I'm trying to use RestKit and AWSSDKiOSv2 together on an iPhone project.
RestKit wants me to have these linker flags: -ObjC -all_load but the AWS SDK would rather I didn't. Are these two libraries incompatible with one another? I've looked around but I haven't seen much on both of them together which seems surprising.
Here is the linker error I get when I try to keep them:
Ld /Users/williamnoto/Library/Developer/Xcode/DerivedData/HeyNay-guckyzidpqgtmvdqseouljgiefwf/Build/Products/Debug-iphonesimulator/HeyNay.app/HeyNay normal x86_64
cd "/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC"
export IPHONEOS_DEPLOYMENT_TARGET=8.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/williamnoto/Library/Developer/Xcode/DerivedData/HeyNay-guckyzidpqgtmvdqseouljgiefwf/Build/Products/Debug-iphonesimulator -F/Users/williamnoto/Library/Developer/Xcode/DerivedData/HeyNay-guckyzidpqgtmvdqseouljgiefwf/Build/Products/Debug-iphonesimulator -F/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay\ POC -F/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay\ POC/HeyNay\ POC -filelist /Users/williamnoto/Library/Developer/Xcode/DerivedData/HeyNay-guckyzidpqgtmvdqseouljgiefwf/Build/Intermediates/HeyNay.build/Debug-iphonesimulator/HeyNay.build/Objects-normal/x86_64/HeyNay.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -framework Bolts -framework AWSiOSSDKv2 /Users/williamnoto/Library/Developer/Xcode/DerivedData/HeyNay-guckyzidpqgtmvdqseouljgiefwf/Build/Products/Debug-iphonesimulator/libRestKit.a -framework SystemConfiguration -lz -lsqlite3 -framework MapKit -framework Mantle -framework Security -framework MobileCoreServices -framework CoreData -framework CFNetwork -Xlinker -dependency_info -Xlinker /Users/williamnoto/Library/Developer/Xcode/DerivedData/HeyNay-guckyzidpqgtmvdqseouljgiefwf/Build/Intermediates/HeyNay.build/Debug-iphonesimulator/HeyNay.build/Objects-normal/x86_64/HeyNay_dependency_info.dat -o /Users/williamnoto/Library/Developer/Xcode/DerivedData/HeyNay-guckyzidpqgtmvdqseouljgiefwf/Build/Products/Debug-iphonesimulator/HeyNay.app/HeyNay
duplicate symbol _OBJC_IVAR_$_BFAppLink._sourceURL in:
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/Bolts.framework/Bolts(BFAppLink.o)
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o)
duplicate symbol _OBJC_IVAR_$_BFAppLink._targets in:
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/Bolts.framework/Bolts(BFAppLink.o)
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o)
duplicate symbol _OBJC_IVAR_$_BFAppLink._webURL in:
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/Bolts.framework/Bolts(BFAppLink.o)
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o)
duplicate symbol _OBJC_IVAR_$_BFAppLink._isBackToReferrer in:
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/Bolts.framework/Bolts(BFAppLink.o)
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o)
duplicate symbol _BFAppLinkDataParameterName in:
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/Bolts.framework/Bolts(BFAppLink.o)
/Users/williamnoto/Documents/src/heynay/heynay-api/ios/HeyNay POC/HeyNay POC/AWSiOSSDKv2.framework/AWSiOSSDKv2(BFAppLink.o)
It goes on like this for quite a ways...
ld: 133 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Found this link:
https://stackoverflow.com/a/5095793/1082660
and updated my linker flags to: -force_load $(BUILT_PRODUCTS_DIR)/libRestKit.a
and all seems to be working.
Note, I also double checked my imports. I originally had the commented out lines below but changed them to the uncommented lines. That may have been a confounding factor.
//#import "AWSiOSSDKv2/AWSCore.h"
//#import "AWSiOSSDKv2/AWSS3.h"
#import <AWSiOSSDKv2/AWSCore.h>
#import <AWSiOSSDKv2/AWSS3.h>
Related
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.
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)
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
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.
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)