Cannot add Alamofire to Swift Project

前端 未结 1 1067
盖世英雄少女心
盖世英雄少女心 2020-12-20 05:14

Trying to add alamofire to swift project using unstruction from here

Did all these steps, clean project a lot of timer and restarted XCode, nothing helps. Error does

相关标签:
1条回答
  • 2020-12-20 06:04

    I had the same problem. I was able to fix it by doing the following.

    1. Download the Alamofire "Source" folder. https://github.com/Alamofire/Alamofire/tree/master/Source

    2. Drag it into your xCode Project, and click "Copy Items if Needed". If you view the project in Finder, the Alamofire Source folder should be in the project itself. (Ex: I have 3 items. Example App, Example App.xcodeproj, Example App Tests. The folder should be in Example App.)

    3. Finally, you should be done! However, now, you do not need to import Alamofire, since you are not actually loading a framework. For example, instead of doing Alamofire.upload, you will now only do upload.

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