'Library not found' error when building Unity game in Xcode

I'm working on a VR app. Building for Android works fine, but when I try to create a build for iOS in Xcode I get the following error:


ld: library not found for -lGTMSessionFetcher
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I've looked online for hours, but can't find any decisive fix for this. Does anyone know what causes this problem and how to fix it?


I'm using:

Unity 2017.3.0f3

Xcode 9.2 (9C40b)

Replies

I've managed to get the build completed. I had to open the file ...xcworkspace instead of xcodeproj, so the Google Tools for Mac library would be picked up properly.

The game runs on an iPhone, but now I'm faced with another problem: The image is upside down.



I've looked at several sources that mention problems with orientation between Unity and iPhone (mainly dealing with the splash screen), but none of these would offer a clear solution.



My alternative was to turn the camera upside down in Unity. This way the image on iPhone renders correctly, but now the navigation is flipped: left = right, up = down.



So who can help me with?:

a. A proper fix that solves the orientation issue.

b. Pointing the way to navigation (headtracking) in Google VR, so I can flip that too.

c. A brilliant solution I haven't thought of.