Error building iOS Project: Apple Mach-O Linker Error

Hello,

I’m trying to build my game to iOS and I’m getting an error in X-Code and I have no idea how to solve it. I’ve never used X-Code before and I’m pretty new to development in general so I really have no clue what this error is saying. I’ve tried researching this and seen people having simillar but not identical issues and tried to follow the help steps… but no luck. Anyway, error below. Thanks for any help.

Ld /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos/iOSHexderity.app/iOSHexderity normal armv7
    cd /Users/Ben/Desktop/HexderityiOS/HexderityiOS.Test.001
    export IPHONEOS_DEPLOYMENT_TARGET=6.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos -L/Users/Ben/Desktop/HexderityiOS/HexderityiOS.Test.001 -L/Users/Ben/Desktop/HexderityiOS/HexderityiOS.Test.001/Libraries -F/Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos -filelist /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/iOSHexderity.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -liPhone-lib -Xlinker -dependency_info -Xlinker /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/iOSHexderity_dependency_info.dat -o /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos/iOSHexderity.app/iOSHexderity

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_ASIdentifierManager", referenced from:
      objc-class-ref in GA_UserID.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos/iOSHexderity.app/iOSHexderity normal armv7
cd /Users/Ben/Desktop/HexderityiOS/HexderityiOS.Test.001
export IPHONEOS_DEPLOYMENT_TARGET=6.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk -L/Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos -L/Users/Ben/Desktop/HexderityiOS/HexderityiOS.Test.001 -L/Users/Ben/Desktop/HexderityiOS/HexderityiOS.Test.001/Libraries -F/Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos -filelist /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/iOSHexderity.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -framework CoreGraphics -weak_framework CoreMotion -liPhone-lib -Xlinker -dependency_info -Xlinker /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/iOSHexderity_dependency_info.dat -o /Users/Ben/Library/Developer/Xcode/DerivedData/Unity-iPhone-cqwzxrkgudgggqbvsdbimmvjqzca/Build/Products/Debug-iphoneos/iOSHexderity.app/iOSHexderity

Undefined symbols for architecture armv7:
OBJC_CLASS$_ASIdentifierManager”, referenced from:
objc-class-ref in GA_UserID.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Looks like you have a non64bit compatible plugin on a 64bit build (as all iOS apps are now required to be). What plugins are you using?

Issue was with a Google Analyitics plugin that I had, but not using it so got rid of it. Now seems to work fine - thanks! :slight_smile: