The problem is integrating google analytics into the ios static library

Hi, I want to integrate google analytics into my ios static library, but when I put libGoogleAnalytics.a from google analytics sdk for ios in my own static library, I get this error

 Libtool build/Debug-iphonesimulator/libHY5Lib.a normal i386 cd /Hy5Canvas/Lib/HY5Lib setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool -static -arch_only i386 -syslibroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Hy5Canvas/Lib/HY5Lib/build/Debug-iphonesimulator -L/Hy5Canvas/Lib/HY5Lib/HY5Lib -L/Hy5Canvas/Lib/HY5Lib -filelist /Hy5Canvas/Lib/HY5Lib/build/HY5Lib.build/Debug-iphonesimulator/HY5Lib.build/Objects-normal/i386/HY5Lib.LinkFileList -ObjC -framework Foundation -lGoogleAnalytics -o /Hy5Canvas/Lib/HY5Lib/build/Debug-iphonesimulator/libHY5Lib.a 

The /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool command failed with exit code 1

Please help me in this matter Thank you,

+4
source share
1 answer

The Google Analytics SDK for iOS is not built for the armv7s architecture. This architecture only appeared in Xcode 4.5 (released on 9/12/2012) and is required to create a new iPhone 5. Please release the new version of the SDK that includes this architecture.

Contact: Google Analytics Problem

Hope this helps :)

0
source

Source: https://habr.com/ru/post/1441520/


All Articles