We are trying to build a Unity game in Xcode but keep getting this error:
ld: '/Users/Pero/Documents/GitHub/MyGame/XCodeProject/Pods/GooglePlayGames/gpg-cpp-sdk/ios/gpg.framework/gpg(libgpg.a-armv7-master.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
We are using:
- Unity 5.1.1f1
- Xcode Version 7.1 (7B91b)
We have these frameworks included in the Xcode project:
We also have Cocoapods installed and this is in our Podfile:
platform :ios, '7.0' pod 'GooglePlayGames' pod 'Google/SignIn'
We have tried searching the issue and none of the solutions we found did work. We have tried enabling and disabling the bitcode, Build Active Architecture Only, setting or deleting Search Paths… Here are some links:
It is our first time using Xcode. We have built the Android version from Unity with no problems.
There was also a problem with creating the Xcode project from Unity on a Mac (Unity kept crashing), so the Xcode project was created on a PC.
Thank you in advance