Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

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

Discussion in 'Unity 5 Pre-order Beta' started by DanSuperGP, Dec 1, 2014.

  1. DanSuperGP

    DanSuperGP

    Joined:
    Apr 7, 2013
    Posts:
    408
    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)
     
  2. Luckymouse

    Luckymouse

    Joined:
    Jan 31, 2010
    Posts:
    484
    I have same problem here:(
     
  3. DanSuperGP

    DanSuperGP

    Joined:
    Apr 7, 2013
    Posts:
    408
    Still happening in B16.
     
  4. Ospa

    Ospa

    Joined:
    Nov 27, 2012
    Posts:
    10
    Good to know. So no need to download the update.
     
unityunity