dyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSON
Asked Answered
F

3

8

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'
Floranceflore answered 5/8, 2015 at 15:19 Comment(0)
F
3

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

Floranceflore answered 12/8, 2015 at 21:49 Comment(2)
Well, this is not a solution. A solution involves fixing the problem still using CocoaPod.Bhatt
I did't mean to be destructive, but still this is a workaround not a solution. It's a problem in the configuration of cocoapod in the project. I am still working on it.Bhatt
D
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.

Demerol answered 4/9, 2015 at 2:13 Comment(1)
tried, but it doesn't work. In my case I receive the message when running UI Tests on a project with RestKit imported using Cocoa PodsFarrington
F
0

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

Fab answered 27/6, 2016 at 4:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.