Error when creating iOS build 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)

Which VR platform on iOS are you targeting? Are you using ARKit?

In Unity I used some of the Google VR and Unity VR library. Other than that I have included no special platforms or libraries. Just tried to follow the step-by-step presented in several tutorial videos (Like this one:

). Of course in those videos nothing out of the ordinary happens. :slight_smile:

1 Like

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.

Thanks a lot, this was really useful. I wasn´t able to run the game in the emulator because I was building the project to run on device.