gpt4 book ai didi

ios - 如何在swift 3中解决 "ld: framework not found Alamofire"

转载 作者:行者123 更新时间:2023-11-28 06:11:08 30 4
gpt4 key购买 nike

我的项目运行良好,但当我添加 alamofire 时它无法正常工作。

出现以下错误

ld: warning: directory not found for option '-F/Users/banglafire/Desktop/mysios/Build/Products/Debug-iphonesimulator/Alamofire' ld: framework not found Alamofire clang: error: linker command failed with exit code 1 (use -v to see invocation)

附加信息

Cocopad 版本 1.3.1

我的pod文件

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

target 'My' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for My
pod 'Alamofire'

end

我该如何解决?请帮忙!

最佳答案

我遇到了同样的问题。所以我认为你正在打开 .xcodeproj. 你需要打开 .xcworkspace

关于ios - 如何在swift 3中解决 "ld: framework not found Alamofire",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46558702/

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