未加载库:@ rpath / leveldb.framework / leveldb

问题描述 投票:0回答:1

我最近在我的项目中添加了几个嵌入式框架,似乎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
ios xcode firebase cocoapods leveldb
1个回答
1
投票

请确保您已在部分的构建阶段添加此框架

1.Link二进制文件库和2.嵌入框架。 enter image description here请参阅附件截图

© www.soinside.com 2019 - 2024. All rights reserved.