Library not loaded: @rpath/leveldb.framework/leveldb

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I recently added a couple embedded frameworks to my project and it seems like the cocoapods install and the builds happen without issue but when I try to run in the simulator I get this:

dyld: Library not loaded: @rpath/leveldb.framework/leveldb
  Referenced from: /Users//Library/Developer/Xcode/DerivedData/<app>/Build/Products/Development-iphonesimulator/<framework>.framework/<framework>
  Reason: image not found

I had never done embedded frameworks before with cocoapods dependencies so I am guessing i didn't specify something correctly or there is something wrong with the dynamic linker.

Here is my Podfile

# Uncomment the next line to define a global platform for your project
 platform :ios, '11.0'

target 'D.A.P' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for D.A.P
pod 'Firebase/Core'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Auth'
pod 'Firebase/Messaging'
pod 'Mapbox-iOS-SDK'
pod 'MapboxGeocoder.swift'
pod 'MapboxNavigation'
pod 'WillowTreeScrollingTabController', :git => 'https://github.com/mhs2342/WillowTreeScrollingTabController.git'

target 'D.A.PTests' do
    inherit! :complete
end

target 'DAPDatabase' do
    pod 'Firebase/Core'
    pod 'Firebase/Database'
    pod 'Firebase/RemoteConfig'
    pod 'Firebase/Storage'
end

target 'DAPModel' do 
    pod 'MapboxGeocoder.swift'
    pod 'Mapbox-iOS-SDK'
end

end

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.