gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 11:28:59 31 4
gpt4 key购买 nike

我最近在我的项目中添加了几个嵌入式框架,似乎 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.Link binary with Libraries and 2. Embed frameworks。 enter image description here请看附件截图

关于ios - 库未加载 : @rpath/leveldb. framework/leveldb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55584363/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com