dyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSON

梦想与她 提交于 2019-12-14 00:20:35

问题


This is a sequel to question : dyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSON

After rebuilding the project from scratch (new project, new podfile, new files but in each file copy-paste the source code from the original project) the app compiles now and runs perfectly on every simulator! No Errors.

However running on an iPhone 4S or on a iPad 2 I get the same error BUT different reason :

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)

My frameworks in my 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'

回答1:


I solved the problem by removing SwiftyJSON from the cocoa pods and adding the file manually to the project




回答2:


I had the same problem when I update the pod file yesterday. To solve the issue goto Xcode window -> projects -> "Select your project" and Delete the Derived Data.




回答3:


update your pod version. use target. my problem is solved like this.



来源:https://stackoverflow.com/questions/31836514/dyld-library-not-loaded-rpath-swiftyjson-framework-swiftyjson

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