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!
Apple Mach-O Linker error on upgrade to Xcode 4.4
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
Apple Mach-O Linker error on upgrade to Xcode 4.4
Ok I just checked and while you may have a compiler error, Vuforia does not support armv6 devices either way.
HTH
N
Apple Mach-O Linker error on upgrade to Xcode 4.4
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.
Apple Mach-O Linker error on upgrade to Xcode 4.4
Hi,
I am having the same issue .. I get the following error running ios5.1 with unity 4.3 ios Pro & Xode 4.4
Apple Mach-O Linker error on upgrade to Xcode 4.4
Hi,
I am having the same issue .. I get the following error running ios5.1 with unity 4.3 ios Pro & Xode 4.4
Apple Mach-O Linker error on upgrade to Xcode 4.4
Mick
This is not a Vuforia error.
Normally this message appears for exactly that reason i.e. xcode cannot find a device that can run based on the build settings in the project or target.
Apple Mach-O Linker error on upgrade to Xcode 4.4
Thx for the reply Nalin,
since I am getting an X-Code error stating
Apple Mach-O Linker error on upgrade to Xcode 4.4
[quote=mickbanks]
Hi,
I am having the same issue .. I get the following error running ios5.1 with unity 4.3 ios Pro & Xode 4.4
Apple Mach-O Linker error on upgrade to Xcode 4.4
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:
Apple Mach-O Linker error on upgrade to Xcode 4.4
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.
Apple Mach-O Linker error on upgrade to Xcode 4.4
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
Apple Mach-O Linker error on upgrade to Xcode 4.4
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.
Apple Mach-O Linker error on upgrade to Xcode 4.4
Hi,
I am not quite sure why you are seeing these errors.
Can you reproduce with any of the Unity samples?
N
Apple Mach-O Linker error on upgrade to Xcode 4.4
No the sample apps are fine. The problems come if i try to do more complicated things than that. The only common factor is adding vuforia which causes this problem, it must be the interaction with something else I'm doing, though what that might be in C# only is beyond me.
Apple Mach-O Linker error on upgrade to Xcode 4.4
Is there any way you can reproduce it in the sample?
i.e. by adding additional components that may be causing the problem, because Vuforia on its own is not the cause.
N
Apple Mach-O Linker error on upgrade to Xcode 4.4
Agreed, I will certainly try.