Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 多个链接库,如何管理相同版本的相同依赖项?_Ios_Swift_Carthage_Cocoa Touch - Fatal编程技术网

Ios 多个链接库,如何管理相同版本的相同依赖项?

Ios 多个链接库,如何管理相同版本的相同依赖项?,ios,swift,carthage,cocoa-touch,Ios,Swift,Carthage,Cocoa Touch,我还没有成功地在谷歌上找到解决方案 我们正在使用迦太基来管理依赖关系 我们有一个用于域对象的Cocoa-Touch框架,我们称之为DomainKit 我们的适配器有一个Cocoa Touch框架,我们称之为AdapterKit DomainKit依赖于RxSwift AdapterKit依赖于RxSwift和Realm 我们的应用程序依赖于DomainKit和AdapterKit 该应用程序是使用迦太基复制框架的应用程序 上述所有文件的Cartfile.resolved文件如下所示: Dom

我还没有成功地在谷歌上找到解决方案

  • 我们正在使用迦太基来管理依赖关系
  • 我们有一个用于域对象的Cocoa-Touch框架,我们称之为
    DomainKit
  • 我们的适配器有一个Cocoa Touch框架,我们称之为
    AdapterKit
DomainKit
依赖于
RxSwift

AdapterKit
依赖于
RxSwift
Realm

我们的应用程序依赖于
DomainKit
AdapterKit

该应用程序是使用迦太基复制框架的应用程序

上述所有文件的
Cartfile.resolved
文件如下所示:

DomainKit
    github "ReactiveX/RxSwift" "3.4.0"

AdapterKit
    github "ReactiveX/RxSwift" "3.4.1"
    github "[redacted]/ios-DomainKit" "0.0.7"
    github "realm/realm-cocoa" "v2.7.0"

App
    github "ReactiveX/RxSwift" "3.4.1"
    github "[redacted]/ios-AdapterKit" "0.0.5"
    github "[redacted]/ios-DomainKit" "0.0.7"
    github "realm/realm-cocoa" "v2.6.2"
RxSwift
Realm
版本中的断开连接导致应用程序崩溃


所以问题是。。。你们中有人遇到过这个问题吗?如果遇到了,你是如何解决这个问题的?

更新所有框架以使用相同版本的依赖项是不可能的吗?当然不是不可能的。我们经常这样做。我想我正在寻找一个解决方案,在这个解决方案中,我可以在某种程度上自动化这个过程,而不必手动控制这个过程。在这一点上,我正在考虑使用某种Ruby脚本或Fastlane脚本从一些gist或repo中提取版本,以确保所有版本都兼容。这似乎是一个黑客解决方案。我想我会问是否还有比这更好的东西……好吧,在模块化我们的应用程序后,我们手动同步了大约20个内部播客,还有一些外部播客;)如果你经常这样做,这并不是什么大麻烦。它曾经发生过一次,在演示过程中导致了崩溃,哈!所以我想找到一个万无一失的解决办法。我是一个乌托邦。