当尝试使用 Catalyst 为 Mac 构建时,我收到以下构建错误:
FIRAnalyticsConnector(FIRConnectorUtils_77ff1e12be6740765c87f1be0d421683.o), building for Mac Catalyst, but linking in object file built for iOS Simulator
该项目适用于 iOS 和 iPadOS。
该问题与 Firebase/Core 和 FirebaseCore 之间的差异有关。第一个是依赖于 FirebaseAnalytics 的 Firebase pod 的子规范。第二个只是 FirebaseCore pod。只有后者才适用于 macOS。
解决方案:
对于 Catalyst,设置使用FirebaseCore
在 PodFile 中
Update:这是PodFile:
platform :ios, '11.0'
def reusepods
end
target 'BatteryCompare' do
use_frameworks!
# pod 'Firebase/Core'
pod 'FirebaseCore'
pod 'Firebase/Database'
pod 'Firebase/Auth'
end
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)