在ios静态库中集成谷歌分析的问题

时间:2012-10-23 10:32:14

标签: iphone

嘿我想在我的ios静态库中集成谷歌分析,但是当我在我自己的静态库中将libGoogleAnalytics.agoogle analytics sdk放入ios时,我收到此错误

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

命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool失败,退出代码为1

请帮我解决这个问题 谢谢,

1 个答案:

答案 0 :(得分:0)

适用于iOS的Google AnalyticsSDK不是为armv7s架构而构建的。这个架构刚刚在Xcode 4.5(2012年9月12日发布)中提供,并且是构建新iPhone 5所必需的。请发布包含此架构的SDK的新版本。

参考:Google Analytics Issue

希望这会有所帮助:)