5.0b15 - iOS Mach-0 Linker Errors when appending (Case 652503)

As a heads up to the community, I’ve discovered a bug with beta 15 where any time you append to an iOS build you receive the Mach-0 Linker Errors (see below)

This is going to be a major pain for anyone working with native code on iOS since you will have to reset your project settings every time you build and run, so I advise not updating to beta 15 in that case since it was not happening in beta 14.

The repro project I sent in was as bare bones as can be, so it wasn’t anything I was doing.

Linker Error text.

Ld /Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Products/Debug-iphoneos/debug-test.app/debug-test normal armv7

cd /Users/danielsuper/dev/xxxx/Builds/Mach-0_Link_Error_Test_Project

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.1.sdk -L/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Products/Debug-iphoneos -L/Users/danielsuper/dev/xxxx/Builds/Mach-0_Link_Error_Test_Project -L/Users/danielsuper/dev/xxxx/Builds/Mach-0_Link_Error_Test_Project/Libraries -F/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Products/Debug-iphoneos -filelist /Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/debug-test.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 -liPhone-lib -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 -weak_framework GameKit -Xlinker -dependency_info -Xlinker /Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/debug-test_dependency_info.dat -o /Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Products/Debug-iphoneos/debug-test.app/debug-test

duplicate symbol _mono_aot_module_Mono_Security_info in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Mono.Security.dll-3D538457A2133470.o

duplicate symbol _mono_aot_module_System_Core_info in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/System.Core.dll-1AAD3B9709584D62.o

duplicate symbol _mono_aot_module_System_info in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/System.dll-3B1AE000C8DB3598.o

duplicate symbol _mono_aot_module_UnityEngine_UI_info in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityEngine.UI.dll-3348A6AD3493173.o

duplicate symbol _mono_aot_module_UnityEngine_info in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityEngine.dll-86D7AB529923190.o

duplicate symbol _mono_aot_module_mscorlib_info in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/mscorlib.dll-392ED63250367A67.o

duplicate symbol OBJC_IVAR$_MPVideoContext.moviePlayer in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_IVAR$_MPVideoContext.movieController in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_IVAR$_MPVideoContext.overlayView in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_IVAR$_MPVideoContext.bgColor in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_IVAR$_MPVideoContext.scalingMode in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_IVAR$_MPVideoContext.controlMode in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_IVAR$_MPVideoContext.cancelOnTouch in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol _UnityPlayMPMovie in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol _UnityStopMPMovieIfPlaying in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_CLASS$_MPVideoContext in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_METACLASS$_MPVideoContext in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_CLASS$_UnityVideoViewController in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_METACLASS$_UnityVideoViewController in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_CLASS$_CancelMovieView in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

duplicate symbol OBJC_METACLASS$_CancelMovieView in:

/Users/danielsuper/Library/Developer/Xcode/DerivedData/Unity-iPhone-erxywomkcrlypxdfilqqvnlawtla/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/MPVideoPlayer-6FFB2ADCF26F7D71.o

ld: 21 duplicate symbols for architecture armv7

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

I have same problem here:(

Still happening in B16.

Good to know. So no need to download the update.