简体   繁体   English

如果与其他系统共享代码,我是否需要在代码中安装alamofire

[英]do i need to install alamofire in code if share the code to other system

I have installed alamofire using PODS on my macbook in my current project. 我在当前项目的macbook上使用PODS安装了alamofire。 Now if i share same project to some other person, do he/she also need to install alamofire to run the project ? 现在,如果我与其他人共享同一个项目,他/她是否还需要安装alamofire来运行该项目?

Thanks 谢谢

How are you going to share the project with the other person? 您如何与他人共享项目?

If you're using git the common approach is to have Pods/ directory declared in .gitignore file. 如果您使用的是git,则通常的方法是在.gitignore文件中声明Pods/目录。 In such case the person needs to run pod install after fetching the project. 在这种情况下,该人需要在获取项目后运行pod install This requires Podfile and Podfile.lock files to make sure that you both work on the same version of the library. 这需要PodfilePodfile.lock文件,以确保您都使用相同版本的库。

If you simply copy-paste the directory then it's not required at all, as all the files (including workspace and pods) are already attached. 如果您只是简单地复制粘贴目录,则根本不需要它,因为所有文件(包括工作区和pod)都已附加。

Yes, They have to install pods. 是的,他们必须安装吊舱。 If the other user don't have cocoapods. 如果其他用户没有cocoapods。 They have to install cocoapods first. 他们必须先安装cocoapods。

1.First open your terminal 1.首先打开您的终端

2.Then update your gem file with command 2.然后使用命令更新您的gem文件

sudo gem install -n /usr/local/bin cocoapods

3.Then give your project path 3,然后给出你的项目路径

cd /Path of project cd /项目路径

pod install

Yes, they will have to install alamofire . 是的,他们将不得不安装alamofire

They will have to navigate to the project's root directory and then in their terminal run the following command pod install 他们将不得不导航到项目的根目录,然后在其终端中运行以下命令pod install

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

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