在从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这个迁移的我的Cartfile:
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类,编译失败了。
发布于 2019-09-23 07:17:08
您完成了文档的步骤了吗?
从带有库的链接二进制文件中删除Firebase.framework。
https://stackoverflow.com/questions/58057137
复制相似问题