1

我刚刚将一个较旧的项目(基于 ObjC)安装到最新的 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

有任何想法吗..?这是我的播客文件:

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 的。不太确定它是否相关。

4

1 回答 1

2

通过最不寻常的方式修复:完全干净的构建 + Xcode 重新启动。快活太棒了。

于 2015-11-01T13:54:25.020 回答