Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 586
iamichi Avatar asked May 01 '11 11:05

iamichi


2 Answers

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

like image 60
Ahmad Kayyali Avatar answered Sep 28 '22 15:09

Ahmad Kayyali


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.

like image 44
Mathew Varghese Avatar answered Sep 28 '22 14:09

Mathew Varghese