XCODE,为 iOS 构建 - 架构 armv7 的未定义符号
XCODE, building for iOS - undefined symbols for architecture armv7
看来我不是第一个问这个问题的,不过我得试试。有人遇到过这个问题吗?
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 已安装
我用的是XCODe8.1。
有什么建议吗?
我自己解决了。关键是像这样编辑 pod 文件(使用 unity 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
就可以了!
看来我不是第一个问这个问题的,不过我得试试。有人遇到过这个问题吗?
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 已安装
我用的是XCODe8.1。
有什么建议吗?
我自己解决了。关键是像这样编辑 pod 文件(使用 unity 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
就可以了!