Log in or register to post comments

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 16, 2012 - 11:24am #1
Hello,
before upgrading XCode and Unity all was ok, but since upgrades I'm unable to compile (IOS Build & Run from Unity) AR Apps, also the demo ones.

I can't understand how to solve this problem,please help!

This is my config:

  • Unity extension for IOS, rel 1.5.8
  • MacOS 10.7.4 Lion
  • Xcode 4.4.1 (4F1003)
  • Unity version 3.5.3f
  • iPhone4, iPad New 3
  • iOS 5.1.1
  • No jailbreaks 

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 18, 2012 - 1:38am #14

Hi all and Thanks very much,

all suggestions were right. Great job.

 

Now all it's ok! 

Cypox

 

 

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 8:08pm #13

You might wan to try remove armv6 in Unity build settings, 

and in Xcode, remove armv6 from architecture.

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 8:52am #12

thanks Nalin,

this evening I'll try various flags and I'll prepare a ZIP file to share with you.

Write you later!

Cypox

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 8:33am #11

Just a thought, but I think it might be something to do with armv6 and deployment targets so you could try experimenting with various flags / settings in there

N

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 8:24am #10

Hi cypox,

Sorry you are having problems.

If it helps I would be happy to try and build the project at my end and let you know what happens.

Just PM me with a link and I will see what I can do.

cheers,

N

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 8:22am #9

Hi again,

I upgraded first XCode to 4.4.1, via AppStore.

After, I upgraded Unity from 3.5.2 to 3.5.3 and the day after to 3.5.5f3.

Problems were also in the 3.5.3

 

thanks for your patience. 
F (Cypox)

 

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 7:39am #8

Hi

One thing you could try is taking out armv6 compatibility as Vuforia does not support devices with these anyway.

There has to be an explanation, and hopefully it will be something very simple, like a flag or setting that has defaulted in a different way following your upgrades.

Can I ask what exactly did you upgrade in this cycle that caused this?

N

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 6:52am #7

Hi NalinS

I added Security.framework to xcode project, but errors still remain.

The very strange thing is that my old functioning projects now do not compile...

I created a mini-project with only an ARCamera and a Trackable, nothing more. Also in this case I receive an error:

Quote:

Ld /Users/cypox/Library/Developer/Xcode/DerivedData/Unity-iPhone-feswsifoxctyjxgdblxdpnbcacyd/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv6/prova2 normal armv6

    cd /Users/cypox/Desktop/ProgettiUnity/provaIOS/prova2/IOSexe

    setenv IPHONEOS_DEPLOYMENT_TARGET 5.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/cypox/Library/Developer/Xcode/DerivedData/Unity-iPhone-feswsifoxctyjxgdblxdpnbcacyd/Build/Products -L/Users/cypox/Desktop/ProgettiUnity/provaIOS/prova2/IOSexe -L/Users/cypox/Desktop/ProgettiUnity/provaIOS/prova2/IOSexe/Libraries -F/Users/cypox/Library/Developer/Xcode/DerivedData/Unity-iPhone-feswsifoxctyjxgdblxdpnbcacyd/Build/Products -filelist /Users/cypox/Library/Developer/Xcode/DerivedData/Unity-iPhone-feswsifoxctyjxgdblxdpnbcacyd/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv6/prova2.LinkFileList -dead_strip -all_load -weak_framework CoreMotion -weak-lSystem -fobjc-link-runtime -miphoneos-version-min=5.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/cypox/Library/Developer/Xcode/DerivedData/Unity-iPhone-feswsifoxctyjxgdblxdpnbcacyd/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv6/prova2

 

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 don't know how to solve this, I was ready to publish my demo on AppleStore... 

I hate software upgrades!!!

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 6:26am #6

Hi Cypox

Can you check that the Security.framework has been added to your XCode project as it looks like it could be missing?

N

 

 

 

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 6:08am #5

1) Cleaned Xcode\DerivedData directory.

2) Created a new Unity project without Vuforia: compiled and deployed on IOS properly

3) Added Vuforia package, Added package for marker image.

 

After build, it gives me these messages, in linking phase:

Undefined symbols for architecture armv6:

  "_SecItemAdd", referenced from:

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

  "_kSecReturnRef", referenced from:

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

  "_kSecValueData", referenced from:

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

  "_SecItemDelete", referenced from:

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

  "_SecKeyDecrypt", referenced from:

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

  "_kSecAttrKeyClass", referenced from:

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

  "_kSecAttrKeyClassPublic", referenced from:

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

  "_kSecClassKey", referenced from:

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

  "_SecItemCopyMatching", referenced from:

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

  "_kSecClass", referenced from:

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

  "_SecKeyGetBlockSize", referenced from:

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

  "_kSecAttrKeyTypeRSA", referenced from:

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

  "_kSecReturnPersistentRef", referenced from:

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

  "_kSecAttrCanDecrypt", referenced from:

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

  "_kSecAttrKeyType", referenced from:

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

  "_kSecAttrApplicationTag", referenced from:

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

ld: symbol(s) not found for architecture armv6

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

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 3:39am #4

Can you try starting from scratch as it seems like something has got confused somewhere?

Also, a screenshot of xcode might be useful as well to show the Build Failed message - not come across this before.

You could also try cleaning the project in XCode and rebuilding - make sure its for the device only as simulator is not supported.

N

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 2:53am #3

Hi!

yes, Unity version 3.5.5f3, sorry  :)

The real problem is that Unity process creates the IOS project folder properly, but when you try to compile the project the result is: "BUILD FAILED" and no other informations.

No red dots with error codes, nothing. Only the build failure...

Xcode 4.4.1 unable to compile Vuforia-Unity Extension

September 17, 2012 - 1:44am #2

Hi cypox

Can you provide some more information?

What do the logs say etc.?

Also, I think the latest Unity is 3.5.5f3?

 

N

Log in or register to post comments