We are trying to create a Unity game in Xcode, but continue to get 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 bit code. You must rebuild it with the bit code turned on (Xcode Setup ENABLE_BITCODE), get the updated library from the provider, or disable the bit code for this purpose. for armv7 clang architecture: error: linker command failed with exit code 1 (use -v to see Call)
We use:
- Unity 5.1.1f1
- Xcode 7.1 Version (7B91b)
We have these frameworks included in the Xcode project:
- gpg.framework
- GooglePlus.framework
- GoogleOpenSource.framework
- GoogleMobileAds.framework
- CoreText.framework
- AdSupport.framework
- AudioToolBox.framework
- AVFoundation.framework
- CFNetwork.framework
- CoreGraphics.framework
- CoreLocation.framework
- Coremedia.framework
- CoreMotion.framework
- CoreVideo.framework
- Foundation.framework
- iAd.framework
- MediaPlayer.framework
- OpenAL.framework
- OpenGLES.framework
- QuartzCore.framework
- SystemConfiguration.framework
- UIKit.framework
- StoreKit.framework
- CoreTelephony.framework
We also have Cocoapods installed, and this is our Podfile:
platform :ios, '7.0' pod 'GooglePlayGames' pod 'Google/SignIn'
We tried to find the problem, and none of the solutions we found worked. We tried to enable and disable the bitcode, only create an active architecture, set or remove the search paths ... Here are a few links:
xcode-5-1-missing-required-architecture-arm64
new-warnings-in-ios9
impact-of-xcode-build-options-enable-bitcode-yes-no
error-after-updating-to-xcode-7
xcode-7-and-enable-bitcode-yes-setting-does-not-work
apple-llvm-6-0-error-clang-failed-with-exit-code-1
This is the first time we use Xcode. We created the Android version of Unity without any problems.
There was also a problem creating the Unity Xcode project on Mac (Unity continued to fail), so the Xcode project was created on the PC.
source share