"Linker command failed" error on mobile build


#1

I have seen various responses to this error, but still can’t find a solution. I am running Meteor 1.2.1 and trying to deploy to my iPhone. I did the following:

ran meteor add-platform ios
ran meteor run ios-device

In Xcode, I then selected my iPhone and hit run. The app is running fine on my local machine but I get this error in the XCode navigator:

The full error message is as follows:

Ld /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Products/Debug-iphoneos/WorkshopFinance.app/WorkshopFinance normal arm64
    cd /Users/BrendanCahill/WebstormProjects/WorkshopFinance/.meteor/local/cordova-build/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/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/iPhoneOS10.2.sdk -L/Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Products/Debug-iphoneos -F/Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Products/Debug-iphoneos -filelist /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/WorkshopFinance.LinkFileList -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/WorkshopFinance_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -framework AssetsLibrary /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework Foundation -Xlinker -dependency_info -Xlinker /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/WorkshopFinance_dependency_info.dat -o /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Products/Debug-iphoneos/WorkshopFinance.app/WorkshopFinance

duplicate symbol _kCDVAssetsLibraryPrefix in:
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFile.o
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVLocalFilesystem.o
duplicate symbol _kCDVFilesystemURLPrefix in:
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFile.o
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVLocalFilesystem.o
duplicate symbol _kCDVAssetsLibraryPrefix in:
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFile.o
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVAssetLibraryFilesystem.o
duplicate symbol _kCDVFilesystemURLPrefix in:
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFile.o
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVAssetLibraryFilesystem.o
duplicate symbol _kCDVAssetsLibraryPrefix in:
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFile.o
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFileTransfer.o
duplicate symbol _kCDVFilesystemURLPrefix in:
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFile.o
    /Users/BrendanCahill/Library/Developer/Xcode/DerivedData/WorkshopFinance-bolltphfadyntydxjjnruuhwcvbz/Build/Intermediates/WorkshopFinance.build/Debug-iphoneos/WorkshopFinance.build/Objects-normal/arm64/CDVFileTransfer.o
ld: 6 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is the “Linker command” error due to the duplicate symbols or are they unrelated? I saw solutions online for disabling Bitcode in the project but that hasn’t changed anything. Any other suggestions?


#2

Did you find a solution?


#3

wondering if you you found a fix?

I am getting 2 duplicate symbols for architecture arm64