不兼容的库版本: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
我试图 运行 我的 iOS 应用程序在我的 iPhone 上。项目编译得很好。但是当应用程序启动时,XCode 控制台显示:
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 看起来像:
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'
我该怎么办?在模拟器上一切正常。
是否有可能您使用的 CocoaPods 版本早于 0.38.2?
如果是这样,请在您的项目上使用 sudo gem install cocoapods
和 运行 pod install
更新到 0.38.2。
a recent bugfix 在链接器的构建设置中处理非法版本号。
作为解决方法,您可以在 Build Settings -> Linker -> Compatibility Version
下的容器目标中手动将 "Runes" 容器的版本设置为 2
我试图 运行 我的 iOS 应用程序在我的 iPhone 上。项目编译得很好。但是当应用程序启动时,XCode 控制台显示:
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 看起来像:
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'
我该怎么办?在模拟器上一切正常。
是否有可能您使用的 CocoaPods 版本早于 0.38.2?
如果是这样,请在您的项目上使用 sudo gem install cocoapods
和 运行 pod install
更新到 0.38.2。
a recent bugfix 在链接器的构建设置中处理非法版本号。
作为解决方法,您可以在 Build Settings -> Linker -> Compatibility Version