在我的项目中不导入Alamofire的原因是什么? [英] What is the reason behind not importing Alamofire in my project?

查看:62
本文介绍了在我的项目中不导入Alamofire的原因是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用可可豆制作Alamofire演示。我指的是教程

 谢谢。 


解决方案


  1. 打开终端并 cd 到项目文件夹。

  2. 创建Podfile并添加 https://github.com/Alamofire/Alamofire

  3. 在终端中,运行

      pod安装


  4. 关闭项目并打开新创建的工作区: projectName.xcworkspace


  5. 运行并构建项目一次。


现在它应该可以导入了。


I am making a demo of Alamofire using cocoa-pods.I am referring the tutorial "https://github.com/Alamofire/Alamofire". I tried both manual and by sample procedure .But, when i am importing Alamofire,an error shows like "No such module 'Alamofire' ". So please help me to short out this issue.

Thanks in advance.

解决方案

  1. Open Terminal and cd to your project folder.
  2. Create Podfile and add the code from https://github.com/Alamofire/Alamofire
  3. In Terminal, run

    pod install
    

  4. Close the project and open the newly created workspace: projectName.xcworkspace.

  5. Run and build the project once.

Now it should be able to import.

这篇关于在我的项目中不导入Alamofire的原因是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆