"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Apple Mach-O Linker error on upgrade to Xcode 4.4

Hello,

I have been using Vuforia on a MacBook Pro with Lion for a couple of months without any problem.

Yesteday, I upgraded Xcode from  the app store to Xcode 4.4 and when I wanted to build and Run my project on my new Ipad I got the following error:

Apple Mach-O Linker Error

ld: Unable to insert branch island. No insertion point available. for architecture armv6

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

I have been using Unity (3.5.3f3) with Vuforia iOS 1.5.9 with XCode 4.3 (before the upgrade).

One day before, and other projects I have done previously have not presented any problems at all.

__________

Error Details:

Apple Mach-O Linker Error

 

Ld /Users/set/Library/Developer/Xcode/DerivedData/Unity-iPhone-cjxyesszntuwvlfamioartwpiqsb/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv6/Corregidor normal armv6

    cd /Users/set/Documents/LE/Lab/AR/MausoleoCorregidorQro/corregidor_ios

    setenv IPHONEOS_DEPLOYMENT_TARGET 4.0

    setenv 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 armv6 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/set/Library/Developer/Xcode/DerivedData/Unity-iPhone-cjxyesszntuwvlfamioartwpiqsb/Build/Products -L/Users/set/Documents/LE/Lab/AR/MausoleoCorregidorQro/corregidor_ios -L/Users/set/Documents/LE/Lab/AR/MausoleoCorregidorQro/corregidor_ios/Libraries -F/Users/set/Library/Developer/Xcode/DerivedData/Unity-iPhone-cjxyesszntuwvlfamioartwpiqsb/Build/Products -filelist /Users/set/Library/Developer/Xcode/DerivedData/Unity-iPhone-cjxyesszntuwvlfamioartwpiqsb/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv6/Corregidor.LinkFileList -dead_strip -all_load -weak_framework CoreMotion -weak-lSystem -fobjc-link-runtime -miphoneos-version-min=4.0 -framework Security -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -lQCAR -lQCARUnityPlayer -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 -o /Users/set/Library/Developer/Xcode/DerivedData/Unity-iPhone-cjxyesszntuwvlfamioartwpiqsb/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv6/Corregidor

 

ld: Unable to insert branch island. No insertion point available. for architecture armv6

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

 

 

______

 

I realized that the problem is avoided if I change the target platform from armv6 + armv7 (...) to just armv7. In that case the compilation is successful and the application is loaded correctly into my iPad.

I am worry that this Xcode change will not allow me to target armv6 ios platforms (which I suppose will not allow people using apple devices with armv6 to run my app)

What can I do to get rid of this error?

I am open to return to a previous XCode version or whichever Vuforia support best or to stay on Xcode 4.4 but to target armv6 platforms.

On the other hand I have noticed that with this Xcode update sometimes I get error regarding about PNG files, but I just need to click Build and Run again to get rid of them.

Thanks!

Hi Logie

Not sure why this would be - likewise Lion & Xcode 4.3 have been fine this end but not yet tried 4.4.

I checked the release notes and nothing jumps out as obvious

https://developer.apple.com/library/ios/#releasenotes/DeveloperTools/RN-Xcode/_index.html

Hi NalinS,

 

Thanks! yes, it happens for even the vuforia samples.

I have read a bit and it is suppossed in the latest Xcode versions Apple drop the support for armv6 devices, but not sure if that info is correct.

DenninDalke

Wed, 08/08/2012 - 19:43

Hey Guys, sadly I'm with a similar error here, I have tried to set armv7 both in Unity and XCode (I'm using XCode 4.4) and I still getting those errors:

 

Undefined symbols for architecture armv7:

  "_SecItemAdd", referenced from:

DavidBeard

Wed, 08/08/2012 - 20:05

Do the names of your project path directories have any spaces in them? If so, try removing the spaces and rebuilding. Otherwise try deleting the XCode project directory and generating a new one from Unity. That linking error typically arises from a conflict between Unity and Xcode.

DenninDalke

Wed, 08/08/2012 - 20:27

Thanx for the reply David, I think that my problem was solved... What I had to do was add the Security.framework in the XCode, as MoSR told here: https://ar.qualcomm.at/content/sdk-1-5-8-ios5#comment-2007386

whydoidoit

Thu, 04/04/2013 - 12:06

I still have the Unable to insert branch island error on Xcode 4.6 - Unity 4.1.2 (and have had it continually since XCode 4.4 and Unity 3.5).  This only happens on projects that include Vuforia and only if I enable script debugging in Unity.