关于iOS开发和XCode,我是新手,所以请发表评论并告诉我这个问题是否缺少任何细节。
我们已将SDK从可下载的存档文件迁移到Cocoa Pods。我们的一个合作伙伴尝试使用我们的Pod,但XCode链接器出现以下错误:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_TAGContainerOpener", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_TAGManager", referenced from:
objc-class-ref in AppDelegate.o
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
项目中的Pod文件是:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'
target 'Demo' do
pod 'GoogleAppIndexing'
pod 'GoogleMaps'
pod 'OurPod', :git => 'https://github.com/AcmeCorp/OurPod.git'
end
target 'DemoTests' do
end
xcworkspace
文件(不是 xcode.proj
文件)。知道我应该寻找什么?
提前致谢!
答案 0 :(得分:2)
在尝试将 Google跟踪代码管理器和 GoogleAnalytics 添加到我的应用时遇到同样的问题
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_TAGContainerOpener", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_TAGManager", referenced from:
objc-class-ref in ViewController.o
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我想你错过了一些图书馆。 尝试将 libGoogleAnalyticsServices.a 添加到您的项目中。 这修复了我的编译错误