Alamofire framework not found

后端 未结 8 1679
刺人心
刺人心 2021-02-19 18:08

I am trying to install alamofire into my project so I can upload images to my server, however I cannot seem to find the alamofire.framework file. I have downloaded

相关标签:
8条回答
  • 2021-02-19 18:25

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

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

    enter image description here

    0 讨论(0)
  • 2021-02-19 18:27

    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
    0 讨论(0)
  • 2021-02-19 18:28

    I was also facing the same issue, and '$(inherited)' was missing in Target -> Build Settings ->Framework Search paths. Giving this fixed my issue.

    0 讨论(0)
  • 2021-02-19 18:31

    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.

    0 讨论(0)
  • 2021-02-19 18:36

    You have to open yourprojectname.xcworkspace

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

    0 讨论(0)
  • 2021-02-19 18:36

    I removed the Alamofire from pod file but I got the error again finally I figured out Alamofire exist in Target -> Build setting -> Other Linker Flags and remove from there and build successfully finally.

    0 讨论(0)
提交回复
热议问题