AFNetworking.framework: No such file or directory in Xcode 8

故事扮演 提交于 2019-12-12 02:19:33

问题


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

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 is installed and OK.

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


回答1:


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...




回答2:


change the platform :ios, '10.0' to older platform and update pod file it will work fine for me.




回答3:


try to add it properly because i had recently install all pod file in my side it working fine for me.remove your pod file and then install it.




回答4:


Checking the item "Copy only when installing" in build setting just worked for me.



来源:https://stackoverflow.com/questions/39716074/afnetworking-framework-no-such-file-or-directory-in-xcode-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!