首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在firebase和firebasecore之间启动应用程序时的不兼容性

在firebase和firebasecore之间启动应用程序时的不兼容性
EN

Stack Overflow用户
提问于 2019-09-23 06:58:53
回答 1查看 447关注 0票数 0

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

代码语言:javascript
复制
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:

代码语言:javascript
复制
  target 'ZZZ' do
    pod 'Firebase/Database', '~> 6.1'
  end

这个迁移的我的Cartfile:

代码语言:javascript
复制
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嵌入这些生成的框架:

代码语言:javascript
复制
  - carthage: FirebaseDatabase
  - carthage: FirebaseAnalytics
  - carthage: leveldb-library
  - carthage: Firebase
  - carthage: GoogleUtilities
  - carthage: FirebaseCore

我尝试过在我的病历中使用~>,但同样的问题也发生了。我尝试过不嵌入FirebaseCore,由于缺少Firebase类,编译失败了。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-09-23 07:17:08

您完成了文档的步骤了吗?

从带有库的链接二进制文件中删除Firebase.framework。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58057137

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档