我嘗試將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
框架中的某些東西具有相同的全球名稱?
沒關係啊,這是有道理的(我的移動中心團隊:)工作)。謝謝盧卡斯! –