没有加载LIbrary - 原因:库版本不兼容

时间:2015-10-31 20:59:52

标签: cocoapods dyld cocoalumberjack

我刚刚将一个旧项目(基于ObjC)的pod安装到最新的CocoaLumberjack。在模拟器中一切正常,但在设备上(运行iOS 9.1)我收到此错误:

dyld: Library not loaded: @rpath/CocoaLumberjack.framework/CocoaLumberjack
  Referenced from: /var/mobile/Containers/Bundle/Application/69959D96-CAE9-455F-8F74-62A937531E1F/Go 5k.app/Go 5k
  Reason: Incompatible library version: Go 5k requires version 2.0.0 or later, but CocoaLumberjack provides version 1.0.0

任何想法......? 这是我的podfile:

use_frameworks!

def shared_ios_pods
    # utility
    pod 'CocoaLumberjack'
    pod 'UICollectionView+NSFetchedResultsController'
    pod 'UITableView+NSFetchedResultsController'
    pod 'PureLayout'
    pod 'UIColor-Utilities'
    pod 'KZPropertyMapper', '~> 2.5'
    # UI stuff
    pod 'M13ProgressSuite'
    pod 'JBChartView'
    pod 'SAMGradientView'
    # Integrations
    pod 'YTVimeoExtractor'
    pod 'Mixpanel'
    pod 'HockeySDK', '~> 3.7'
end


target 'Go 5k' do
    platform :ios, '9.0'
    shared_ios_pods
end

target 'Go5k watchOS2 Extension' do
    platform :watchos, '2.0'
    pod 'CocoaLumberjack'
end

这是在Objective-C项目中,这个特定版本的CL是我相信基于Swift的。不太确定是否相关。

1 个答案:

答案 0 :(得分:0)

通过大多数异常方式修复:完全清理构建+ Xcode重启。快乐精彩。