簡體   English   中英

庫未加載:@rpath/leveldb.framework/leveldb

[英]Library not loaded: @rpath/leveldb.framework/leveldb

我最近在我的項目中添加了幾個嵌入式框架,看起來 cocoapods 安裝和構建都沒有問題,但是當我嘗試在模擬器中運行時,我得到了這個:

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

我以前從未使用 cocoapods 依賴項做過嵌入式框架,所以我猜我沒有正確指定某些內容或者動態鏈接器有問題。

這是我的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

post_install do |installer| 
    installer.pods_project.build_configurations.each do |config|
        config.build_settings['PROVISIONING_PROFILE_SPECIFIER'] = '' 
    end
end

請確保您已在部分下的構建階段中添加了此框架

1. 將二進制文件與庫鏈接 2. 嵌入框架。 在此處輸入圖片說明 請看附件截圖

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM