The Google Analytics SDK for iOS isn't built for the armv7s architecture while instaling app on iPhone

浪尽此生 提交于 2019-12-08 08:12:46

问题


When i am trying to install my application on iPhone/iPad I am getting the following error. I am using new Xcode 4.5. What should I do to remove this error. I need to test my app on device.

file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/nishijain/Desktop/Backup SecondPrism/mobile/apps/SecondPrism/SecondPrism/Google Analytics SDK/libGoogleAnalytics.a for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks


回答1:


You need to download the latest version of the SDK, according to the Changelog there is support for armv7s in Version 1.5.1. If the error still happens try an older version of Xcode (probably Xcode 4.4.1) which has no clue of armv7s and throws no error.

EDIT:

This should work too:

In your Build Settings remove armv7s from Valid Architectures.



来源:https://stackoverflow.com/questions/12815700/the-google-analytics-sdk-for-ios-isnt-built-for-the-armv7s-architecture-while-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!