AFNetworking.framework:Xcode 8中没有此类文件或目录 [英] AFNetworking.framework: No such file or directory in Xcode 8

查看:326
本文介绍了AFNetworking.framework:Xcode 8中没有此类文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Xcode 8.0中打开了我的项目并尝试构建它,但是出现了以下 PBXCp错误组:

I just opened my project in Xcode 8.0 and tried to build it, but the following "PBXCp Error Group" appeared:

error: /Users/username/Documents/XYZ/build/Debug-iphoneos/AFNetworking.framework: No such file or directory

我的Podfile如下:

My Podfile is below:

platform :ios, '10.0'
use_frameworks!

target 'XYZ' do
  pod "MSSTabbedPageViewController"
  pod "SKStatefulTableViewController", "~> 0.1"
  pod "QBFlatButton"
  pod "LTNavigationBar"
  pod "KBRoundedButton"
  pod "CTCheckbox"
  pod "SKStatefulTableViewController", "~> 0.1"
  pod "SDWebImage"
  pod "TOCropViewController"
  pod "UIImageViewAligned"
  pod "AFNetworking"
  pod "MBProgressHUD"
  pod "JSONModel"
  pod "CWStatusBarNotification"
  pod "Firebase/Messaging"
  pod "MaterialControls"
  pod "Fabric"
  pod "Crashlytics"
end

Pod已安装并确定。

Pod is installed and OK.

我不知道自己做了什么,因为Cocoapods似乎在build文件夹中。

I don't know what I did, since Cocoapods seems to be in the build folder.

推荐答案

我遇到了同样的问题。从podfile中添加和删除AFNetworking根本没有帮助。对我来说唯一有效的方法是删除AFNetworking.framework并从正确的路径再次添加它。原始路径指向错误的方向...

I've had the same issue. Adding and removing AFNetworking from podfile didn't help at all. The only thing that worked for me was to remove AFNetworking.framework and add it again from correct path. The original path was pointing to wrong direction...

这篇关于AFNetworking.framework:Xcode 8中没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆