Alamofire framework not found

 ̄綄美尐妖づ 提交于 2019-12-05 01:11:37

You have to open yourprojectname.xcworkspace

You might get this error if you are opening your .xcworkproj instead of workspace

  1. Close your Xcode project
  2. Re-Open your project with the Xcode workspace file and not with the .xcodeproj

This work fine for me !

Helbert

You just need to change Framework Search Paths to $(inherited).

P.S: Build Settings -> Search Paths -> Framework Search Paths

I solve my problem with this way (Only if your case are you have imported Alamofire in project but still not found)

  1. Close all your project and your XCode
  2. Re-Open your XCode Apps then select bottom text

  3. Choose your project, do not select file inside. Just click open on folder project name

Use Cocoapods to integrate Alamofire in your project:

To add Alamofire into your project please do the following steps:

add the below lines into your pod file.

  source 'https://github.com/CocoaPods/Specs.git'
  platform :ios, '8.0'
  use_frameworks!

  pod 'Alamofire', '~> 2.0'

Not stupid!

  • Click the little (easily missed) + button in the bar under General, Build Phases, etc. and in the dropdown click New Copy Files Phase
  • Double click the title and rename it "Copy Frameworks" (optional)
  • Change destination to Frameworks
  • Add Alamofire.framework

Once it's linked it doesn't necessarily exist on your device, this ensures it will.

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