不兼容的库版本:XXX需要2.0.0或更高版本,但Runes提供版本1.0.0 [英] Incompatible library version: XXX requires version 2.0.0 or later, but Runes provides version 1.0.0

查看:209
本文介绍了不兼容的库版本:XXX需要2.0.0或更高版本,但Runes提供版本1.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在iPhone上运行我的iOS应用程序。项目编译得很好。但是当应用程序启动时,XCode控制台显示:

I was trying to run my iOS app on my iPhone. Project compiled nicely. But when app starts, XCode console showed:

dyld: Library not loaded: @rpath/Runes.framework/Runes
  Referenced from: /private/var/mobile/Containers/Bundle/Application/CC8759F5-A501-400C-93A8-DCEE3BFE4770/XXX.app/XXX
  Reason: Incompatible library version: XXX requires version 2.0.0 or later, but Runes provides version 1.0.0

我使用Cocoapods和我的Podfile看起来像:

I use Cocoapods and my Podfile looks like:

platform :ios, '8.0'
use_frameworks!

pod 'SnapKit', '~> 0.12.0'
pod 'Alamofire', '~> 1.2'
pod 'SwiftTask', '~> 3.3'
pod 'Argo'
pod 'Async', :git => 'https://github.com/duemunk/Async.git', :commit => '9e64046b767fe11010891f5b7fe2aed613a6ee55'
pod 'TapLabel', '0.0.3'
pod 'RealmSwift'
pod 'Kingfisher', '~> 1.4'

我该怎么办?在模拟器上一切正常。

What should I do? Everything works fine on simulators.

推荐答案

您是否可能使用的是早于0.38.2的CocoaPods版本?

Is it possible that you are using a CocoaPods version older than 0.38.2?

如果是这样,使用 sudo gem install cocoapods 更新到0.38.2并运行 pod install 关于你的项目。
最近的错误修正,它处理链接器构建设置中的非法版本号。

If so, update to 0.38.2 using sudo gem install cocoapods and run pod install on your project. There was a recent bugfix that deals with illegal version numbers in the build settings of the linker.

作为一种解决方法,您可以在构建设置 - >下的pod目标中手动将Runes窗格的版本设置为2。链接器 - >兼容版本

As a workaround you could manually set the version of the "Runes" pod to 2 in the pod's target under Build Settings -> Linker -> Compatibility Version

这篇关于不兼容的库版本:XXX需要2.0.0或更高版本,但Runes提供版本1.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆