4

I created a simple Unity project with Google Cardboard SDK iOS that I downloaded from GitHub. Everything is working perfectly in Unity editor, but once I build the file and try to run it in Xcode the build failed. I disabled Bitcode because I was getting a complier error asking me to ENABLE/DISABLE it. However this didn't solve the issue. Now when I try to build it from Xcode I get the following error instead:

Undefined symbols for architecture armv7: "_SecTrustEvaluate", referenced from: ___75-[GTMSessionFetcher URLSession:task:didReceiveChallenge:completionHandler:]_block_invoke651 in libvrunity.a(GTMSessionFetcher.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Environment:

Unity 5.3.2f1

Xcode 7.2 (7C68)

iOS 9.2.1 (iPhone 6S Plus)

Google Cardboard SDK for iOS

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Mikei
  • 43
  • 4
  • Hmmm, have you tried adding Security Framework dependency into your project. Also using cocoapods for your 3rd party dependencies is so much easier. – apollosoftware.org Feb 08 '16 at 16:21

1 Answers1

8

_SecTrustEvaluate is part of the Security Framework on iOS and wouldn't be loaded when running in the Unity Editor. In the XCode project open the project view and select the tab 'Build Phases'. Towards the bottom of that view there is 'Link Binary With Libraries' at the bottom of which are two buttons + and -. Click the + button and from the list select 'Security Framework' and press Add. Once complete your project should build and run in XCode.

Neil Dixley
  • 121
  • 3