Benjamin
Benjamin

Reputation: 8248

dyld: Library not loaded Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application…

I am running into a very strange "loop" error. I can fix each one separately, but not together

Here is the first error I get when I try to build an archive of my App.

"No signing identity found".

I can fix that with two ways: fastlane (cert + sigh) or by going through the whole Apple process.

However, once this is done, I run into the following issue:

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

Referenced from: /var/mobile/Containers/Bundle/Application/BAE2D723-6BD6-4D60-8008-C12CE8CCA72F/Qanda.app/Qanda

Reason: no suitable image found.  
Did find:
/private/var/mobile/Containers/Bundle/Application/BAE2D723-6BD6-4D60-8008-C12CE8CCA72F/Qanda.app/Frameworks/AMScrollingNavbar.framework/AMScrollingNavbar: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/BAE2D723-6BD6-4D60-8008-C12CE8CCA72F/Qanda.app/Frameworks/AMScrollingNavbar.framework/AMScrollingNavbar'
/private/var/mobile/Containers/Bundle/Application/BAE2D723-6BD6-4D60-8008-C12CE8CCA72F/Qanda.app/Frameworks/AMScrollingNavbar.framework/AMScrollingNavbar: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/BAE2D723-6BD6-4D60-8008-C12CE8CCA72F/Qanda.app/Frameworks/AMScrollingNavbar.framework/AMScrollingNavbar'
/private/var/mobile/Containers/Bundle/Application/BAE2D723-6BD6-4D60-8008-C12CE8CCA72F/Qanda.app/Frameworks/AMScrollingNavbar.framework/AMScrollingNavbar: mmap() errno=1 validating first page of '/private/var/mobile/Containers/Bundle/Application/BAE2D723-6BD6-4D60-8008-C12CE8CCA72F/Qanda.app/Frameworks/AMScrollingNavbar.framework/AMScrollingNavbar'

The really weird thing is I don't actually have "AMScrollingNavbar" it in my Podfile.

Here is the Podfile list:

pod 'Alamofire'
pod 'SwiftyJSON'
pod 'SwiftVideoPlayer', :git => 'https://github.com/benjaminhorner/SwiftVideoPlayer.git', :branch => 'master'
pod 'FLAnimatedImage'
pod 'SDWebImage'
pod 'HanekeSwift', :git => 'https://github.com/meteochu/HanekeSwift.git', :branch => 'master'
pod 'SwiftyUserDefaults', :git => 'https://github.com/radex/SwiftyUserDefaults.git', :branch => 'master'

Now I did have AMScrollingNavBar installed at some point but I removed it from my pods. It seems like a reference to it is still there… but how do I remove it?

Any kind of help would be greatly appreciated as I am going nuts with this.

Thanks!

Upvotes: 2

Views: 3405

Answers (1)

Benjamin
Benjamin

Reputation: 8248

This is not a solution but a workaround, however, it "solved" my problem. I started the project again from scratch, reinstalling cocoapods etc. Not a good solution but desperate matters require desperate actions.

If anyone comes up with a solution or even an explanation, I would be glad to hear about it.

Upvotes: 1

Related Questions