简体   繁体   English

使用cocoapods(iOS,Objective-C)安装mailgun API时出现问题

[英]Trouble installing mailgun API using cocoapods (iOS, Objective-C)

I have install cocoapods using 我已经使用安装了cocoapods

sudo gem install cocoapods

I now want to implement the Mailgun API ( https://github.com/rackerlabs/objc-mailgun ) into my application and I am having trouble. 我现在想在我的应用程序中实现Mailgun API( https://github.com/rackerlabs/objc-mailgun ),但遇到了麻烦。

The tutorial says paste the following code to install the library: 本教程说粘贴以下代码以安装该库:

pod 'mailgun', '~> 1.0.3'

However I do not understand how I can do this. 但是我不知道该怎么做。 Because if I try it give me: 因为如果我尝试,给我:

-bash: pod: command not found

And I want to paste the Mailgun libraries into "Supporting Files" in my project. 我想将Mailgun库粘贴到项目中的“支持文件”中。 I do not understand if I have to navigate to my project and install it there? 我不知道是否必须导航到我的项目并将其安装在那里?

Can somebody with experience using Mailgun in Objective-C please assist me. 有经验的人可以在Objective-C中使用Mailgun吗?

Create a file named 'Podfile' in the directory of your project. 在项目目录中创建一个名为“ Podfile”的文件。 Add the line 添加行

pod 'mailgun', '~> 1.0.3'

in the file. 在文件中。 Save and close the file. 保存并关闭文件。

Open the Terminal (Applications > Utilities > Terminal). 打开终端(应用程序>实用程序>终端)。 In the Terminal navigate to your project: 在终端中,导航到您的项目:

cd thePath/to/your/project/directory

and type in 并输入

pod install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM