看起来我不是第一个,谁在询问这个问题,但我需要尝试。有没有人遇到过这个问题?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GSDK_GTMSessionFetcher", referenced from:
objc-class-ref in gpg(GPGClearcutLogger.o)
"_OBJC_CLASS_$_GSDK_GTMSessionFetcherService", referenced from:
objc-class-ref in gpg(GIPNetworkImage.o)
"_GTMMethodCheckMethodChecker", referenced from:
+[NSDictionary(GTMNSDictionaryURLArgumentsAdditions) xxGTMMethodCheckMethodNSString32] in libGoogleToolboxForMac.a(GTMNSDictionary+URLArguments.o)
+[NSDictionary(GTMNSDictionaryURLArgumentsAdditions) xxGTMMethodCheckMethodNSString33] in libGoogleToolboxForMac.a(GTMNSDictionary+URLArguments.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
看起来,如果我做对了,一些Google Play依赖会导致它。我试图在具有类似问题的其他线程中推荐的XCODE中切换一些值。即构建设置 - >架构,有效架构,支持的平台,基础sdk,仅主动架构。也没有变化,链接期间仍然是相同的错误。已安装cocoapods
我使用的是XCODe 8.1。
有什么建议吗?
答案 0 :(得分:0)
我设法自己解决了。关键是要像这样编辑pod文件(使用统一5.3.6f1,GPG游戏插件0.9.34和xcode 8.1进行测试):
platform :ios, '8.0'
target 'Unity-iPhone' do
pod 'GooglePlayGames', '5.1'
end
然后你需要运行pod install
并且它有效!