Ios ld:library未找到-lgoogleanalyticservices的clang:error:linker命令失败,退出代码为1(使用-v查看调用)

Ios ld:library未找到-lgoogleanalyticservices的clang:error:linker命令失败,退出代码为1(使用-v查看调用),ios,iphone,xcode,linker,google-analytics-api,Ios,Iphone,Xcode,Linker,Google Analytics Api,我正在尝试将Google Analytics集成到我的iOS应用程序中。但是,在添加了Xcode 5的最新版本Google Analytics sdk(v3.01)后,无法进行构建 我已经包括了所有依赖的库/框架,但仍然没有成功 以下是活动日志: Ld /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphon

我正在尝试将Google Analytics集成到我的iOS应用程序中。但是,在添加了Xcode 5的最新版本Google Analytics sdk(v3.01)后,无法进行构建

我已经包括了所有依赖的库/框架,但仍然没有成功

以下是活动日志:

 Ld /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos/RamLeela.app/RamLeela normal armv7
cd /Users/yashsoni/Documents/NetProjects/Draft-MovieApp
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos -F/Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos -F/Users/yashsoni/Documents/NetProjects/Draft-MovieApp -filelist /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Intermediates/Draft-MovieApp.build/Debug-iphoneos/Ramleela.build/Objects-normal/armv7/RamLeela.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=6.0 -lGoogleAnalyticsServices -framework CoreData -framework SystemConfiguration -lsqlite3 -framework CFNetwork -framework AdSupport -lz -lsqlite3.0 -framework Twitter -framework CoreLocation -framework Security -framework Accounts -framework Social -framework MessageUI -framework FacebookSDK -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Intermediates/Draft-MovieApp.build/Debug-iphoneos/Ramleela.build/Objects-normal/armv7/RamLeela_dependency_info.dat -o /Users/yashsoni/Library/Developer/Xcode/DerivedData/Draft-MovieApp-dnrjzfyordxcuggjpxwhqsoydvvy/Build/Products/Debug-iphoneos/RamLeela.app/RamLeela

ld: library not found for -lGoogleAnalyticsServices
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请确保按照XCode的建议更新项目设置,如果显示,大多数情况下都可以解决此类问题。

我建议您使用XCode 5.02或XCode 5.1(稳定版),然后添加相应的google Analytical,希望这些错误能够得到解决。
在安装xcode 5.02之前,我也面临同样的问题。希望它也能对您有所帮助。

您是否在“库搜索路径”中添加了库?

很抱歉这么晚才有ans,这是一个架构问题。该错误仅适用于iPhone 5s 64位体系结构。更新谷歌分析框架后,它开始工作了


如果有帮助,请告诉我。

你好,我也有同样的问题。想知道你是否找到了解决办法?