简体   繁体   English

在未安装Cocoa Pods应用程序的机器上运行

[英]Running Cocoa Pods application on machine where it isnt installed

I recently created an iOS project utilizing cocoa pods to install AfNetworking. 我最近创建了一个使用可可豆荚安装AfNetworking的iOS项目。 I zipped the project and send to someone to check out. 我压缩了项目并发送给某人签出。 They are saying they cannot run the project and they are getting an error because the libpods.a is missing. 他们说他们无法运行该项目,并且由于缺少libpods.a而出现错误。 My assumption is that they didnt open the project from the xcworkspace and tried to open via xcproj, but havent been able to confirm. 我的假设是他们没有从xcworkspace打开项目并尝试通过xcproj打开,但是还没有确认。

Someone who receives a cocoapods based application doesn't need to run pod:install on their machine do they?? 收到基于可可豆的应用程序的人不需要在他们的机器上运行pod:install吗? (They do not have cocoapods on their machine. ) (他们的机器上没有可可足类。)

If the project folder (including the workspace and all subfolders such as the Pods folder) has been zipped in its entirety, and you've got it working on your machine, then the pods folder and its contents should be present, and the problem is probably that the project has been opened instead of the workspace. 如果项目文件夹(包括工作区和所有子文件夹,例如Pods文件夹)已全部压缩,并且在计算机上可以正常使用,则应该存在pods文件夹及其内容,而问题是可能已经打开了项目而不是工作区。

You don't need Cocoapods installed at build time. 您不需要在构建时安装Cocoapods。 You need it to create and populate the pods project and set up the workspace, but once that done, nothing else is needed until you want to update the Podfile. 您需要它来创建和填充pod项目并设置工作区,但是一旦完成,就不需要其他任何操作,除非您想更新Podfile。

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

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