Incompatible library version: XXX requires version 2.0.0 or later, but Runes provides version 1.0.0

耗尽温柔 提交于 2020-01-02 01:21:08

问题


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

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.


回答1:


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

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.

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



来源:https://stackoverflow.com/questions/31634407/incompatible-library-version-xxx-requires-version-2-0-0-or-later-but-runes-pro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!