Nimble icon indicating copy to clipboard operation
Nimble copied to clipboard

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

Open ypwu1 opened this issue 11 years ago • 8 comments

When I import the Nimble framework, it crash with this error, dyld: Library not loaded: @rpath/Nimble.framework/Nimble Reason: image not found

I know this bug has been raised somewhere else, just can't find the solution.

Environment: yosemite, xcode6.3 swift 1.2 Podfile:

use_frameworks!

Main target

target 'trimforlife' do pod 'Mixpanel', '~> 2.5.4' pod 'AFNetworking', '~> 2.4'

end

Test target

target 'trimforlifeTests', :exclusive => true do pod 'Mixpanel', '~> 2.5.4' pod 'AFNetworking', '~> 2.4' pod 'Nimble', '~> 0.4.0' pod 'Quick', '~> 0.3.1' end

ypwu1 avatar May 18 '15 23:05 ypwu1

Hi, Did you try to clear your project folder Command + Option + Shift + k and reset the simulator (at menu bar iOS Simulator -> Reset Content and Settings ?

marciok avatar May 21 '15 09:05 marciok

I had exactly the same problem with CocoaPods 0.37.1. With CocoaPods 0.36.1 all works fine. I think it's related with https://github.com/CocoaPods/CocoaPods/issues/3440.

manumax avatar May 21 '15 12:05 manumax

Strange, I'm using CocoaPods 0.37.1 and it's fine.

@manumax did you mange to work around this issue or did you rollback to CocoaPods 0.36 ?

marciok avatar May 21 '15 12:05 marciok

I spent a full afternoon trying to understand what was going on and eventually I decided to rollback to 0.36. To clarify, it happened on a project of mine that was already using CocoaPods 0.36. When I decided to upgrade to 0.37, I started to get the error (I did the full clear of the project folder and derived data but I didn't reset the simulator). If I'll have some spare time later I could try again on a brand new project.

manumax avatar May 21 '15 13:05 manumax

I did a few experiments and you're right, now it seems to work even with CocoaPods 0.37.1. I did reset the simulator, maybe that was the problem.

manumax avatar May 22 '15 08:05 manumax

Hey @ypwu1, did the suggestions discussed here help?

jeffh avatar Jun 15 '15 01:06 jeffh

Closed, Please reopen if this is still an issue. Thanks everyone for helping to diagnose. :+1:

jeffh avatar Jun 17 '15 03:06 jeffh

Ahh... nevermind. Fixed after interminable tinkering, cleaning, rebuilding, deleting, and rewriting my pod config file. :)

~~This has popped up again, at least it looks the same to me. It is only happening in a new test target that we added to the project, but no matter what I do... can't seem to get the dyld to load:~~

~~dyld: Library not loaded: @rpath/XCTest.framework/XCTest Referenced from: /Users/zbeckman/Library/Developer/CoreSimulator/Devices/FCFAAFBF-1AB4-4223-9BCC-CA91CBDE96DC/data/Containers/Bundle/Application/DB1E94B2-3521-46CA-AB5A-A524BD9E14D6/Glimpulse.app/Frameworks/Nimble.framework/Nimble Reason: image not found~~

buildreactive avatar Aug 24 '15 00:08 buildreactive