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.
Related
Aftre updating to latest Parse pod (1.8.4) I get Apple Mac-O linker error only when I build for device. Simulator works fine
Ld /Users/mile/Library/Developer/Xcode/DerivedData/Nanuism-ezuxcvwcbtlytwdpwrmzcxghttsw/Build/Products/Debug-iphoneos/ParseCrashReporting.framework/ParseCrashReporting normal arm64
cd "/Users/mile/Projects/Nanusim Xcode/nanusim_obejctiveC/Nanuism/Pods"
export IPHONEOS_DEPLOYMENT_TARGET=8.4
export 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 arm64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -L/Users/mile/Library/Developer/Xcode/DerivedData/Nanuism-ezuxcvwcbtlytwdpwrmzcxghttsw/Build/Products/Debug-iphoneos -L/Users/mile/Projects/Nanusim\ Xcode/nanusim_obejctiveC/Nanuism/Pods/ParseCrashReporting -F/Users/mile/Library/Developer/Xcode/DerivedData/Nanuism-ezuxcvwcbtlytwdpwrmzcxghttsw/Build/Products/Debug-iphoneos -filelist /Users/mile/Library/Developer/Xcode/DerivedData/Nanuism-ezuxcvwcbtlytwdpwrmzcxghttsw/Build/Intermediates/Pods.build/Debug-iphoneos/ParseCrashReporting.build/Objects-normal/arm64/ParseCrashReporting.LinkFileList -install_name #rpath/ParseCrashReporting.framework/ParseCrashReporting -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -dead_strip -ObjC -lParseCrashReportingLib -lsqlite3 -lstdc++.6 -lz -framework CFNetwork -framework Foundation -framework Security -framework SystemConfiguration -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.4 -framework Bolts -framework CFNetwork -framework Foundation -framework Parse -framework Security -framework SystemConfiguration -single_module -compatibility_version 1 -current_version 1.8.4 -Xlinker -dependency_info -Xlinker /Users/mile/Library/Developer/Xcode/DerivedData/Nanuism-ezuxcvwcbtlytwdpwrmzcxghttsw/Build/Intermediates/Pods.build/Debug-iphoneos/ParseCrashReporting.build/Objects-normal/arm64/ParseCrashReporting_dependency_info.dat -o /Users/mile/Library/Developer/Xcode/DerivedData/Nanuism-ezuxcvwcbtlytwdpwrmzcxghttsw/Build/Products/Debug-iphoneos/ParseCrashReporting.framework/ParseCrashReporting
ld: 14 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is an issue with the ParseCrashReporting library. Version 1.8.2 does not have this issue. At time of writing, the issue is present in 1.8.3, 1.8.4, and 1.8.5 (current).
If you can upgrade to Xcode 7 from 6.4 this issue does not present itself.
If you still must use 6.4, it appears to be related to including the Pods.xcconfig in the test target, and when building for device.
Specifically, the linker errors are:
duplicate symbol _llvm.cmdline in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(GTMLogger.o)
duplicate symbol _llvm.embedded.module in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(GTMLogger.o)
duplicate symbol _llvm.cmdline in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(HTTPMultipartUpload.o)
duplicate symbol _llvm.embedded.module in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(HTTPMultipartUpload.o)
duplicate symbol _llvm.cmdline in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(uploader.o)
duplicate symbol _llvm.embedded.module in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(uploader.o)
duplicate symbol _llvm.cmdline in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(BreakpadController.o)
duplicate symbol _llvm.embedded.module in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(BreakpadController.o)
duplicate symbol _llvm.cmdline in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(ParseCrashReporting.o)
duplicate symbol _llvm.embedded.module in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(ParseCrashReporting.o)
duplicate symbol _llvm.cmdline in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReportingAnalytics.o)
duplicate symbol _llvm.embedded.module in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReportingAnalytics.o)
duplicate symbol _llvm.cmdline in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReport.o)
duplicate symbol _llvm.embedded.module in:
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReporter.o)
[redacted]/ParseCrashReporting/libParseCrashReportingLib.a(PFCrashReport.o)
ld: 14 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Which are all related to the libParseCrashReportingLib.a
I've filed an issue with Parse here https://github.com/ParsePlatform/Parse-SDK-iOS-OSX/issues/271 which includes a link to a sample project to reproduce it. However, the steps are simple:
In Xcode 6.4 create a new single view iOS application project.
Create a Podfile which includes ParseCrashReporting:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'ParseCrashReporting', '~> 1.8'
Perform a pod install
Open the resulting xcworkspace and add the Pods.xcconfig to the test target.
Build for device.
The build fails with the above linker errors for the test target.
Please have a look at the signature from the findObjectsInBackgroundWithBlock method. Change AnyObject to PFObject should do the trick.
For some reason Xcode is not archiving my project after adding AdMob to it.
I am currently using -objc and -all_load in the project because I am using Adobe Creative. Its working perfectly on an iPhone 5 and simulator but when I want to archive the project to upload it to the store it gave me duplicate symbols everywhere and it started after adding Admob.
Ld /Users/Jose/Library/Developer/Xcode/DerivedData/MemeHub-eiiudjckcbcbreabjhqaziopvmmq/Build/Intermediates/ArchiveIntermediates/MemeHub/IntermediateBuildFilesPath/MemeHub.build/Release-iphoneos/MemeHub.build/Objects-normal/arm64/MemeHub normal arm64
cd /Users/Jose/memehub
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export 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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk -L/Users/Jose/Library/Developer/Xcode/DerivedData/MemeHub-eiiudjckcbcbreabjhqaziopvmmq/Build/Intermediates/ArchiveIntermediates/MemeHub/BuildProductsPath/Release-iphoneos -F/Users/Jose/Library/Developer/Xcode/DerivedData/MemeHub-eiiudjckcbcbreabjhqaziopvmmq/Build/Intermediates/ArchiveIntermediates/MemeHub/BuildProductsPath/Release-iphoneos -F/Users/Jose/memehub/MemeHub -F/Users/Jose/memehub/AdobeCreativeSDKFrameworks -F/Users/Jose/Documents/FacebookSDK -F/Users/Jose/memehub/MemeHub/Chartboost -F/Users/Jose/memehub -filelist /Users/Jose/Library/Developer/Xcode/DerivedData/MemeHub-eiiudjckcbcbreabjhqaziopvmmq/Build/Intermediates/ArchiveIntermediates/MemeHub/IntermediateBuildFilesPath/MemeHub.build/Release-iphoneos/MemeHub.build/Objects-normal/arm64/MemeHub.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -ObjC -all_load -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework UIKit -framework StoreKit -framework QuartzCore -framework OpenGLES -framework MessageUI -framework Foundation -lz.1.2.5 -lsqlite3.0 -framework CoreData -framework Accelerate -framework MobileCoreServices -framework GoogleMobileAds -framework AdobeCreativeSDKFoundation -lc++ -framework Social -framework Accounts -lsqlite3 -lz -framework SystemConfiguration -framework Security -framework FBSDKMessengerShareKit -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework Chartboost -framework AudioToolbox -framework Parse -framework ParseUI -framework AdobeCreativeSDKImage -framework Bolts -Xlinker -dependency_info -Xlinker /Users/Jose/Library/Developer/Xcode/DerivedData/MemeHub-eiiudjckcbcbreabjhqaziopvmmq/Build/Intermediates/ArchiveIntermediates/MemeHub/IntermediateBuildFilesPath/MemeHub.build/Release-iphoneos/MemeHub.build/Objects-normal/arm64/MemeHub_dependency_info.dat -o /Users/Jose/Library/Developer/Xcode/DerivedData/MemeHub-eiiudjckcbcbreabjhqaziopvmmq/Build/Intermediates/ArchiveIntermediates/MemeHub/IntermediateBuildFilesPath/MemeHub.build/Release-iphoneos/MemeHub.build/Objects-normal/arm64/MemeHub
>duplicate symbol l016 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdAppViewController.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADBannerAdViewDelegate.o)
duplicate symbol l016 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdAppViewController.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdImage.o)
duplicate symbol l021 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
duplicate symbol l022 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
duplicate symbol l023 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
duplicate symbol l024 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
duplicate symbol l026 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADMAdManager.o)
duplicate symbol l005 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADMWebViewRenderedChecker.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdViewRenderedChecker.o)
duplicate symbol l006 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADMWebViewRenderedChecker.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdViewRenderedChecker.o)
duplicate symbol l012 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADCSIReporter.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADPinger.o)
duplicate symbol l023 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADCSIConfiguration.o)
duplicate symbol l022 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l023 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l024 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l025 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l026 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l027 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l028 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l029 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l030 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l031 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l032 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l033 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdSize.o)
duplicate symbol l025 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTransparentOverlayPresenter.o)
duplicate symbol l026 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTransparentOverlayPresenter.o)
duplicate symbol l027 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTransparentOverlayPresenter.o)
duplicate symbol l028 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTransparentOverlayPresenter.o)
duplicate symbol l029 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTokenDispenser.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADTransparentOverlayPresenter.o)
duplicate symbol l016 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdAppViewController.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdNetworkJavaScriptAdViewDelegate.o)
duplicate symbol l017 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADAdNetworkJavaScriptAdViewDelegate.o)
duplicate symbol l018 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADMRAIDPicture.o)
duplicate symbol l021 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADMRAIDResizeProperties.o)
duplicate symbol l022 in:
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o)
/Users/Jose/memehub/GoogleMobileAds.framework/GoogleMobileAds(GADMRAIDResizeProperties.o)
ld: 33 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I actually found the answer, it looks its a bug on the Xcode version, I was using Xcode version 6.2 and the I just update to Xcode 6.4 and everything is compiling and archiving!
Try remove the "-ObjC" linker flag from the "Other Linker Flags" section of build settings. :)))
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)