Alamofire framework not found

后端 未结 8 2627
刺人心
刺人心 2021-02-19 17:46

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:34

    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.

提交回复
热议问题