0

在从 CocoaPods 迁移到 Carthage 我们的 Firebase 实现时,我收到以下错误:

This app could not be installed at this time.
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Could not install at this time.
Recovery Suggestion: Found bundle at XXX/Library/Developer/CoreSimulator/Devices/6858FE7A-714D-4A5E-A89C-AA487F5B21B6/data/Library/Caches/com.apple.mobile.installd.staging/temp.gLzACY/extracted/YYY/Frameworks/FirebaseCore.framework with the same identifier (com.firebase.Firebase) as bundle at XXX/Library/Developer/CoreSimulator/Devices/6858FE7A-714D-4A5E-A89C-AA487F5B21B6/data/Library/Caches/com.apple.mobile.installd.staging/temp.gLzACY/extracted/YYY/Frameworks/Firebase.framework

Found bundle at XXX/Library/Developer/CoreSimulator/Devices/6858FE7A-714D-4A5E-A89C-AA487F5B21B6/data/Library/Caches/com.apple.mobile.installd.staging/temp.gLzACY/extracted/YYY/Frameworks/FirebaseCore.framework with the same identifier (com.firebase.Firebase) as bundle at XXX/Library/Developer/CoreSimulator/Devices/6858FE7A-714D-4A5E-A89C-AA487F5B21B6/data/Library/Caches/com.apple.mobile.installd.staging/temp.gLzACY/extracted/YYY/Frameworks/Firebase.framework
Domain: MIInstallerErrorDomain
Code: 57
User Info: {
FunctionName = "-[MIInstallableBundle performPreflightWithError:]";
LegacyErrorString = DuplicateIdentifier;
SourceFileLine = 391;
}

原始的 CocoaPods:

  target 'ZZZ' do
    pod 'Firebase/Database', '~> 6.1'
  end

此迁移的我的购物车文件:

binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseDatabaseBinary.json" == 6.1.0
binary "https://dl.google.com/dl/firebase/ios/carthage/FirebaseAnalyticsBinary.json" == 6.1.0

通过我的代码,我们正在导入“Firebase”和“FirebaseDatabase”

通过 xcodegen 嵌入这些生成的框架:

  - carthage: FirebaseDatabase
  - carthage: FirebaseAnalytics
  - carthage: leveldb-library
  - carthage: Firebase
  - carthage: GoogleUtilities
  - carthage: FirebaseCore

我曾尝试在我的购物车文件中使用 ~>,但同样的问题发生了。我尝试不嵌入 FirebaseCore,但由于缺少 Firebase 类而导致编译失败。

4

1 回答 1

3

您是否完成了文档中的步骤?

从 Link Binary With Libraries Build Phase 中删除 Firebase.framework。

于 2019-09-23T07:17:08.607 回答