gpt4 book ai didi

ios - 无法使用CocoaPods安装SDWebImage:“ld:找不到-lSDWebImage的库”

转载 作者:行者123 更新时间:2023-12-01 17:49:34 24 4
gpt4 key购买 nike

我正在尝试使用Cocoapods将SDWebImage导入我的iOS项目。

因此,我已经安装了Cocoapods,并将此Podfile创建到我的项目目录中:

platform :ios, '7.0'
target 'MyProjectV6' do
pod 'SDWebImage', '~>3.7'
end

然后我使用 pod install命令运行它,一切似乎都很好:
Analyzing dependencies
Downloading dependencies
Installing SDWebImage 3.7.5 (was 3.7.5)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

我还在Xcode中看到在我的项目目录中创建的 Pods文件夹。它包含两个 .xcconfig文件,如下所示:
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_LDFLAGS = $(inherited) -ObjC -l"SDWebImage" -framework "ImageIO"
PODS_ROOT = ${SRCROOT}/Pods

但是当我构建项目时,出现此错误:

enter image description here

我还在我的Frameworks文件夹中添加了一个“libPods-MyProjectV6.a”,但是该文本为红色,因此我猜出了什么问题,但是我不知道...

谢谢你的帮助。

最佳答案

您是否打开了Workspace或Project文件?
确认您打开了第一个

关于ios - 无法使用CocoaPods安装SDWebImage:“ld:找不到-lSDWebImage的库”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35339812/

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