我尝试将Azure Mobile Center添加到已使用HockeyApp进行崩溃报告(和分发)的项目。如果同时添加HockeyApp和MobileCenter Pod,则无法构建应用程序
这里是Podfile:
use_frameworks!
target "MyApp" do
pod 'HockeySDK', '3.8.5'
pod 'MobileCenter'
...and some other pods...
end
在pod install
它增加了MobileCenter版本0.9.0。
该应用程序无法与可怕的Apple Mach-O Linker Error
一起构建。下面是相关错误输出:
duplicate symbol ___cxa_throw in:
/Users/joncox/Documents/TAB/RTI-Client/Pods/HockeySDK/HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/HockeySDK(BITCrashCXXExceptionHandler.o)
/Users/joncox/Documents/TAB/RTI-Client/Pods/MobileCenter/MobileCenter-SDK-iOS/MobileCenterCrashes.framework/MobileCenterCrashes(MSCrashesCXXExceptionHandler.o)
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
同样的事情发生,如果您手动添加MobileCenter.framework
,MobileCenterAnalytics.framework
和MobileCenterCrashes.framework
框架,在the docs描述。
但是,如果您只手动添加MobileCenter.framework
和MobileCenterAnalytics.framework
框架,则不是。
所以我的问题是:我搞砸了某处或让微软搞砸了某些地方,给他们的HockeyApp
和MobileCenterCrashes
框架中的某些东西具有相同的全球名称?
没关系啊,这是有道理的(我的移动中心团队:)工作)。谢谢卢卡斯! –