Log in or register to post comments

Apple Mach-O Linker error on upgrade to Xcode 4.4

July 26, 2012 - 6:04pm #17

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

July 27, 2012 - 4:59am #16

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

Presumably this happens with non-Vuforia samples also?

N

Apple Mach-O Linker error on upgrade to Xcode 4.4

July 27, 2012 - 8:28am #15

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

July 27, 2012 - 1:02pm #14

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.

If I only Build from Unity all is OK, it happens only when using the BUILD and RUN option.

 

OK, so I will be OK with just setting the target devices to ARMv7 OK?

I also review the supported devices list and as you just say, Vuforia only supports ARMv7.

 

Thanks!

Apple Mach-O Linker error on upgrade to Xcode 4.4

August 5, 2012 - 8:31pm #13

Hi,

      I am having the same issue .. I get the following error running ios5.1 with unity 4.3 ios Pro  & Xode 4.4

 

No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.


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 tried changing to Arm7 only in the build settings inside Unity but it still throws an error in X-Code.


Not sure what else I can try ?? 


Any ideas ?


 Mick

 

Apple Mach-O Linker error on upgrade to Xcode 4.4

August 5, 2012 - 8:31pm #12

Hi,

      I am having the same issue .. I get the following error running ios5.1 with unity 4.3 ios Pro  & Xode 4.4

 

No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.


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 tried changing to Arm7 only in the build settings inside Unity but it still throws an error in X-Code.


Not sure what else I can try ?? 


Any ideas ?


 Mick

 

Apple Mach-O Linker error on upgrade to Xcode 4.4

August 5, 2012 - 8:51pm #11

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.

What happens when you try running some of the XCode samples out-of-the-box?  Normally if the device can run the target its name will show up in the targets dropdown, otherwise it will just display a generic "iOS device" name.  The fix for this in native xcode is to change the deployed target accordingly and then the device name will magically show up.

Also, what happens when you run standard Unity iOS samples?  Do you get the same problems?

N

Apple Mach-O Linker error on upgrade to Xcode 4.4

August 5, 2012 - 11:54pm #10

Thx for the reply Nalin,  

 since I am getting an X-Code error stating 

 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 changed the build settings in Unity so it only uses arm7.. but I still get the same error.

Yup.. definitely not a Vuforia issue but I just noticed someone here was havign a similar issue... & it actually fixed their problem.

but so far not for me  :(   I will keep plugging away and see how I go... 

 

Oh the pain of problem solving  :(


Apple Mach-O Linker error on upgrade to Xcode 4.4

August 6, 2012 - 7:54am #9

mickbanks wrote:

Hi,

      I am having the same issue .. I get the following error running ios5.1 with unity 4.3 ios Pro  & Xode 4.4

 

No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.

Hi Mick

About the error above, have you tried to update your provisioning profiles inside XCode?. If no, go to Xcode, menu "Windows" -> "Organizer". At the left side in your Libreary section choose Provisioning profiles and click refresh on the top right bottom corner.

If you have added the device to your dev. account that will refresh the profiles inside Xcode.

 

Also, as already stated, what if you choose the iOS version that your device has inside the Unity Build Settings?

Apple Mach-O Linker error on upgrade to Xcode 4.4

August 8, 2012 - 12:43pm #8

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:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

  "_kSecReturnRef", referenced from:

      l2920 in libQCAR.a(libQCAR.a-armv7-master.o)

    and so on...

ld: symbol(s) not found for architecture armv7

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

 

Does someone has any idea?

Apple Mach-O Linker error on upgrade to Xcode 4.4

August 8, 2012 - 1:05pm #7

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. If you Google Unity + Undefined symbols for architecture armv7: , you'll find lot of Unity forum and Answers thread on this subject.

Apple Mach-O Linker error on upgrade to Xcode 4.4

August 8, 2012 - 1:27pm #6

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

But I didn't understand why I need to do that... It's some dependency related to Vuforia?

 

Thanks again!

Apple Mach-O Linker error on upgrade to Xcode 4.4

April 4, 2013 - 5:06am #5

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.  Clearly it's a pretty big disadvantage not to be able to debug when including Vuforia.

I've tried adding frameworks and changing the deployment target (per Google on all related issues) but the error remains when Vuforia is included.

The error for reference:

 

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

 

 

Ld /Users/michaeltalbot/Library/Developer/Xcode/DerivedData/Unity-iPhone-gdxocdjjjomvaoeawzpoobgunhho/Build/Products/loyaltygame.app/loyaltygame normal armv7

    cd /Users/michaeltalbot/Builds/April

    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1

    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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/michaeltalbot/Library/Developer/Xcode/DerivedData/Unity-iPhone-gdxocdjjjomvaoeawzpoobgunhho/Build/Products -L/Users/michaeltalbot/Builds/April -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FBUserSettingsViewResources.bundle -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/Contents -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBDialog -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBFriendPickerView -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBLoginView -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBPlacePickerView -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBProfilePictureView -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FBUserSettingsViewResources.bundle/Contents -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FBUserSettingsViewResources.bundle/images -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/Contents/Resources -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBDialog/images -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBFriendPickerView/images -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBLoginView/images -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBPlacePickerView/images -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FacebookSDKResources.bundle/FBProfilePictureView/images -L/Users/michaeltalbot/4.1/Realms/Assets/Editor/SocialNetworking/FacebookSDK/FBUserSettingsViewResources.bundle/Contents/Resources -L/Users/michaeltalbot/scaleform_4.1_ios_unity_estore_full_patch/Lib/iPhone-armv7/Debug_NoRTTI -L/Users/michaeltalbot/scaleform_4.1_ios_unity_estore_full_patch/Lib/iPhone-armv7 -L/Users/michaeltalbot/Builds/April/Libraries -L/Users/michaeltalbot/scaleform_4.1_ios_unity_estore_full_patch/Integrations/Unity3.5/Lib/iOS/Debug-iphoneos -F/Users/michaeltalbot/Library/Developer/Xcode/DerivedData/Unity-iPhone-gdxocdjjjomvaoeawzpoobgunhho/Build/Products -filelist /Users/michaeltalbot/Library/Developer/Xcode/DerivedData/Unity-iPhone-gdxocdjjjomvaoeawzpoobgunhho/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/loyaltygame.LinkFileList -dead_strip -all_load -weak_framework CoreMotion -weak-lSystem -lgfx_as2 -lgfxrender_gl -lgfx -lunitygfxinternal -lexpat -lgfxexpat -lpcre -lgfx_as3 -fobjc-link-runtime -miphoneos-version-min=6.1 -framework Security -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -lQCAR -lQCARUnityPlayer -ltheorawrapper -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 -weak_framework MessageUI -lz.1.1.3 -weak_framework AdSupport -weak_framework Accounts -weak_framework Social -weak_framework Twitter -lfacebook_ios_sdk -lsqlite3.0 -o /Users/michaeltalbot/Library/Developer/Xcode/DerivedData/Unity-iPhone-gdxocdjjjomvaoeawzpoobgunhho/Build/Products/loyaltygame.app/loyaltygame

 

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

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

 

Apple Mach-O Linker error on upgrade to Xcode 4.4

April 8, 2013 - 4:45am #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

April 8, 2013 - 6:19am #3

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

April 8, 2013 - 7:18am #2

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

April 8, 2013 - 7:20am #1

Agreed, I will certainly try.  

Log in or register to post comments