gpt4 book ai didi

ios - ld : framework not found after pod install

转载 作者:IT王子 更新时间:2023-10-29 05:22:11 26 4
gpt4 key购买 nike

我将 Firebase 库添加到我的项目中,然后出现此错误。当我编译它时,Xcode 找不到一些目录。但是,它们位于 Pods 目录中。

错误日志如下:

ld: warning: directory not found for option '-F/Users/Erumaru/Library/Developer/Xcode/DerivedData/ToDoTogether-gkzytezmbbgkikgoxjpptxgrixil/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/Erumaru/Library/Developer/Xcode/DerivedData/ToDoTogether-gkzytezmbbgkikgoxjpptxgrixil/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: framework not found GTMSessionFetcher
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我的 Pod 文件:

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

target 'ToDoTogether' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
platform :ios, '10.0'
pod 'Firebase'
pod 'Firebase/AdMob'
pod 'Firebase/Auth'
pod 'Firebase/Crash'
pod 'Firebase/Database'
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
pod 'Firebase/RemoteConfig'
pod 'Firebase/Storage'

# Pods for ToDoTogether

end

最佳答案

确保您打开的是工作区文件而不是项目文件。我收到了同样的错误,并意识到我使用的是项目而不是工作区。

关于ios - ld : framework not found after pod install,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40323326/

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