iamichi
iamichi

Reputation: 388

Problem building project with Google Analytics lib in XCode 4

My project is a universal iPhone/iPad app and it was all working fine in the previous version of XCode. I just upgraded and now when I try to build for the device (it works in the simulator), I get this build error:

Google Analytics SDK/Library/libGoogleAnalytics.a, file is universal but does not contain a(n) armv7 slice for architecture armv7"

I am greatly appreciative of any guidance or help.

Upvotes: 5

Views: 2966

Answers (3)

Ahmad Kayyali
Ahmad Kayyali

Reputation: 8243

You have to download the latest Google Analytics iPhone SDK you might have an old version which is not compatible with the iOS 4.3

latest Google Analytics iPhone SDK

Upvotes: 7

Mathew Varghese
Mathew Varghese

Reputation: 4527

Please try the following, This is a first aid only. You can build it with out any errors untill you find the latest verison of library that supports armv7.

Take the build settings and set the value for key Build Active Architecture Only to Yes.

enter image description here

Let get one thing straight. This is a temporary fix only. You have to update your library. Hope this helps somebody.

Extra : You can download the latest google analytics library which supports armv7 and armv7s from here.

Upvotes: 4

Idan
Idan

Reputation: 9940

You must use the latest GA SDK version for iOS. You can find it here: https://developers.google.com/analytics/devguides/collection/ios/resources

(The other answer didn't work for me).

Upvotes: 0

Related Questions