这是一个问题的续集:dyld:库未加载:@ rpath / SwiftyJSON.framework / SwiftyJSON
从头开始重建项目(新项目,新podfile,新文件,但在每个文件中复制并粘贴原始项目的源代码)后,该应用程序现在可以编译并在每个模拟器上完美运行!没有错误。
但是在iPhone 4S或iPad 2上运行时,我得到相同的错误,但原因不同:
dyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSON
Referenced from: /private/var/mobile/Containers/Bundle/Application/EFC891F9-C22B-4503-8F11-F30769183439/Demo Mobile.app/Demo Mobile
Reason: Incompatible library version: Demo Mobile requires version 2.0.0 or later, but SwiftyJSON provides version 1.0.0
(lldb)
我在Podfile中的框架:
pod 'Alamofire' , '~> 1.3'
pod 'MBProgressHUD', '~> 0.9.0'
pod 'SwiftyJSON', '~> 2.2.1'
pod 'SQLite.swift', git: 'https://github.com/stephencelis/SQLite.swift.git'
我通过从可可豆荚中删除SwiftyJSON并将文件手动添加到项目中来解决了这个问题
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句