xcode - linker command failed with exit code 1

Hello,

I keep getting this error every time I try to build my iOS game with Xcode(10) - Unity 2018, done some research but have yet to find a solution/reason for the issue. Anyone else has issue or any ideas?

ERROR: “linker command failed with exit code 1”

Thanks!

after lots more digging i found the solution:

SOLUTION:

open xcworkspace and NOT xcodeproj

This could be happen if you try to run your project in simulator instead of real device. @garv3

There is no xcworkspace in my project folder.

I am also facing same problem. But it was working fine in older version of xcode. That happen after update to Mojave and xcode 10. My error is
.
.

Ld /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName normal armv7 (in target: Unity-iPhone)
cd /Users/asif/Documents/New\ Unity\ Project/IOS\ Build
export IPHONEOS_DEPLOYMENT_TARGET=8.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Products/ReleaseForRunning-iphoneos -L/Users/asif/Documents/New\ Unity\ Project/IOS\ Build -L/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/Libraries -F/Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Products/ReleaseForRunning-iphoneos -F/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks -F/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/Frameworks/Plugins/iOS -F/Users/asif/Documents/New\ Unity\ Project/IOS\ Build/UnityAds -filelist /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName.LinkFileList -Xlinker -map -Xlinker /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/ProductName-LinkMap-normal-armv7.txt -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_lto.o -fembed-bitcode-marker -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreVideo -framework GLKit -framework GoogleMobileAds -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -weak_framework CoreMotion -weak-lSystem -framework Security -framework MediaToolbox -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp -weak_framework Metal -framework UnityAds -framework UnityAds -weak_framework AdSupport -framework StoreKit -framework CoreTelephony -lPods-Unity-iPhone -Xlinker -dependency_info -Xlinker /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_dependency_info.dat -o /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName

duplicate symbol OBJC_CLASS_UnityAdsUnityWrapperDelegate in: /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e286f0004ed65ee5ff27c27446ef2b86d435.o /Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e28603e0b523287a6dc34eab9f1a569a255a.o duplicate symbol _OBJC_METACLASS__UnityAdsUnityWrapperDelegate in:
/Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e286f0004ed65ee5ff27c27446ef2b86d435.o
/Users/asif/Library/Developer/Xcode/DerivedData/Unity-iPhone-dtfnopazpadviecjlumcyzeknxtd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-b61a3e365e3d94efdf57ab854502e28603e0b523287a6dc34eab9f1a569a255a.o
ld: 2 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Hi guys.

I’ve been researching almost the whole day. Did you find any other solution?

I’m using Unity 2018.2.15.f1. Our App is an ARFoundation project. My Xcode is 10.1 (10B61). Everything works, but when we used Xcode to post our work to Apple Connect we get this error:

linker command failed with exit code 1 (use -v to see invocation)
clang

I really appreciate any suggestion.

Hi, Am also getting same issue. I’m using Unity 2018.2.15.f1. Xcode 10.1(10B61) iOS Device 12.1 when am run the Xcode project in device am getting this error please help me guys.
Error:
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Me too. Anyone found the solution for this issue?

I found out the issue, for me I needed to update google analytics plugin with bitecode support version

I found the error with this post ios - Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3 - Stack Overflow

you need to right click on the issue and show in logs there you can see why it is crashing